优化视频播放在空气中的iOS [英] Optimizing video playback in AIR for iOS

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

问题描述

开发一个AIR的iOS应用程序,涉及到视频播放。是否有优化的视频内容在AIR应用程序中使用任何的最佳做法?

Developing an AIR for iOS app that involves video playback. Are there any best practices for optimizing video content for use in AIR applications?

推荐答案

通过AIR iOS上的视频最佳路线是使用H.264连接codeD的视频。这将是硬件加速,并在电池比FLV(其它常用的类型闪存)更好。

Best route for video through AIR on iOS is to use an h.264 encoded video. These will be hardware accelerated and be better on battery than FLV (the other usual type for Flash).

这个问题,当然,是大多数H.264视频无法播放使用iOS上的标准的Flash视频播放器。要解决这个问题,你会想尝试以下两种情况之一:

The problem, of course, is that most h.264 videos cannot be played back using standard Flash video players on iOS. To get around that, you'll want to try one of two things:

  1. 使用的StageWebView 。这将打开标准的iOS视频播放器,它是专门用于播放H.264视频的视频。这里的缺点是你必须在视频比卸载的StageWebView其他完全没有控制。你还可以在GUI中没有控制和视频将显示在整个应用和可能难以在Flex中的位置。
  2. 使用的StageVideo 这将允许硬件加速H.264视频,并使用内置的视频播放机制。它的工作原理飞驰,你可以完全控制你的视频,它是的只是的视频,所以你可以按照你贴合肌肤吧。唯一不足的是这种显示的StageWebView的完全相反,并显示的的您的应用程序。你将不得不创建一个口罩,看视频。
  1. Use StageWebView. This will open the video in the standard iOS video player, which is purpose-built to play h.264 videos. The downside here is you have absolutely no control over the video other than unloading the StageWebView. You also have no control over the GUI and the video will display over the entire application and can be difficult to position in Flex.
  2. Use StageVideo which will allow for hardware accelerated h.264 videos and use the built in video playback mechanisms. It works fantastically, you have full control over your video, and it is just the video, so you can skin it as you see fit. The only downside is this displays the exact opposite of StageWebView and displays under your app. You will have to create a mask to see the video.

这是不幸的,用于播放视频的iOS不驻留在显示列表中两个最好的选择,但是这是我们必须处理。

It's unfortunate that the two best options for playing video on iOS do not reside in the Display List, but that is what we have to deal with.

希望帮助。

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

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