我一直在矢量视频列表{HTTP://a/video1.mp4, HTTP://a/video2.mp4 HTTP://a/video3.mp4 , HTTP ://a/video4.mp4 , HTTP://a/video5.mp4 ,的a/video6.mp4 }我想打所有的视频之一后采用了Android原生播放器VideoView另一个。请为我提供样品code实现相同的。
I have kept a list of videos in vector {a/video1.mp4, a/video2.mp4, a/video3.mp4, a/video4.mp4, a/video5.mp4, a/video6.mp4} I want to play all the videos one after the another using the Android native player VideoView. Kindly provide me the sample code to implement the same.
亲切问候,
CB
推荐答案在您VideoView设置MediaPlayer.OnCompletionListener。当视频完成你的监听器将被调用,这样你就可以在你的矢量更改视频URI到下一个上。
Set a MediaPlayer.OnCompletionListener on your VideoView. Your listener will be called when the video is done, so you can change the video URI to the next on in your Vector.
更多推荐
播放使用VideoView多个视频
发布评论