Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Live streaming a continuous infinite stream #6810

Open
k3nz0 opened this issue Oct 25, 2024 · 1 comment
Open

Live streaming a continuous infinite stream #6810

k3nz0 opened this issue Oct 25, 2024 · 1 comment

Comments

@k3nz0
Copy link

k3nz0 commented Oct 25, 2024

What do you want to do with Hls.js?

I have an MPEG-TS infinite stream that I'd like to read with HLS.js.

The playlist looks like this:

#EXTM3U
#EXTINF:-1, CHANNEL
http://<url>/media.ts

Notice the -1 as a duration (meaning the stream in infinite).
I'm able to read the playlist with VLC but not through HLS.js.

Is there a plan to support this ?

What have you tried so far?

Tried reading the playlist mentioned above but does not seem to work.

@k3nz0 k3nz0 added Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Question labels Oct 25, 2024
@robwalch
Copy link
Collaborator

robwalch commented Oct 25, 2024

#EXTINF duration must be a (signed) decimal-floating-point or decimal-integer. Media segment URIs must be available for immediate download at full speed. Streaming of a segment is not supported.

Live streaming in HLS involves updating the playlist as content becomes available in segments. These should be no longer than #EXT-X-TARGETDURATION. if you want to point to the same media.ts resource, you can use #EXT-X-BYTERANGE to address available segments. For MPEG2-TS these ranges should be in multiples of 188, the size of one TS packet.

@robwalch robwalch added Invalid and removed Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants