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
Tizen: Playback won't start after application is hidden during playback #1184
Comments
Hi and sorry for the late response. The necessary conditions for a
So the main reason for staying in a Could you copy paste the full |
These are the logs collected from the initial session:
And these after switching back from another application:
|
Ok, so what's weird here is that we're not rebuffering either... Maybe the media element's duration stays at
If it's not that, we may need to put break points or console.logs in that file to see what condition we do not pass. |
It doesn't seem to enter the |
When setting some more Line 35 in 48d1f84
Note that Tizen 2019 has a Chromium M63 browser Edit: |
Ok thanks! So it might be that the promise returned by We could try to see if we reach the |
Yes, we've set When setting this value to |
A small update: I've modified the
After this change, the regular code path gets fired (starting from So I guess, something is wrong with the |
OK interesting. Changing the media element this way may be risky because an RxPlayer considers that it is always linked to the same media element. |
Yes, that might be the best option right now. I've tested it, by disposing the player first (calling After all this, playback starts as expected 😄 So this may be a browser/Tizen issue instead I guess. Anyway, thanks for your help & feedback |
We have an issue on certain Tizen devices (verified on 2018, 2019 & 2020 models). 2017, 2021 & 2022 models were also tested, but the behaviour differs. The latter don't have issues when the application is restored.
Tizen devices support this
Multitasking
feature, which allows to store the application state when switching to another application. Whenever the application is reopened, this state should be restored. What we've implemented, is that we stop the player when the application is hidden (usingplayer.stop()
) and whenever the application is restored, we try to resume playback usingplayer.loadVideo()
.I've collected some logs when setting
RxPlayer.LogLevel = "DEBUG"
and gathered some relevant data:Start playback using
loadVideo
Logged data with
API
prefix:Then, we switch to another application, which fires this
visibilitychange
event. In the handler, we stop playback usingplayer.stop()
:After this call, 2 more logs will be visible:
After a short period (10 - 20 seconds), we switch back to our app & again, the
visibilitychange
event fires, but this time we try to resume playback usingplayer.loadVideo()
:Again the logs with
API
prefix have been collected:The player doesn't seem to get into next state, as it stays in
LOADING
state, and keeps firingtimeupdate
eventsThe text was updated successfully, but these errors were encountered: