-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Handles sleep mode better on Mac #352
Comments
Error 1002 is because of a failed XHR. I suspect that the default retry parameters are to blame. I would guess that this would be resolved if we set the default to at least 2 attempts. The first request, interrupted by sleep, would fail. The second request, initiated after wakeup, would succeed. @xhwang-chromium, can you please test this theory? Open the demo app, then open the JS console. In the console, run this: shakaDemo.player_.configure({streaming:{retryParameters:{maxAttempts:2}}});
shakaDemo.player_.configure({manifest:{retryParameters:{maxAttempts:2}}});
shakaDemo.player_.configure({drm:{retryParameters:{maxAttempts:2}}}); Then load an asset and repeat your sleep test. Thanks! |
Thanks joeyparrish for the tips. I tried it but it seems shakaDemo isn't defined: Uncaught ReferenceError: shakaDemo is not defined(...) |
What URL are you using? Are you building and running Shaka locally or using our appspot demo? |
I was clicking the "demo app" link you provided above. |
I'm sorry, I think I made a mistake in the link. I edited that comment to correct, but here it is again for convenience: http://shaka-player-demo.appspot.com/demo/ |
Thanks! I tried it. After exiting sleep mode, the video paused for a few seconds, and finally resumes to play. But after a while it stopped again. So it's improved, but seems still need to polish. |
Okay, thanks for sanity-checking my guess. I'm traveling and don't have access to a Mac right now, but we'll try to make time to fix this before we release v2.0.0. Thanks! |
Recently we have made some updates to the network stability (#390). Can you try again from master to see if they fixed your problems? They helped in my testing. |
I re-tested this on the nightly build. Here's what I did:
Playback continues, with audio initially playing catching up to a still video frame. After that, video plays in sync. (I imagine this catch-up phase has something to do with Chrome's media pipeline on OSX, but it's definitely outside the control of Shaka.) Playback does not, however, continue to the end of the stream. At some point, it stops. Not sure why. I haven't looked at the Network panel in the developer tools, nor have I tried this with verbose logging. |
Could you please try the latest M52/M53 build which should have a fix On Wed, Jul 13, 2016 at 9:29 AM, Joey Parrish notifications@github.com
|
@ismena, please retest with latest Shaka Player & latest Chrome stable (52). |
Tried with Shaka nightly build and Chrome 52. Confirm that the issue doesn't repro: after opening the laptop the playback continues and successfully plays to the end. |
Repro steps:
Observed Result:
Playback stops with "Error code 1002".
Expected Result:
Playback should resume after exiting sleep mode.
The text was updated successfully, but these errors were encountered: