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
@OverridepublicvoidonPlaybackShutdown() {
if (DEBUG) {
Log.d(TAG, "onPlaybackShutdown() called");
}
// Override it because we don't want playerImpl destroyed
}
@avently why is this the case? Shouldn't that function be removed alltoghether if it does nothing? Anyway, onPlaybackShutdown() is used in the situation discussed above and when an unrecoverable error occours. Is it safe to have that function to what it ought to, i.e. shutting down everything?
The text was updated successfully, but these errors were encountered:
Stypox
added
bug
Issue is related to a bug
player
Issues related to any player (main, popup and background)
labels
Aug 15, 2020
I added this blank override after I noticed that when errors occurs player view get destroyed (i.e. it becomes null) so I just wanted to make the view alive until service gets destroyed without worrying about NullPointerExceptions.
Is it safe to have that function to what it ought to, i.e. shutting down everything?
I think, yes. If the service will be shutted down too then everything will be fine
Version
Steps to reproduce the bug
Expected behavior
The player should stop and close
Actual behaviour
The stream keeps playing as if nothing happened, controls are still working, but there is no stream in the play queue.
Analysis
When the only stream playing is removed, player.onPlaybackShutdown() is called. But that function does absolutely nothing, and there is even a comment asserting that it should do nothing:
@avently why is this the case? Shouldn't that function be removed alltoghether if it does nothing? Anyway,
onPlaybackShutdown()
is used in the situation discussed above and when an unrecoverable error occours. Is it safe to have that function to what it ought to, i.e. shutting down everything?The text was updated successfully, but these errors were encountered: