Bugfix: Video was paused when started

This commit is contained in:
daniel oeh 2014-02-10 19:25:43 +01:00
parent 69f424e71c
commit f278eaf74d
2 changed files with 3 additions and 3 deletions

View File

@ -60,6 +60,9 @@ public class VideoplayerActivity extends MediaplayerActivity {
if (videoControlsToggler != null) {
videoControlsToggler.cancel(true);
}
if (controller != null && controller.getStatus() == PlayerStatus.PLAYING) {
controller.pause();
}
}
@Override

View File

@ -152,9 +152,6 @@ public abstract class PlaybackController {
*/
public void pause() {
mediaInfoLoaded = false;
if (playbackService != null && PlaybackService.getCurrentMediaType() == MediaType.VIDEO) {
playbackService.pause(true, true);
}
}
/**