question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Re-query MediaKeys to handle codec profile changes

See original GitHub issue

Have you read the FAQ and checked for duplicate open issues?: Yes What version of Shaka Player are you using?: master 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?: custom app. If custom app, can you reproduce the issue using our demo app?: No, you need to test specific stream. What browser and OS are you using?: it is reproducible on Chrome and Tizen. What are the manifest and license server URIs?:

If you require the custom app, I am happy to share it. What did you do? When an encrypted live stream becomes clear, it throws 4011 UNPLAYABLE_PERIOD error. What did you expect to happen? It should play the stream smoothly. What actually happened? playback is crashed.

This issue is introduced at this commit. When a stream is initiated, all supported types are stored at this array. However, supportedTypes only includes the codec and mime combination of initial segments as it is captured at this line. When the stream becomes clear, the ad segments have different codecs which are not in the supportedTypes array. So, these ad segments are filtered at this line. Although all ad segments are playable, they are filtered out and, eventually throws 4011 error code. I also attached supportedTypes array and an ad segment screenshots.

Please let me know if the issue is still unclear for you. Happy to help on fixing this issue.

Thank you, Semih. An ad segment =>

screen shot 2018-08-29 at 3 32 26 pm

supportedTypes array =>

screen shot 2018-08-29 at 3 32 41 pm

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
vaagecommented, Sep 5, 2018

@SemihGk @joeyparrish , Just so you both know, I have been following along. Will follow through on @joeyparrish recommended approach.

0reactions
SemihGkcommented, Sep 5, 2018

Thank you very much. I look forward to waiting for your fix. Meanwhile, I tested this approach and it is working on Tizen 17/18, LG 18 ( which those only support one video element at once), Chrome and Mozilla. Thus, this solution seems very safe to go.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Re-query MediaKeys to handle codec profile changes #1567
When an encrypted live stream becomes clear, it throws 4011 UNPLAYABLE_PERIOD error. What did you expect to happen? It should play the stream ......
Read more >
ETSI TS 103 285 V1.2.1 (2018-03)
MPEG-DASH Profile for Transport of ISO BMFF ... Geolocation by IP address ... boxes to deliver media keys that are changed over time...
Read more >
DASH-IF Interoperability: Guidelines for Implementations
The scope of the DASH-IF InterOperability Points (IOPs) defined in this document is to provide support for high-quality video distribution ...
Read more >
Microsoft Media Foundation - Win32 apps
Gets the codec profile associated with the video encoder heap. GetCodecProp. Retrieves a codec property specific to an output format. GetColor
Read more >
Keyboard Control - mpv.io
It supports a wide variety of video file formats, audio and video codecs, ... --video-backward-overlap can potentially handle intra-refresh video, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found