使用chrome cast示例代码或教程进行屏幕镜像 [英] Screen mirrorring using chrome cast example code or tutorial

查看:178
本文介绍了使用chrome cast示例代码或教程进行屏幕镜像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个示例应用程序,该应用程序具有将我的Android屏幕投射到电视屏幕上的功能。我看到的大多数示例应用程序(包括googles官方示例转换应用程序)也具有转换音频和视频的功能。
我知道他们是Google的chromecast应用,它具有相同的功能(屏幕镜像),但是我需要在我的应用中集成相同的功能。因此,任何使用cast SDK指向屏幕镜像方向的代码示例或教程都将不胜感激。

I am looking to build a sample app that has the capability to just cast my android screen on to the TV screen. Most of the sample applications(including googles official sample cast applications) I see have the capability to cast audio and video as well. I know their is google's chromecast app which does the same(screen mirroring), but I need to integrate same functionality in my app. So any kind of code example or tutorial that point me in the direction of screen mirroring using cast SDK will be much appreciated.

推荐答案

您无法以编程方式在应用程序外部启动对手机屏幕的镜像;您只能使用远程显示API从自己的应用程序中镜像视图;阅读有关远程显示API的信息

You cannot programmatically initiate mirroring your phone screen outside of your app; you can only use the Remote Display APIs to mirror a view from within your own app; read about the Remote Display apis.

这篇关于使用chrome cast示例代码或教程进行屏幕镜像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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