Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1 KB

README.md

File metadata and controls

37 lines (29 loc) · 1 KB

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