When PlaybackFragment is left running (e.g. when requesting search or by returning to the home screen), playback continues in the background which may or may not be correct. However, when returning to PlaybackFragment, the UI shows a paused video with another video instance playing (invisibly but audibly) in the background.
A simplification may be to remove VideoUrlLoader from PlaybackFragment and let callers provide the necessary video URL.
When
PlaybackFragment
is left running (e.g. when requesting search or by returning to the home screen), playback continues in the background which may or may not be correct. However, when returning toPlaybackFragment
, the UI shows a paused video with another video instance playing (invisibly but audibly) in the background.A simplification may be to remove
VideoUrlLoader
fromPlaybackFragment
and let callers provide the necessary video URL.