DASH stream stalling and crashing on Samsung Tizen
See original GitHub issueHave you read the FAQ and checked for duplicate open issues? Yes I found this thread which sounded similar https://github.com/google/shaka-player/issues/2620
What version of Shaka Player are you using? 3.0.4 (Update: also tested in v3.0.8 and v3.0.10)
Can you reproduce the issue with our latest release version? Yes
Can you reproduce the issue with the latest code from master
?
Yes (as of 12/10)
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? Yes. I tried loading the stream on the demo page in the Samsung Browser and it crashed the browser.
What browser and OS are you using? Tizen 4.0
For embedded devices (smart TVs, etc.), what model and firmware version are you using? 2018 Tizen TV Model: UN32N5300 Software Version: T-KTSNAKUC-1310.4
What are the manifest and license server URIs? https://content.jwplatform.com/manifests/4jFmgjZr.mpd
What did you do?
-
For the custom app:
- I created a page following: https://github.com/google/shaka-player/blob/master/docs/tutorials/basic-usage.md
- Passed https://content.jwplatform.com/manifests/4jFmgjZr.mpd as the
manifestUri
- Started the app on the TV
- The video loaded and immediately stalled. After ~30 seconds, the app crashed.
This is the log from the custom app
setup.js:12 initApp shaka-player.compiled.debug.js:1458 IndexedDB.install shaka-player.compiled.debug.js:1458 InputEvent.install shaka-player.compiled.debug.js:1459 mathRound.install shaka-player.compiled.debug.js:1460 MediaSource.install shaka-player.compiled.debug.js:1562 VideoPlayPromise.install shaka-player.compiled.debug.js:1564 Using native VTTCue. shaka-player.compiled.debug.js:1636 EmeEncryptionSchemePolyfill: Waiting to detect encryptionScheme support. shaka-player.compiled.debug.js:1642 McEncryptionSchemePolyfill: MediaCapabilities not found shaka-player.compiled.debug.js:682 Starting attach... shaka-player.compiled.debug.js:687 Starting load of https://content.jwplatform.com/manifests/4jFmgjZr.mpd... shaka-player.compiled.debug.js:732 Found variant with audio and video content, so filtering out audio-only content. shaka-player.compiled.debug.js:406 codecs vp9-vorbis avg bandwidth 843696.8 shaka-player.compiled.debug.js:549 init: completed initial Stream setup shaka-player.compiled.debug.js:716 No preferred audio language set. We have chosen an arbitrary language initially setup.js:44 The video has now been loaded! shaka-player.compiled.debug.js:431 Calling switch_(), bandwidth=19798 kbps shaka-player.compiled.debug.js:800 switch_ shaka-player.compiled.debug.js:501 Stall detected at 0.02 for 1.0480000972747803 seconds. shaka-player.compiled.debug.js:501 Pausing and unpausing to break stall.
This is the more verbose log showing what was happening after the
Pausing and unpausing to break stall
before it crashed.shaka-player.compiled.debug.js:501 Pausing and unpausing to break stall. shaka-player.compiled.debug.js:578 (audio:6) timeNeeded=14.993 shaka-player.compiled.debug.js:578 (audio:6) update_: presentationTime=0.02 bufferedAhead=14.952 shaka-player.compiled.debug.js:579 (audio:6) buffering goal met shaka-player.compiled.debug.js:607 (audio:6) updating in 0.5 seconds shaka-player.compiled.debug.js:578 (video:5) timeNeeded=12 shaka-player.compiled.debug.js:578 (video:5) update_: presentationTime=0.02 bufferedAhead=11.979000000000001 shaka-player.compiled.debug.js:579 (video:5) buffering goal met shaka-player.compiled.debug.js:607 (video:5) updating in 0.5 seconds shaka-player.compiled.debug.js:578 (audio:6) timeNeeded=14.993 shaka-player.compiled.debug.js:578 (audio:6) update_: presentationTime=0.02 bufferedAhead=14.952 shaka-player.compiled.debug.js:579 (audio:6) buffering goal met shaka-player.compiled.debug.js:607 (audio:6) updating in 0.5 seconds shaka-player.compiled.debug.js:578 (video:5) timeNeeded=12 shaka-player.compiled.debug.js:578 (video:5) update_: presentationTime=0.02 bufferedAhead=11.979000000000001 shaka-player.compiled.debug.js:579 (video:5) buffering goal met shaka-player.compiled.debug.js:607 (video:5) updating in 0.5 seconds shaka-player.compiled.debug.js:578 (audio:6) timeNeeded=14.993 shaka-player.compiled.debug.js:578 (audio:6) update_: presentationTime=0.02 bufferedAhead=14.952 shaka-player.compiled.debug.js:579 (audio:6) buffering goal met shaka-player.compiled.debug.js:607 (audio:6) updating in 0.5 seconds shaka-player.compiled.debug.js:578 (video:5) timeNeeded=12 shaka-player.compiled.debug.js:578 (video:5) update_: presentationTime=0.02 bufferedAhead=11.979000000000001 shaka-player.compiled.debug.js:579 (video:5) buffering goal met shaka-player.compiled.debug.js:607 (video:5) updating in 0.5 seconds shaka-player.compiled.debug.js:578 (audio:6) timeNeeded=14.993
-
For the demo page:
- Added Custom Content
- Set https://content.jwplatform.com/manifests/4jFmgjZr.mpd as the Manifest URL
- Clicked Play
- The video loaded, but the page froze and then the browser crashed
I can play the stream in the shaka demo-player on my MacOS Desktop and also in the custom app through the Tizen Simulator, but it keeps failing for me on the TV.
What did you expect to happen? The DASH stream to play
What actually happened? The stream loads, stalls, and the app/browser crashes. Sometimes the first frame is shown.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (6 by maintainers)
Top GitHub Comments
Since we could not reproduce the issue with the content from @mamaddox, I believe we should close this issue.
@Puritanic, please feel free to open a new issue.
Thanks, and we apologize for any inconvenience.
FYI, I’ve also tried playing with the default configuration instead of the one above, and the issue persists. After digging some more through issues, Sometimes, the content starts playing after some time, but I could not reproduce this consistently. Looks like the there is lot of calls to switch after the shaka player loads the content:
In the log above, the playback started after 6 minutes… Because of this, I would say that this is also related to #3076.