如何在iOS中通过应用程序(而不是从控制面板)使用AirPlay进行屏幕镜像? [英] How to do screen mirroring using AirPlay from the application (not from control panel) in iOS?

查看:442
本文介绍了如何在iOS中通过应用程序(而不是从控制面板)使用AirPlay进行屏幕镜像?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用MPVolumeView显示AirPlay按钮.我需要通过音频镜像向Apple TV显示自定义墙纸. Apple TV上的音频正常播放,但没有显示墙纸图像.我正在使用AVAudioController播放音频.我从视频播放应用程序中检查了YouTube应用程序,其中的屏幕镜像正在运行.是否可以使用AVAudioController在应用程序内进行屏幕镜像?

I am using MPVolumeView to show AirPlay button. I need to show a custom wallpaper to Apple TV through mirroring with audio. Audio is playing properly on Apple TV but wallpaper image is not showing. I am using AVAudioController for playing audio. I have checked YouTube application in which screen mirroring is working from application for video playing. Is it possible to screen mirroring within the app using AVAudioController ?

帮助我解决此问题.预先感谢.

Help me to solve this issue. Thanks in advance.

推荐答案

不幸的是,只有在控制面板中启用AirPlay镜像后,与AirPlay关联的外部显示器才会激活(并发布适当的通知).似乎有无法以编程方式启用镜像.

Unfortunately, external display associated with AirPlay will only become active (and post appropriate notification) when you enable AirPlay mirroring in control panel. There appears to be no way to enable mirroring programmatically.

MPVolumeView可以帮助用户将音频重定向到AirPlay扬声器,与显示镜像无关.

MPVolumeView can help user redirect audio to AirPlay speakers, it has nothing to do with display mirroring.

这篇关于如何在iOS中通过应用程序(而不是从控制面板)使用AirPlay进行屏幕镜像?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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