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

Cannot handle multiple languages and subtitles #77

Open
EyMaddis opened this issue Aug 29, 2019 · 0 comments

Comments

@EyMaddis
Copy link

commented Aug 29, 2019

This is a duplication of the following issue:
videojs/http-streaming#645

A playlist like this is not properly parsed:

    <AdaptationSet mimeType="text/vtt" lang="de">
      <Role schemeIdUri="urn:mpeg:dash:role" value="subtitle"/>
      <Label>Deutsch</Label>
      <Representation id="4" bandwidth="256">
        <BaseURL>dashcaption_de_dash.mpd</BaseURL>
      </Representation>
    </AdaptationSet>
    <AdaptationSet mimeType="text/vtt" lang="de">
      <Role schemeIdUri="urn:mpeg:dash:role" value="subtitle"/>
      <Label>Forced</Label>
      <Representation id="5" bandwidth="256">
        <BaseURL>dashcaption_forced_dash.mpd</BaseURL>
      </Representation>
    </AdaptationSet>```

only the first `de` will be available in the result.

I think this boils down to [this line](https://github.com/videojs/mpd-parser/blob/12387495d2fe472eab2fdd7d0c7f1b4bbc22c7cb/src/toM3u8.js#L181).

**The same applies to audio tracks.**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.