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
Is your feature request related to a problem? Please describe.
If play fails some reason, the playing state remains as true even though not playing.
This is exactly what the state diagram said. However if play occurs audio session error, the playing state goes back to false, because audio session error can handle synchronously.
Describe the solution you'd like
Add option something like bool auto_state_recovery to play method and if it's true, set playing state as false if play fails not only synchronous but also asynchronous.
Describe alternatives you've considered
Because we can handle this as long as play reports error properly, just leave this as is. If so, it's very nice if there is a bit clear document about playing state with error.
Is your feature request related to a problem? Please describe.
If
play
fails some reason, the playing state remains astrue
even though not playing.This is exactly what the state diagram said. However if
play
occurs audio session error, the playing state goes back tofalse
, because audio session error can handle synchronously.Describe the solution you'd like
Add option something like
bool auto_state_recovery
toplay
method and if it's true, set playing state asfalse
ifplay
fails not only synchronous but also asynchronous.Describe alternatives you've considered
Because we can handle this as long as
play
reports error properly, just leave this as is. If so, it's very nice if there is a bit clear document about playing state with error.Additional context
Originally came up from #554
The text was updated successfully, but these errors were encountered: