不玩断裂其他Android之后的多个视频之一 [英] Play multiple videos one after an other android without break

查看:126
本文介绍了不玩断裂其他Android之后的多个视频之一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的一个视频播放器为Android。我怎样才能发挥其拥有超过5份视频。我怎样才能连续播放所有零件此起彼伏,没有任何休息时间,开始下一个视频。我怎样才能做到这一点。请指导我这个问题。

I am working on a Video player for android. How can i play a video which has more than 5 parts. How can i continuously play all the parts one after another without any break while starting next video. How can i achieve this. please guide me in this issue.

推荐答案

我不认为有一种方式来实现这一目标,没有下到NDK。
我曾经在一个视频应用程序,类似与广告整合到YouTube的工作。但是,我们并没有发现这样的广告和内容视频之间的平滑过渡的方式。

I don't think that there is a way to achieve this, without going down to the NDK. I have worked on a video app, similar to youtube with ads integration. However we did not find a way of doing a smooth transition between the ads and the content video.

有商业库,它允许你播放流媒体文件,即使在Android 2.如果您的视频具有相同的流类型,你可以尝试用M3U拨弄和合并客户端上的m3us。但我还没有尝试过。

There are commercial libs, which allow you to play streams even on android 2. If your videos have the same streaming type, you could try to fiddle with the m3u and merge the m3us on client side. But i have not tried it.

最简单的解决办法是preprocess和合并服务器端上的视频,但根据你的使用情况,这可能不是一个选项。

The most simple solution would be to preprocess and merge the videos on serverside, but depending on your use case this might not be an option.

这篇关于不玩断裂其他Android之后的多个视频之一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆