您可以使用多部手机来控制同一个Android TV设备吗?(Can you use multiple phones to control the same Android TV unit?)

编程入门 行业动态 更新时间:2024-10-25 11:32:50
您可以使用多部手机来控制同一个Android TV设备吗?(Can you use multiple phones to control the same Android TV unit?)

如果我有一台Nexus播放器,并使用多部手机连接( 使用Android TV遥控器 ),是否可以区分代码中的每个控制单元?

(这将是一个很酷的方式来做多人游戏,而不需要昂贵的游戏手柄 - 朋友可以只使用他们的手机)

If I have a Nexus Player, and connect to it with more than one phone (Using Android TV Remote Control), is it possible to distinguish between each controlling unit in the code?

(It would make for a cool way to do multi-player games without the need for expensive game pads - friends can just use their phones)

最满意答案

是的,你可以这样做。 连接到Android设备(包括Nexus Player)时,每个输入设备都会获得一个唯一的标识符。 请参阅此处的文档。 我相信Nexus播放器上已有多人游戏可以实现这一目标(见此处 )。

Yes, you can do this. Each input device is given a unique identifier when connecting to an Android device (including the Nexus Player). Refer to the documentation here. I believe there are already multiplayer games on the Nexus Player which accomplish this (seen here).

更多推荐

本文发布于:2023-08-07 20:31:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1465524.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:您可以   设备   手机   Android   unit

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!