0
...幫助捕捉暫停/恢復視頻後的MediaController VideoView開始
mVideoView = (VideoView) findViewById(R.id.video); mVideoView.setKeepScreenOn(true); final Intent intent = getIntent(); mHeadline = intent.getStringExtra("headline"); String liveVideoUrl = intent.getStringExtra("live_video_url"); mVideoView.setVideoPath(liveVideoUrl); mMediaController = new MediaController(this); mVideoView.setMediaController(mMediaController); mVideoView.start();
...
我需要當用戶按壓暫停/播放按鈕來捕捉。 VideoView封裝了媒體播放器,因此我如何捕獲播放/暫停事件?謝謝。