Commit ad497a70 authored by Geoffrey Métais's avatar Geoffrey Métais

Pause video when player loses visibility

Fixes playpause button not pause video on Android TV launcher
parent aa94abbd
......@@ -547,6 +547,12 @@ public class VideoPlayerActivity extends AppCompatActivity implements IVLCVout.C
requestVisibleBehind(true);
}
@Override
public void onVisibleBehindCanceled() {
super.onVisibleBehindCanceled();
pause();
}
@Override
public void onConfigurationChanged(Configuration newConfig) {
if (!AndroidUtil.isHoneycombOrLater())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment