Bugfix: Video was paused when started
This commit is contained in:
parent
69f424e71c
commit
f278eaf74d
@ -60,6 +60,9 @@ public class VideoplayerActivity extends MediaplayerActivity {
|
|||||||
if (videoControlsToggler != null) {
|
if (videoControlsToggler != null) {
|
||||||
videoControlsToggler.cancel(true);
|
videoControlsToggler.cancel(true);
|
||||||
}
|
}
|
||||||
|
if (controller != null && controller.getStatus() == PlayerStatus.PLAYING) {
|
||||||
|
controller.pause();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -152,9 +152,6 @@ public abstract class PlaybackController {
|
|||||||
*/
|
*/
|
||||||
public void pause() {
|
public void pause() {
|
||||||
mediaInfoLoaded = false;
|
mediaInfoLoaded = false;
|
||||||
if (playbackService != null && PlaybackService.getCurrentMediaType() == MediaType.VIDEO) {
|
|
||||||
playbackService.pause(true, true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user