-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Parse CHANNELS Attribute in EXT-X-MEDIA #2527
Comments
It would be good to provide this information, however, like you mentioned the I would definitely think that it would be a good idea however to include the ability to be able to connect an audio track to its source track in the HLS manifest and retrieve this metadata. Perhaps an API that takes the |
I don't have strong feelings about the implementation, the existence of the functionality is more important to me. It would be handy, however, if the |
I just realized that RFC 8216 is pretty strict regarding the CHANNELS attribute (see https://tools.ietf.org/html/rfc8216#section-4.3.4.1):
The CHANNELS attribute would be, however, also very useful for other use cases where more than two audio channels are used. |
@kickermeister The ticket title and description read I think we should include EXT-X-MEDIA attributes (
No reason we don't other than it hasn't been implemented.
😢 |
This feature is already implemented in feature/v1.0.0 @kickermeister Have you tried the v1 branch? {
"attrs": {
"TYPE": "AUDIO",
"URI": "playlist_a-deu-0128k-aac-2c.mp4.m3u8",
"GROUP-ID": "default-audio-group",
"LANGUAGE": "de",
"NAME": "stream_4",
"AUTOSELECT": "YES",
"CHANNELS": "2"
},
"bitrate": 0,
"id": 1,
"groupId": "default-audio-group",
"name": "stream_4",
"type": "AUDIO",
"default": false,
"autoselect": true,
"forced": false,
"lang": "de",
"url": "https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/playlist_a-deu-0128k-aac-2c.mp4.m3u8",
"audioCodec": "mp4a.40.2"
}, |
@robwalch Thanks for your reply, I was of course referring to the
|
@kickermeister Because it's an optional attribute, and hls.js does not use |
I'm closing this one based on the comments above. If you have trouble working off feature/v1.0.0 let me know. Thanks! |
Is your feature request related to a problem? Please describe.
I need to know the channel number of streams for certain applications. See e.g. https://storage.googleapis.com/shaka-demo-assets/angel-one-hls/hls.m3u8
Describe the solution you'd like
Parse the CHANNEL attribute in EXT-X-MEDIA and provide the information in the
audioTracks
object for everyaudioTrack
.Describe alternatives you've considered
As there is no simple way to detect the channel number from a HTML5 media element, I would need to write or use a separate HLS parser.
The text was updated successfully, but these errors were encountered: