mkjensen / danish-media-license

App for Android TV that provides access to videos available to everyone that pays the Danish media license
Apache License 2.0
3 stars 0 forks source link

PlaybackFragment does not connect to active background video when resumed #29

Open mkjensen opened 8 years ago

mkjensen commented 8 years ago

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.

mkjensen commented 8 years ago

This is because the life cycle of PlaybackFragment is currently messed up (Loader vs. TextureView vs. ExoPlayer). Will be fixed when cleaning it up.