|
楼主 |
发表于 2019-6-13 16:05:27
|
显示全部楼层
可以通过提供的接口来实现
调用参数:mediaplayer player_play_url {"url":"file:///usr/share/sound/command_timeout.mp3","type":1}
POST /remote/ubus HTTP/1.1
Host: api.mina.mi.com
Accept: */*
Content-Type: application/x-www-form-urlencoded; charset=utf-8
Connection: keep-alive
Cookie: xx
Accept-Language: zh-cn
Accept-Encoding: br, gzip, deflate
User-Agent: MiSoundBox/2.0.41 CFNetwork/978.0.7 Darwin/18.5.0
Pragma: no-cache
Cache-Control: no-cache
deviceId xxxx
message {"url":"file:///usr/share/sound/command_timeout.mp3","type":1}
method player_play_url
path mediaplayer
requestId xxxbb
具体的代码我就不码了。 |
|