搜索...
小米电视在 6095 端口有一个内置的服务,很神奇的导出了一些 API 接口。
// http://xxx.xxx.xxx.xxx:6095/request?action=isalive { "status": 0, "msg": "success", "data": { "devicename": "客厅的小米电视", "ip": "xxx.xxx.xxx.xxx:6095", "feature": [ "power" ], "url": [ "http://bilibili.kankanews.com/video/av\\d+/", "http://www.bilibili.tv/video/av\\d+/" ], "platform": 630, "build": 1267, "version": 16777510 } }
// http://xxx.xxx.xxx.xxx:6095/controller?action=getinstalledapp&count=999&changeIcon=1 { "status": 0, "msg": "success", "data": { "AppInfo": [ { "PackageName": "com.mitv.alarmcenter", "IconURL": "http://xxx.xxx.xxx.xxx:6095/request?action=getResource&name=com.mitv.alarmcenter0.png", "AppName": "定时提醒", "Order": 1 }, { "PackageName": "com.ktcp.video", "IconURL": "http://xxx.xxx.xxx.xxx:6095/request?action=getResource&name=com.ktcp.video0.png", "AppName": "云视听极光", "Order": 2 }, ] } }
// http://xxx.xxx.xxx.xxx:6095/controller?action=startapp&type=packagename&packagename=com.xiaomi.tweather { "status": 0, "msg": "success", "data": null }
// http://xxx.xxx.xxx.xxx:6095/controller?action=keyevent&keycode=enter { "status": 0, "msg": "success", "data": {} }
keycode 可以是以下值: