shaka-project / shaka-player

JavaScript player library / DASH & HLS client / MSE-EME player
Apache License 2.0
7.18k stars 1.34k forks source link

Incorrect segment URI generated #2709

Closed adgllorente closed 4 years ago

adgllorente commented 4 years ago

Have you read the FAQ and checked for duplicate open issues?

Yes.

What version of Shaka Player are you using? 3.0.1

Can you reproduce the issue with our latest release version? Yes.

Can you reproduce the issue with the latest code from master? Yes.

Are you using the demo app or your own custom app? Demo app.

If custom app, can you reproduce the issue using our demo app?

What browser and OS are you using? Chrome.

For embedded devices (smart TVs, etc.), what model and firmware version are you using?

What are the manifest and license server URIs?

I will provide through email a way to get a URL and an issuer license.

Sample Manifest included below:

<?xml version="1.0" encoding="UTF-8"?>
<MPD mediaPresentationDuration="PT2H16M38.720708S" minBufferTime="PT4.096S" profiles="urn:mpeg:dash:profile:isoff-on-demand:2011" type="static" xmlns="urn:mpeg:dash:schema:mpd:2011" xmlns:cenc="urn:mpeg:cenc:2013" xmlns:ms="urn:microsoft" xmlns:mspr="urn:microsoft:playready">
  <Period duration="PT2H16M38.720708S" id="c-0-000-2002">
    <AssetIdentifier schemeIdUri="urn:org:dashif:asset-id:2013" value="c5bf1c94e67844c0ba1c01ced84e6064"/>
    <AdaptationSet audioSamplingRate="48000" contentType="audio" group="1" lang="en" mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1">
      <ContentProtection cenc:default_KID="46704145-3b25-4817-bff7-ce1837d9fa95" schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"/>
      <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed">
        <cenc:pssh>AAAAk3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAHMIARIgNDY3MDQxNDUzYjI1NDgxN2JmZjdjZTE4MzdkOWZhOTUaBHZkbXMiR2M1YmYxYzk0ZTY3ODQ0YzBiYTFjMDFjZWQ4NGU2MDY0X2F1c3cyX2MyZDQ3NDMzZTNmMTQ4NTA5NGRhYTdiNmRhZTI1YmRk</cenc:pssh>
        <ms:laurl licenseUrl="https://content-ausw2.uplynk.com/wv?b=c5bf1c94e67844c0ba1c01ced84e6064&amp;v=c5bf1c94e67844c0ba1c01ced84e6064&amp;pbs=c2d47433e3f1485094daa7b6dae25bdd"/>
        <!--If asked for a license URL specify: https://content.uplynk.com/wv (widevine) or https://content.uplynk.com/pr (playready)-->
      </ContentProtection>
      <ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95" value="MSPR 3.0">
        <cenc:pssh>AAAEinBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAABGo8AFcAUgBNAEgARQBBAEQARQBSACAAeABtAGwAbgBzAD0AIgBoAHQAdABwADoALwAvAHMAYwBoAGUAbQBhAHMALgBtAGkAYwByAG8AcwBvAGYAdAAuAGMAbwBtAC8ARABSAE0ALwAyADAAMAA3AC8AMAAzAC8AUABsAGEAeQBSAGUAYQBkAHkASABlAGEAZABlAHIAIgAgAHYAZQByAHMAaQBvAG4APQAiADQALgAyAC4AMAAuADAAIgA+ADwARABBAFQAQQA+ADwAUABSAE8AVABFAEMAVABJAE4ARgBPAD4APABLAEkARABTAD4APABLAEkARAAgAEEATABHAEkARAA9ACIAQQBFAFMAQwBUAFIAIgAgAFYAQQBMAFUARQA9ACIAUgBVAEYAdwBSAGkAVQA3AEYAMABpAC8AOQA4ADQAWQBOADkAbgA2AGwAUQA9AD0AIgA+ADwALwBLAEkARAA+ADwALwBLAEkARABTAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwATABBAF8AVQBSAEwAPgBoAHQAdABwAHMAOgAvAC8AYwBvAG4AdABlAG4AdAAtAGEAdQBzAHcAMgAuAHUAcABsAHkAbgBrAC4AYwBvAG0ALwBwAHIAPwBiAD0AYwA1AGIAZgAxAGMAOQA0AGUANgA3ADgANAA0AGMAMABiAGEAMQBjADAAMQBjAGUAZAA4ADQAZQA2ADAANgA0ACYAYQBtAHAAOwB2AD0AYwA1AGIAZgAxAGMAOQA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VQBUAEUAUwA+ADwALwBEAEEAVABBAD4APAAvAFcAUgBNAEgARQBBAEQARQBSAD4A</mspr:pro>
      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"/>
      <Representation bandwidth="129269" codecs="mp4a.40.5" id="0">
        <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
        <BaseURL>https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/</BaseURL>
        <SegmentTemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/TK_init.mp4?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" media="TK_$Number%08d$.m4f?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" startNumber="0" timescale="90000"/>
      </Representation>
    </AdaptationSet>
    <AdaptationSet audioSamplingRate="48000" contentType="audio" group="1" lang="es" mimeType="audio/mp4" segmentAlignment="true" startWithSAP="1">
      <ContentProtection cenc:default_KID="46704145-3b25-4817-bff7-ce1837d9fa95" schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"/>
      <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed">
        <cenc:pssh>AAAAk3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAHMIARIgNDY3MDQxNDUzYjI1NDgxN2JmZjdjZTE4MzdkOWZhOTUaBHZkbXMiR2M1YmYxYzk0ZTY3ODQ0YzBiYTFjMDFjZWQ4NGU2MDY0X2F1c3cyX2MyZDQ3NDMzZTNmMTQ4NTA5NGRhYTdiNmRhZTI1YmRk</cenc:pssh>
        <ms:laurl licenseUrl="https://content-ausw2.uplynk.com/wv?b=c5bf1c94e67844c0ba1c01ced84e6064&amp;v=c5bf1c94e67844c0ba1c01ced84e6064&amp;pbs=c2d47433e3f1485094daa7b6dae25bdd"/>
        <!--If asked for a license URL specify: https://content.uplynk.com/wv (widevine) or https://content.uplynk.com/pr (playready)-->
      </ContentProtection>
      <ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95" value="MSPR 3.0">
        <cenc:pssh>AAAEinBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAABGo8AFcAUgBNAEgARQBBAEQARQBSACAAeABtAGwAbgBzAD0AIgBoAHQAdABwADoALwAvAHMAYwBoAGUAbQBhAHMALgBtAGkAYwByAG8AcwBvAGYAdAAuAGMAbwBtAC8ARABSAE0ALwAyADAAMAA3AC8AMAAzAC8AUABsAGEAeQBSAGUAYQBkAHkASABlAGEAZABlAHIAIgAgAHYAZQByAHMAaQBvAG4APQAiADQALgAyAC4AMAAuADAAIgA+ADwARABBAFQAQQA+ADwAUABSAE8AVABFAEMAVABJAE4ARgBPAD4APABLAEkARABTAD4APABLAEkARAAgAEEATABHAEkARAA9ACIAQQBFAFMAQwBUAFIAIgAgAFYAQQBMAFUARQA9ACIAUgBVAEYAdwBSAGkAVQA3AEYAMABpAC8AOQA4ADQAWQBOADkAbgA2AGwAUQA9AD0AIgA+ADwALwBLAEkARAA+ADwALwBLAEkARABTAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwATABBAF8AVQBSAEwAPgBoAHQAdABwAHMAOgAvAC8AYwBvAG4AdABlAG4AdAAtAGEAdQBzAHcAMgAuAHUAcABsAHkAbgBrAC4AYwBvAG0ALwBwAHIAPwBiAD0AYwA1AGIAZgAxAGMAOQA0AGUANgA3ADgANAA0AGMAMABiAGEAMQBjADAAMQBjAGUAZAA4ADQAZQA2ADAANgA0ACYAYQBtAHAAOwB2AD0AYwA1AGIAZgAxAGMAOQA0AGUANgA3ADgANAA0AGMAMABiAGEAMQBjADAAMQBjAGUAZAA4ADQAZQA2ADAANgA0ACYAYQBt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      </ContentProtection>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="alternate"/>
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="dub"/>
      <Representation bandwidth="128140" codecs="mp4a.40.5" id="es">
        <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="2"/>
        <BaseURL>https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/</BaseURL>
        <SegmentTemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/TK0_init.mp4?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" media="TK0_$Number%08d$.m4f?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" startNumber="0" timescale="90000"/>
      </Representation>
    </AdaptationSet>
    <AdaptationSet contentType="video" id="1" maxFrameRate="30" maxHeight="540" maxWidth="960" mimeType="video/mp4" segmentAlignment="true" startWithSAP="1">
      <ContentProtection cenc:default_KID="46704145-3b25-4817-bff7-ce1837d9fa95" schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"/>
      <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed">
        <cenc:pssh>AAAAk3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAHMIARIgNDY3MDQxNDUzYjI1NDgxN2JmZjdjZTE4MzdkOWZhOTUaBHZkbXMiR2M1YmYxYzk0ZTY3ODQ0YzBiYTFjMDFjZWQ4NGU2MDY0X2F1c3cyX2MyZDQ3NDMzZTNmMTQ4NTA5NGRhYTdiNmRhZTI1YmRk</cenc:pssh>
        <ms:laurl licenseUrl="https://content-ausw2.uplynk.com/wv?b=c5bf1c94e67844c0ba1c01ced84e6064&amp;v=c5bf1c94e67844c0ba1c01ced84e6064&amp;pbs=c2d47433e3f1485094daa7b6dae25bdd"/>
        <!--If asked for a license URL specify: https://content.uplynk.com/wv (widevine) or https://content.uplynk.com/pr (playready)-->
      </ContentProtection>
      <ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95" value="MSPR 3.0">
        <cenc:pssh>AAAEinBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAABGo8AFcAUgBNAEgARQBBAEQARQBSACAAeABtAGwAbgBzAD0AIgBoAHQAdABwADoALwAvAHMAYwBoAGUAbQBhAHMALgBtAGkAYwByAG8AcwBvAGYAdAAuAGMAbwBtAC8ARABSAE0ALwAyADAAMAA3AC8AMAAzAC8AUABsAGEAeQBSAGUAYQBkAHkASABlAGEAZABlAHIAIgAgAHYAZQByAHMAaQBvAG4APQAiADQALgAyAC4AMAAuADAAIgA+ADwARABBAFQAQQA+ADwAUABSAE8AVABFAEMAVABJAE4ARgBPAD4APABLAEkARABTAD4APABLAEkARAAgAEEATABHAEkARAA9ACIAQQBFAFMAQwBUAFIAIgAgAFYAQQBMAFUARQA9ACIAUgBVAEYAdwBSAGkAVQA3AEYAMABpAC8AOQA4ADQAWQBOADkAbgA2AGwAUQA9AD0AIgA+ADwALwBLAEkARAA+ADwALwBLAEkARABTAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwATABBAF8AVQBSAEwAPgBoAHQAdABwAHMAOgAvAC8AYwBvAG4AdABlAG4AdAAtAGEAdQBzAHcAMgAuAHUAcABsAHkAbgBrAC4AYwBvAG0ALwBwAHIAPwBiAD0AYwA1AGIAZgAxAGMAOQA0AGUANgA3ADgANAA0AGMAMABiAGEAMQBjADAAMQBjAGUAZAA4ADQAZQA2ADAANgA0ACYAYQBtAHAAOwB2AD0AYwA1AGIAZgAxAGMAOQA0AGUANgA3ADgANAA0AGMAMABiAGEAMQBjADAAMQBjAGUAZAA4ADQAZQA2ADAANgA0ACYAYQBtAHAAOwBwAGIAcwA9AGMAM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AOQBuADYAbABRAD0APQAiAD4APAAvAEsASQBEAD4APAAvAEsASQBEAFMAPgA8AC8AUABSAE8AVABFAEMAVABJAE4ARgBPAD4APABMAEEAXwBVAFIATAA+AGgAdAB0AHAAcwA6AC8ALwBjAG8AbgB0AGUAbgB0AC0AYQB1AHMAdwAyAC4AdQBwAGwAeQBuAGsALgBjAG8AbQAvAHAAcgA/AGIAPQBjADUAYgBmADEAYwA5ADQAZQA2ADcAOAA0ADQAYwAwAGIAYQAxAGMAMAAxAGMAZQBkADgANABlADYAMAA2ADQAJgBhAG0AcAA7AHYAPQBjADUAYgBmADEAYwA5ADQAZQA2ADcAOAA0ADQAYwAwAGIAYQAxAGMAMAAxAGMAZQBkADgANABlADYAMAA2ADQAJgBhAG0AcAA7AHAAYgBzAD0AYwAyAGQANAA3ADQAMwAzAGUAMwBmADEANAA4ADUAMAA5ADQAZABhAGEANwBiADYAZABhAGUAMgA1AGIAZABkADwALwBMAEEAXwBVAFIATAA+ADwAQwBVAFMAVABPAE0AQQBUAFQAUgBJAEIAVQBUAEUAUwAgAHgAbQBsAG4AcwA9ACIAIgA+ADwAQwBPAE4AVABFAE4AVABfAEkARAA+AGMANQBiAGYAMQBjADkANABlADYANwA4ADQANABjADAAYgBhADEAYwAwADEAYwBlAGQAOAA0AGUANgAwADYANAA8AC8AQwBPAE4AVABFAE4AVABfAEkARAA+ADwAQwBPAE4AVABFAE4AVABfAFoATwBOAEUAPgBhAHUAcwB3ADIAPAAvAEMATwBOAFQARQBOAFQAXwBaAE8ATgBFAD4APABQAEIAUwA+AGMAMgBkADQANwA0ADMAMwBlADMAZgAxADQAOAA1ADAAOQA0AGQAYQBhADcAYgA2AGQAYQBlADIANQBiAGQAZAA8AC8AUABCAFMAPgA8AC8AQwBVAFMAVABPAE0AQQBUAFQAUgBJAEIAVQBUAEUAUwA+ADwALwBEAEEAVABBAD4APAAvAFcAUgBNAEgARQBBAEQARQBSAD4A</mspr:pro>
      </ContentProtection>
      <SupplementalProperty schemeIdUri="urn:mpeg:dash:adaptation-set-switching:2016" value="2"/>
      <InbandEventStream schemeIdUri="com.uplynk.asset.metadata"/>
      <Representation bandwidth="1991596" codecs="avc1.4d001f" frameRate="30" height="540" id="D" scanType="progressive" width="960">
        <BaseURL>https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/</BaseURL>
        <SegmentTemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/$RepresentationID$_init.mp4?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" media="$RepresentationID$$Number%08d$.m4f?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" startNumber="0" timescale="90000"/>
      </Representation>
      <Representation bandwidth="202272" codecs="avc1.4d000d" frameRate="15" height="144" id="A" scanType="progressive" width="256">
        <BaseURL>https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/</BaseURL>
        <SegmentTemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/$RepresentationID$_init.mp4?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" media="$RepresentationID$$Number%08d$.m4f?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" startNumber="0" timescale="90000"/>
      </Representation>
      <Representation bandwidth="359136" codecs="avc1.4d000d" frameRate="30" height="234" id="B" scanType="progressive" width="416">
        <BaseURL>https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/</BaseURL>
        <SegmentTemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/$RepresentationID$_init.mp4?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" media="$RepresentationID$$Number%08d$.m4f?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" startNumber="0" timescale="90000"/>
      </Representation>
      <Representation bandwidth="808163" codecs="avc1.4d001e" frameRate="30" height="360" id="C" scanType="progressive" width="640">
        <BaseURL>https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/</BaseURL>
        <SegmentTemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/$RepresentationID$_init.mp4?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" media="$RepresentationID$$Number%08d$.m4f?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" startNumber="0" timescale="90000"/>
      </Representation>
    </AdaptationSet>
    <AdaptationSet contentType="video" id="2" maxFrameRate="30" maxHeight="1080" maxWidth="1920" mimeType="video/mp4" segmentAlignment="true" startWithSAP="1">
      <ContentProtection cenc:default_KID="46704145-3b25-4817-bff7-ce1837d9fa95" schemeIdUri="urn:mpeg:dash:mp4protection:2011" value="cenc"/>
      <ContentProtection schemeIdUri="urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed">
        <cenc:pssh>AAAAk3Bzc2gAAAAA7e+LqXnWSs6jyCfc1R0h7QAAAHMIARIgNDY3MDQxNDUzYjI1NDgxN2JmZjdjZTE4MzdkOWZhOTUaBHZkbXMiR2M1YmYxYzk0ZTY3ODQ0YzBiYTFjMDFjZWQ4NGU2MDY0X2F1c3cyX2MyZDQ3NDMzZTNmMTQ4NTA5NGRhYTdiNmRhZTI1YmRk</cenc:pssh>
        <ms:laurl licenseUrl="https://content-ausw2.uplynk.com/wv?b=c5bf1c94e67844c0ba1c01ced84e6064&amp;v=c5bf1c94e67844c0ba1c01ced84e6064&amp;pbs=c2d47433e3f1485094daa7b6dae25bdd"/>
        <!--If asked for a license URL specify: https://content.uplynk.com/wv (widevine) or https://content.uplynk.com/pr (playready)-->
      </ContentProtection>
      <ContentProtection schemeIdUri="urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95" value="MSPR 3.0">
        <cenc:pssh>AAAEinBzc2gAAAAAmgTweZhAQoarkuZb4IhflQAABGo8AFcAUgBNAEgARQBBAEQARQBSACAAeABtAGwAbgBzAD0AIgBoAHQAdABwADoALwAvAHMAYwBoAGUAbQBhAHMALgBtAGkAYwByAG8AcwBvAGYAdAAuAGMAbwBtAC8ARABSAE0ALwAyADAAMAA3AC8AMAAzAC8AUABsAGEAeQBSAGUAYQBkAHkASABlAGEAZABlAHIAIgAgAHYAZQByAHMAaQBvAG4APQAiADQALgAyAC4AMAAuADAAIgA+ADwARABBAFQAQQA+ADwAUABSAE8AVABFAEMAVABJAE4ARgBPAD4APABLAEkARABTAD4APABLAEkARAAgAEEATABHAEkARAA9ACIAQQBFAFMAQwBUAFIAIgAgAFYAQQBMAFUARQA9ACIAUgBVAEYAdwBSAGkAVQA3AEYAMABpAC8AOQA4ADQAWQBOADkAbgA2AGwAUQA9AD0AIgA+ADwALwBLAEkARAA+ADwALwBLAEkARABTAD4APAAvAFAAUgBPAFQARQBDAFQASQBOAEYATwA+ADwATABBAF8AVQBSAEwAPgBoAHQAdABwAHMAOgAvAC8AYwBvAG4AdABlAG4AdAAtAGEAdQBzAHcAMgAuAHUAcABsAHkAbgBrAC4AYwBvAG0ALwBwAHIAPwBiAD0AYwA1AGIAZgAxAGMAOQA0AGUANgA3ADgANAA0AGMAMABiAGEAMQBjADAAMQBjAGUAZAA4ADQAZQ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8AUABCAFMAPgA8AC8AQwBVAFMAVABPAE0AQQBUAFQAUgBJAEIAVQBUAEUAUwA+ADwALwBEAEEAVABBAD4APAAvAFcAUgBNAEgARQBBAEQARQBSAD4A</mspr:pro>
      </ContentProtection>
      <SupplementalProperty schemeIdUri="urn:mpeg:dash:adaptation-set-switching:2016" value="1"/>
      <InbandEventStream schemeIdUri="com.uplynk.asset.metadata"/>
      <Representation bandwidth="3182605" codecs="avc1.64001f" frameRate="30" height="720" id="E" scanType="progressive" width="1280">
        <BaseURL>https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/</BaseURL>
        <SegmentTemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/$RepresentationID$_init.mp4?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" media="$RepresentationID$$Number%08d$.m4f?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" startNumber="0" timescale="90000"/>
      </Representation>
      <Representation bandwidth="4994505" codecs="avc1.640028" frameRate="30" height="1080" id="F" scanType="progressive" width="1920">
        <BaseURL>https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/</BaseURL>
        <SegmentTemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/$RepresentationID$_init.mp4?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" media="$RepresentationID$$Number%08d$.m4f?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" startNumber="0" timescale="90000"/>
      </Representation>
    </AdaptationSet>
    <AdaptationSet contentType="text" group="2" lang="es" mimeType="application/mp4" segmentAlignment="true">
      <Role schemeIdUri="urn:mpeg:dash:role:2011" value="subtitle"/>
      <Representation bandwidth="150" codecs="stpp.ttml.im1t" id="5" startWithSAP="1">
        <BaseURL>https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/</BaseURL>
        <SegmentTemplate duration="368640" initialization="https://x-default-stgec.uplynk.com/ausw/slices/c5b/c1e5068c9c4046ed97eba0e62fd1c6f5/c5bf1c94e67844c0ba1c01ced84e6064/SUB$RepresentationID$_init.mp4?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" media="SUB$RepresentationID$_$Number%08d$.m4s?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws" startNumber="0" timescale="90000"/>
      </Representation>
    </AdaptationSet>
  </Period>
</MPD>

What did you do? Just start the playback.

What did you expect to happen? Playback should start.

What actually happened? Plaback crashes.

I've seen shaka is replacing the RepresentationId in the Fragment URL (TK_$Number%08d$.m4f?pbs=c2d47433e3f1485094daa7b6dae25bdd&amp;drm=1&amp;cloud=aws) with TK0_00001001 but it should use TK0_00000000 when requesting the first fragment, so that, server is returning a 403 code producing a HTTP_BAD_STATUS error.

I've been debugging the player and it seems minPosition is not properly calculated here https://github.com/google/shaka-player/blame/master/lib/dash/segment_template.js#L347 and it may be related with this commit https://github.com/google/shaka-player/commit/9f448710bc53d5f1ebb6239cacf01f508218e9f2.

When replacing that Line with const minPosition = range[0]; playback works fine but I don't have enough background to know if that's the proper way to fix the bug.

I've tested in Dash.JS player and it starts with TK0_00000000 and playback works fine.

michellezhuogg commented 4 years ago

Hello @adgllorente ,

Thank you for the detailed information! Would you please provide us your sample manifest url and license info, so that we could verify our fix? You can send an email to shaka-player-issues@google.com . Thanks!

TheModMaker commented 4 years ago

This appears to be caused by our limiting of segment lists for live content. We should avoid limiting segments for VOD. As a workaround, you could increase the limit with manifest.dash.initialSegmentList configuration (e.g. set to 1e10).

adgllorente commented 4 years ago

We've removed the streams from our catalog because they were failing.

I'm working to restore the streams, I'll let you know.

Thanks!

adgllorente commented 4 years ago

The provider of the stream has recoded the stream and fixed the issue so I can't give you an MPD with the issue.

Feel free to close this issue, I'll open another one if it happens again.

Sorry.

joeyparrish commented 4 years ago

Thanks for your time in trying to get the stream back. Sorry we weren't able to help!