播放使用VideoView多个视频

编程入门 行业动态 更新时间:2024-10-09 16:29:53
本文介绍了播放使用VideoView多个视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我一直在矢量视频列表{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多个视频

本文发布于:2023-11-27 18:46:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1639172.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   视频   VideoView

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!