npm install
npm run start
- Visit localhost:3000/master.m3u8 to view example video
- Use url argument
targetManifest
to run vs another video: localhost:3000/master.m3u8?targetManifest=http://localhost:3000/example-video/index.m3u8- You may need to
encodeURIComponent
thetargetManifest
argument.
- You may need to
- Use url argument
startTime
to set the duration of the live stream in seconds on first request: localhost:3000/master.m3u8?startTime=500 - The sever will add an argument
initTime
to the url which is used for timing purposes. Delete this url argument to have the stream start over.