-
Notifications
You must be signed in to change notification settings - Fork 7.5k
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
Audio tracks(and probably text tracks) do not read labels from manifest #6960
Comments
👋 Thanks for opening your first issue here! 👋 If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. |
Hey @RomeroDiver we don't currently support https://github.com/videojs/mpd-parser/blob/7bf58e93a9b429107137611220e63d1ced3486c1/src/inheritAttributes.js#L224-L248 const label = const role = findChildren(adaptationSet, 'Label')[0];
if (label) {
// add the label to the representation object.
} Then you will have to prioritze the label property here if it exists. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not outdated - just waiting for a code review :) |
FYI, we haven't forgotten! Just keep getting distracted by other things! |
Hey, I've seen that the PR has been merged in the mpd-parser package, however what is the flow to push it through other dependencies cause the mpd-parser is not the direct dependency of the videojs but of the other packages? As far as I can see, the http-stream is the one to update. |
mpd-parser needs to get updated in VHS and then Video.js needs to get that version of VHS. |
Hey, the issue still exists - now though only for textTracks, the audioTracks seem to be working properly |
Here is the PR for this issue: videojs/mpd-parser#161 |
@RomeroDiver I had the same problem and opened an issue here: #7870 As you already pointed out, it's working for Audio-Tracks but not for Subtitle-Tracks like webvtt and such, I can absolutely confirm this. As a hot-fix I set the lang attribute for text tracks like that: lang="Deutsch" |
Description
When loading manifest
.mpd
with thethe
player.audioTracks()
return audio tracks without the label from the above manifest.Steps to reproduce
Explain in detail the exact steps necessary to reproduce the issue.
Label
element for the audio tracksResults
The label in the
.audioTracks()[0]
is actually from thelang
attribute in the manifestExpected
The label in the
.audioTracks()[0]
is actually from the Label element in the manifest. I've tried the label attribute on the elementAdaptationSet
but that didn't work as well.Actual
The label in the
.audioTracks().[0]
is actually from thelang
attribute in the manifestError output
There are no errors in the console, and the actual manifest is correct as I've linted it
Additional Information
Please include any additional information necessary here. Including the following:
versions
videojs
7.8.3
browsers
Both Chrome and Firefox, I suppose the same goes for the rest of them as well
OSes
Tested on Windows 10
plugins
Probably a duplicate of videojs/http-streaming#645
The text was updated successfully, but these errors were encountered: