Cordova plugin to add tags to the AndroidManifest.xml that'll let your Cordova app run on Google TV, Android TV and OUYA.
That's all it does (I just needed something to streamline this process for me).
This does not add the Leanback banner, you'll sadly have to do that yourself (for now).
If you want to interact with the controls on an Android TV or Google TV device just set events on the arrow keys like you would with a desktop web app.
For gamepad support on anything below Android 5.0, turn to this plugin: https://github.com/judax/cordova-plugin-gamepad
Note: For Ouya and Android TV the plugin was specifically set to be list your app as a game, if you want it to show up on an Ouya and Android TV as an app you'll have to replace the part in my plugin.xml file that says "tv.ouya.intent.category.GAME" with "tv.ouya.intent.category.APP" and the part that says 'android:isGame="true"' to false.
cordova plugin add https://github.com/hughisaacs2/Cordova-Android-TV-Plugin.git
https://github.com/hughisaacs2/Cordova-Android-TV-Plugin
This has been released under MIT license; see LICENSE for details.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型