Giter Club home page Giter Club logo

video-player-hls's Introduction

preview

๐Ÿš€ Technologies and tools used:

  • React.Js
  • Next.js
  • Typescript
  • Styled-components
  • Eslint
  • Lottie
  • Plyr
  • Hls.js

๐Ÿ—‚ Project structure

.
โ”œโ”€โ”€ public
โ”‚ย ย  โ”œโ”€โ”€ assets
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ poster.svg
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ preview.png
โ”‚ย ย  โ”œโ”€โ”€ video
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 720p_000.mp4
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 720p_001.mp4
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 720p_002.mp4
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 720p_003.mp4
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 720p_004.mp4
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 720p_005.mp4
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 720p_006.mp4
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 720p_007.mp4
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ 720p.m3u8
โ”‚ย ย  โ””โ”€โ”€ favicon.svg
โ”œโ”€โ”€ src
โ”‚ย ย  โ”œโ”€โ”€ assets
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ animations
โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ 404-error.json
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ 500-error.json
โ”‚ย ย  โ”œโ”€โ”€ components
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Head
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ Head.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ index.ts
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ HotToast
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ HostToast.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ index.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ LottieAnimation
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ index.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ LottieAnimation.tsx
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ styles.ts
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ Plyr
โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ index.ts
โ”‚ย ย  โ”‚ย ย      โ”œโ”€โ”€ Plyr.tsx
โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ styles.ts
โ”‚ย ย  โ”œโ”€โ”€ pages
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ api
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ v1
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ [slug].ts
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 404.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ 500.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ _app.tsx
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ _document.tsx
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ index.tsx
โ”‚ย ย  โ”œโ”€โ”€ styles
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ pages
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ error
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ index.ts
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ styles.ts
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ index
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย      โ””โ”€โ”€ styles.ts
โ”‚ย ย  โ”‚ย ย  โ”œโ”€โ”€ themes
โ”‚ย ย  โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ dark.ts
โ”‚ย ย  โ”‚ย ย  โ””โ”€โ”€ global.ts
โ”‚ย ย  โ””โ”€โ”€ @types
โ”‚ย ย      โ”œโ”€โ”€ env.config.d.ts
โ”‚ย ย      โ”œโ”€โ”€ index.d.ts
โ”‚ย ย      โ”œโ”€โ”€ lottie-animation.d.ts
โ”‚ย ย      โ””โ”€โ”€ styled.d.ts
โ”œโ”€โ”€ next.config.js
โ”œโ”€โ”€ next-env.d.ts
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ tsconfig.json

video-player-hls's People

Contributors

antonionarcilio avatar dependabot[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

video-player-hls's Issues

Question of multiple video on the same page

Hello,

I was trying to use your code for my personal video portfolio, and I couldn't figure out how to play multiple videos on the same page.

As I just added multiple , it seems the design breaks down and only plays the last URL I used.

I'm a beginner in js maybe it's a very basic question but can I ask how to put multiple videos from different URLs?

I hope this is too much question to ask and thank you for sharing your code

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.