android - App发送hdmi cec命令

标签 android shell hdmi android-tv

我可以在发送 HDMI-CEC 命令的 Android TV 设备上制作应用吗?

当您打开应用程序时,它应该执行命令并关闭。

这可能吗?

最佳答案

Google 最近引入了一个名为 HdmiControlService 的新系统服务来处理 CEC:

With the introduction of the Android TV Input Framework (TIF), HDMI-CEC brings together all connected devices and minimizes compatibility issues. Android has created a system service called HdmiControlService to alleviate these pain points.

By offering HdmiControlService as a part of the Android ecosystem, Android hopes to provide:

  • A standard implementation of HDMI-CEC for all manufacturers, which will reduce device incompatibility. Previously, manufacturers had to develop their own implementations of HDMI-CEC or use third-party solutions.
  • A service that is well-tested against numerous HDMI-CEC devices already in the market. Android has been conducting rigorous research on compatibility issues found among the products and collecting useful advice from device implementers experienced in the technology. The CEC service is designed to keep a healthy balance between the standard and modifications to that standard so that it works with the products that people already use.

在此处了解更多信息:https://source.android.com/devices/tv/hdmi-cec

关于android - App发送hdmi cec命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29272025/

相关文章:

android - 使用shell命令获取android中的最新文件夹

bash - 使用命令行将所有空文件复制到文件夹中

android - 检测 Android 设备中的 HDMI 端口

linux - 如何使用 shell 脚本在/etc/sudoers 文件的末尾添加一行(不使用 pssh 工具)

android - 如何检测 Android 设备上的 HDMI 端口是否启用了 HDCP?

android - 绘制扭曲的矩形

android - 由于OneSignal无法解决依赖关系

java - 更改设备上的时间 => 在游戏中作弊

android - 将 kSoap 连接到 Spyne 时出错 The attribute '{http://schemas.xmlsoap.org/soap/encoding/}root' is not allowed