All Projects → tjenkinson → mock-hls-server

tjenkinson / mock-hls-server

Licence: Apache-2.0 license
Fake a live/event HLS stream from a VOD one. Useful for testing. Supports looping.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to mock-hls-server

m3u8
Parse and generate m3u8 playlists for Apple HTTP Live Streaming (HLS) in Ruby.
Stars: ✭ 96 (+57.38%)
Mutual labels:  playlist, hls, m3u8-playlist, m3u8, http-live-streaming
Ios P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 31 (-49.18%)
Mutual labels:  hls, live, m3u8
SFMediaStream
HTML5 media streamer library for playing music, video, playlist, or even live streaming microphone & camera with node server
Stars: ✭ 97 (+59.02%)
Mutual labels:  playlist, stream, live
ustvgo to m3u
Grabs m3u links from ustvgo.tv
Stars: ✭ 35 (-42.62%)
Mutual labels:  playlist, live, m3u8
IPtv
A collection of private IPtv list as well as Third-party IPtv list. (not updated anymore)
Stars: ✭ 16 (-73.77%)
Mutual labels:  playlist, m3u8-playlist, m3u8
cordova-plugin-tencent-liteav
A cordova plugin for video playing with Tencent's LiteAV SDK. Support RTMP/HLS/FLV/MP4.
Stars: ✭ 24 (-60.66%)
Mutual labels:  hls, vod, m3u8
Shaka Player
JavaScript player library / DASH & HLS client / MSE-EME player
Stars: ✭ 5,386 (+8729.51%)
Mutual labels:  hls, vod, live
Hls.js
HLS.js is a JavaScript library that plays HLS in browsers with support for MSE.
Stars: ✭ 10,791 (+17590.16%)
Mutual labels:  stream, hls, http-live-streaming
Backoffice Administration
Stars: ✭ 89 (+45.9%)
Mutual labels:  stream, hls, m3u8
hls-segment-reader
Node.js Readable for retrieving HLS segments.
Stars: ✭ 18 (-70.49%)
Mutual labels:  stream, hls, m3u8
comfy-channel
A 24/7 live video broadcast with automatic content selection and overlays using FFMPEG and Python!
Stars: ✭ 37 (-39.34%)
Mutual labels:  playlist, stream, live
Freeiptv
FreeIPTV • Watch Free IPTV World Wide
Stars: ✭ 68 (+11.48%)
Mutual labels:  playlist, stream, m3u8
hls-rip
Tool for ripping m3u8 playlists/segments.
Stars: ✭ 14 (-77.05%)
Mutual labels:  playlist, hls, m3u8
P2P-DPlayer
DPLayer powered by CDNBye P2P Engine
Stars: ✭ 63 (+3.28%)
Mutual labels:  hls, vod, live
p2p-cdn-sdk-android
Free p2p cdn android github sdk to reduce video streaming costs of live and on demand video using webrtc by upto 90% and improve scalability by 6x - 🚀 Vadootv 🚀
Stars: ✭ 39 (-36.07%)
Mutual labels:  hls, vod, m3u8
Android P2p Engine
Let your viewers become your unlimitedly scalable CDN.
Stars: ✭ 70 (+14.75%)
Mutual labels:  hls, live, m3u8
Desktoplivestreaming
DesktopLiveStreaming
Stars: ✭ 138 (+126.23%)
Mutual labels:  stream, hls, live
hls-downloader
Download all video files from HLS (HTTP Live Streaming) VoD (Video on Demand) m3u8 playlist for local playback
Stars: ✭ 121 (+98.36%)
Mutual labels:  hls, vod, m3u8
aws-clustered-video-streams
A clustered video stream is an AWS architecture that increases the quality and reliability of live events by providing seamless regional failover capabilities for live video steams. Operators can monitor the status of the clustered stream from a single pane of glass and dynamically control from which region the stream consumed by a player origin…
Stars: ✭ 35 (-42.62%)
Mutual labels:  playlist, hls
hls-live-thumbnails
A service which will generate thumbnails from a live HLS stream.
Stars: ✭ 49 (-19.67%)
Mutual labels:  playlist, hls

npm version

Mock HLS Server

Fake a live/event HLS stream from a VOD one. Useful for testing.

Usage

npm install -g mock-hls-server

to install globally.

mock-hls-server

will start the server running on "http://localhost:8080".

mock-hls-server 0.0.0.0 -p 8000 --event

will start listening on all interfaces on port 8000. It will also serve the playlist as an EVENT playlist, which means URL's will never be removed from the start.

These are all the options:

  • host
  • port
  • windowSize: The number of seconds to keep in the playlist. Not valid with --event.
  • initialDuration: The number of seconds into the stream that should be available on the first playlist request.
  • event: Changes the playlist type to EVENT, meaning no segments will ever be removed.
  • loop: Loop the playlist.
  • logLevel

Now start your stream at http://localhost:8080/proxy?url=<stream url>. The first playlist request will start the stream. Variant playlists are supported, and the playlist URL's contained in them will be rewritten to route through the proxy.

The source stream should be a VOD playlist that contains all the segments.

Example

Run

mock-hls-server

and then start streaming 'http://localhost:8080/proxy?url=https%3A%2F%2Fdevstreaming-cdn.apple.com%2Fvideos%2Fstreaming%2Fexamples%2Fimg_bipbop_adv_example_ts%2Fmaster.m3u8'

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].