Skip to content

199911/hls-video-sharing

Repository files navigation

Live demo

Prerequisite

  • Docker
    • brew cask install docker
  • OBS
  • Ngrok (Optional)
    • Allow public network access your localhost stream

Set up

  • cd <project directory>
  • yarn install
  • docker build -t nginx-rtmp-2-hls .
  • docker run -d -p 1935:1935 -p 8080:8080 --name nginx-rtmp-2-hls nginx-rtmp-2-hls
  • Config and start your stream with OBS
  • python -m SimpleHTTPServer
  • Open the Video.js player in http://localhost:8000

Set up public access

  • ngrok http 8080
  • Remove the local stream in index.html
  • Update the ngrok stream in index.html
  • Push the changes to Github
  • Open your player on Github page

Reference

About

HKOSCon 2018 sharing: Video.js with HLS

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages