热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

iPhone-HowToTurnoffScreen&Keepavideoplaying?

IhaveayoutubevideorunninginmyiPhoneapp.HowcanImakeittowheretheusercanhitthe

I have a youtube video running in my iPhone app.... How can I make it to where the user can hit the lock button but still be able to listen to the video, but just not see it?

我在我的iPhone应用程序中运行了一个youtube视频....我怎样才能将它转到用户可以点击锁定按钮但仍然能够收听视频的地方,但却看不到它?

So basically you have a Youtube video playing in my iPhone application. How can the user turn of the screen but still keep the audio from going out as well?

所以基本上你在我的iPhone应用程序中播放了Youtube视频。用户如何关闭屏幕但仍保持音频不会出现?

Is this possible if so how?

如果可能,这有可能吗?

2 个解决方案

#1


0  

This is not possible if your device is not jailbroken. Apple doesn't allow app developers to publish such apps due to their strict rules. You can have a look at the Apple's Human Interface Guidelines here

如果您的设备没有越狱,则无法进行此操作。由于严格的规定,Apple不允许应用开发者发布此类应用。您可以在此处查看Apple的人机界面指南

If your device is jailbroken, then there might be some tweaks in cydia for this.

如果你的设备被越狱,那么cydia可能会有一些调整。

#2


1  

You can find the answer in Apple's developer documentation by searching for "Implementing Long-Running Background Tasks".

您可以通过搜索“实施长时间运行的后台任务”在Apple的开发人员文档中找到答案。


推荐阅读
author-avatar
手机用户2502889851
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有