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

Add support for the XML namespace prefix for the Microsoft PlayReady scheme #84

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

bwjun-tving
Copy link

Why need this change?

  • When deserializing and then serializing the MPD below, the XML namespace ‘mspr’ for the Microsoft PlayReady scheme is missing.
<MPD xmlns:cenc="urn:mpeg:cenc:2013" 
     xmlns="urn:mpeg:dash:schema:mpd:2011"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:mspr="urn:microsoft:playready"
     mediaPresentationDuration="PT3276.272949S"
     minBufferTime="PT8S"
     profiles="urn:mpeg:dash:profile:isoff-on-demand:2011"
     type="static"
     xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 DASH-MPD.xsd">
  <Period id="0">
    <AdaptationSet contentType="video"
                   frameRate="24000/1001"
                   id="0"
                   maxHeight="1080"
                   maxWidth="1920"
                   par="16:9"
                   subsegmentAlignment="true">
      <ContentProtection schemeIdUri="urn:mpeg:dash:mp4protection:2011"
                         cenc:default_KID="71e15509-d696-8226-29f4-f753654c9641"
                         value="cbcs"/>
      <ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95"
                         value="MSPR 2.0">
        <cenc:pssh>AAAB3nBzc2gAAA...A+AA==</cenc:pssh>
        <mspr:pro>vgEAAAEAAQC0ATw...FIAPgA=</mspr:pro>
      </ContentProtection>
...

Changes made

  • Add support for the XML namespace prefix for the Microsoft PlayReady scheme

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant