如何让Chrome Cast在后台iOS中运行? [英] How to keep Chrome Cast running in background iOS?

查看:370
本文介绍了如何让Chrome Cast在后台iOS中运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的问题,当你进入iPhone的主屏幕并且不退出应用程序而不是Chrome Cast设备停止在屏幕上播放视频如何在应用程序在后台运行时保持播放活动。

I have a simple question when you go to home screen of iPhone and do not quit the application than the chrome Cast device stops playing the video on screen how can I keep playback alive while the application is running in background.

推荐答案

如果你有一个视频应用并且它在一个演员设备中运行,你会想要以下行为:

If you have a video app and it is running in a cast device, you would want the following behavior:


  • 如果用户明确断开设备(通过强制转换菜单),接收器应查看连接的设备并查看是否有其他 连接设备。如果没有,则应该停止转换设备上的应用程序。但是,如果它找到另一个已连接的设备,则不应该停止该应用程序。

  • if user "explicitly" disconnects a device (through the cast menu), then receiver should look at the connected devices and see if there is any "other" connected device. If there is none, it should stop the application on the cast device. If, however, it finds another connected device, it should not stop the app.

如果用户未明确断开连接但设备因应用程序而断开连接进入后台,或手机超出wifi范围,或电池耗尽,或......,然后接收器不应该停止应用程序并应该让它运行,即使没有其他连接的发件人。

If user doesn't explicitly disconnect but device gets disconnected since the app goes into background, or phone goes out of wifi range, or it battery dies, or ..., then receiver should not stop the app and should let it run, even if there is no other connected sender.

如果您在设计应用程序和接收器时遵循这两项,那么当您的手机进入睡眠状态时,您应该没有任何问题你的应用程序转到后台。鉴于以上情况,您是否仍然看到问题?

If you follow these two in the design of your app and your receiver, then you shouldn't have any issue when your phone goes to sleep or your app goes to background. Do you still see an issue given the above?

这篇关于如何让Chrome Cast在后台iOS中运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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