在iOS和Android的视频播放能力 [英] Video playback capabilities in iOS and Android

查看:152
本文介绍了在iOS和Android的视频播放能力的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在计划为iOS和Android平台(平板电脑和手机),这将在很大程度上要素流视频播放的新应用的阶段。

I'm in the stage of planning a new application for both iOS and Android platforms (tablet and phone), which will heavily feature streaming video playback.

不过,文档是不是的,当涉及到视频播放这些平台的能力完全清楚。所以我的问题是:

However, the documentation is not entirely clear about capabilities of these platforms when it comes to video playback. So my questions are:

1)。可从网页/网页视图Android和iOS播放HTML5视频?

1.) Can Android and iOS playback HTML5 video from a webpage/webview?

2)。可HTML5视频显示与覆盖网页(非全屏的一部分)?

2.) Can HTML5 videos be shown as part of a webpage (non-fullscreen) with an overlay?

3)。可Android和iOS在非全屏模式下本地播放视频?

3.) Can Android and iOS play videos natively in non-fullscreen mode?

4)我可以做在一个播放的视频文/ graphcs覆盖,如果它是本机应用程序的一部分吗?

4.) Can I do text/graphcs overlay over a played video if it's a part of native app?

对这些问题的回答(如果可能的话,与支持的操作系统版本)将是非常美联社preciated,我似乎无法找到确凿resouces作为平台文档的一部分。

The answers on these questions (if possible, with supported OS versions) would be much appreciated, I can't seem to find conclusive resouces as part of the platform documentation.

推荐答案

好吧,让我试着回答尽可能明确,因为我刚刚和应用经验,在iOS和Android流。

Ok let me try to answer as clear as possible since I just had experience with apps for streaming in ios and android.

1)。可从网页/网页视图Android和iOS播放HTML5视频?

1.) Can Android and iOS playback HTML5 video from a webpage/webview?

是在两者都可以用<视频> 标签

2)。可HTML5视频显示与覆盖网页(非全屏的一部分)?

2.) Can HTML5 videos be shown as part of a webpage (non-fullscreen) with an overlay?

这取决于比OS上更多的器件。 iPad的可以不用全屏,但是iPhone确实采用全屏幕,Android平板电脑可以将部分的Andorid手机无法

This depends more on the device than on the OS. iPad can do it without full-screen but iPhone does apply full-screen, Android Tablets Can some Andorid phones Can't.

特别是在iOS和iPhone去是创建一个的MPMoviePlayerController (不要与 MPMoviewPlayerViewController ),你可以设置你的viewController布局和限制视频的大小,所以你可以看到布局。 (这allso作品,当然在iPad上,这样可以为您的最佳的方法)

Specifically on iOS and iPhones the best way to go would be to create a MPMoviePlayerController (not to be confused with MPMoviewPlayerViewController) and you can set the layout in your viewController and restrict the size of the video so you can see the layout. (This allso works of course in iPad so that could be your best approach for both)

3)。可Android和iOS在非全屏模式下本地播放视频?

3.) Can Android and iOS play videos natively in non-fullscreen mode?

是的,他们可以,如上所述会更好,如果不是使用的WebView 您使用视图控制器的VideoPlayer的

Yes they can, as explained above would be better if instead of using a WebView you use VideoPlayer's in View Controllers

4)我可以做在一个播放的视频文/ graphcs覆盖,如果它是本机应用程序的一部分吗?

4.) Can I do text/graphcs overlay over a played video if it's a part of native app?

您可以使用上面的方法,因为您的视频将在你的的ViewController ,你在你看来,在这样做时,管理该播放器的大小和位置的WebView 设备会自动让你管不了它加载播放器。

You can using the above approach since your video will be on your viewcontroller where you manage the size and position of the player in your view, when doing it on a webviewthe device automatically loads the player so you are unable to manage it.

您应该稳妥起见,去分钟操作系统要求的iOS 4.0和Android 2.1操作系统,由于改进对本地视频播放制作两个版本的

You should play safe and go for min OS requirements iOS 4.0 and Android OS 2.1 because of the improvements both versions made on native video playback

这篇关于在iOS和Android的视频播放能力的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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