【发布时间】:2014-03-30 13:45:02
【问题描述】:
【问题讨论】:
标签: android
【问题讨论】:
标签: android
停止视频
// will stop and release the media player instance and move to idle state
videoView.stopPlayback()
开始新游戏
// fist set video path
videoView.setVideoPath("path"); // will release the previous media player instance if any
videoView.start() // will start if not in prepare/error state
暂停当前播放
// pause the video
videoView.pause() // will pause if already playing
从当前暂停位置恢复视频
// resume the video
videoView.resume() // will resume from the last paused state
【讨论】:
MediaPlayer mediaPlayer = new MediaPlayer();
mediaPlayer.pause(); 长度=mediaPlayer.getCurrentPosition();
mediaPlayer.seekTo(长度); mediaPlayer.start();
【讨论】: