You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Despite the player working seamlessly it still goes on playing in the background even when the screen is off. The toro widget container could be attached to the lifecycle of the activity/fragment.
The toro player lifecycle should be attached to the activity/fragment and lifecycle states should decide whether to play or pause or release the player.
I tried to control the playback of the player from the Toro Container from the Activity but I was not able to modify the container in the onPause and onResume state of the activity.
The text was updated successfully, but these errors were encountered:
shivamsoods
changed the title
Make Player attached to lifecycle
[Feature Request] Make Player attached to lifecycle
May 1, 2020
@shivamsoods You can archive the behavior by manually observing the lifecycle change, and then update the PlayerSelector accordingly: a PlayerSelector that selects nothing if the lifecycle is paused or stopped or anything of your choice, and a default PlayerSelector that selects one player otherwise.
Feature Request
Despite the player working seamlessly it still goes on playing in the background even when the screen is off. The toro widget container could be attached to the lifecycle of the activity/fragment.
The toro player lifecycle should be attached to the activity/fragment and lifecycle states should decide whether to play or pause or release the player.
I tried to control the playback of the player from the Toro Container from the Activity but I was not able to modify the container in the onPause and onResume state of the activity.
The text was updated successfully, but these errors were encountered: