简体   繁体   English

同时使用StageVideo和executeInBackground的iOS版Air

[英]Air for iOS using StageVideo and executeInBackground simultaneously

Ok so I am not sure if there is any possible solution but I was hoping someone could offer some insight. 好的,所以我不确定是否有任何可能的解决方案,但我希望有人可以提供一些见解。 I am building an app that requires a background process to run while the application is in the background. 我正在构建一个需要在后台运行的后台进程的应用程序。 However, I also need to display hardware accelerated video using the StageVideo object. 但是,我还需要使用StageVideo对象显示硬件加速的视频。

The problem I have run into is that it seems that StageVideo requires the use of render mode: "direct" and background processes requires the use of render mode: "cpu". 我遇到的问题是,StageVideo似乎需要使用渲染模式:“直接”,而后台进程需要使用渲染模式:“ cpu”。

Is there any known work around? 是否有已知的工作? Haven't had much look looking around google. 没什么好看的环顾Google。 Is it possible to change the render mode at runtime? 是否可以在运行时更改渲染模式?

thanks 谢谢

Air 3.9 beta promises to bring background execution to apps in direct mode. Air 3.9 Beta有望以直接模式为应用程序带来后台执行。

http://labs.adobe.com/technologies/flashruntimes/air/ http://labs.adobe.com/technologies/flashruntimes/air/

From the site: 从站点:

Mobile Support for Background Execution in “Direct” Render Mode – AIR now supports background execution of code on iOS and Android when render mode is set to “direct”. 移动在“直接”渲染模式下对后台执行的支持–当渲染模式设置为“直接”时,AIR现在支持在iOS和Android上后台执行代码。 This will allow your applications to perform tasks such as audio playback even when invisible to the user. 这将使您的应用程序即使在用户不可见的情况下也可以执行诸如音频播放之类的任务。 Due to power and CPU considerations, we recommend reviewing our release notes for additional details and guidance. 出于功耗和CPU的考虑,建议您查看发行说明以获取更多详细信息和指南。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM