Bug fix for DateUtils not working as documented

This commit is contained in:
dhk2 2020-07-03 21:48:43 -07:00
parent 2c5248aebb
commit 1d3a464c62
1 changed files with 10 additions and 1 deletions

View File

@ -199,7 +199,11 @@ public class VideoPlayerFragment extends Fragment implements VideoRendererEventL
} }
}); });
} }
public void useController(boolean value){
if (mBound){
simpleExoPlayerView.setUseController(value);
}
}
private void playVideo(Video video) { private void playVideo(Video video) {
Context context = getContext(); Context context = getContext();
@ -259,6 +263,11 @@ public class VideoPlayerFragment extends Fragment implements VideoRendererEventL
mService.player.setPlayWhenReady(false); mService.player.setPlayWhenReady(false);
} }
} }
public void pauseToggle() {
if (mBound) {
mService.player.setPlayWhenReady(!mService.player.getPlayWhenReady());
}
}
public void unPauseVideo() { public void unPauseVideo() {
if (mBound) { if (mBound) {
mService.player.setPlayWhenReady(true); mService.player.setPlayWhenReady(true);