Comments (9)
player_play_music 接口抓包有新的进展,在我的 LX07A 上能播放本地歌曲。有别的型号抓包也是用的 player_play_music 接口,所以我想新增一个接口,还没想好接口名字,或者用旧接口名字加个参数也行。 @yihong0618 帮忙给点建议?ok 的话我可以提个 pr 。
from miservice.
我觉得保留原接口下面写判断好一点。
player_play_music():
if device in ['a', 'b', 'c']:
do()
else:
do_other()
from miservice.
好的
from miservice.
这个库里如何拿到device呢?xiaogpt才有hardware,否则只能先调用 device_list 缓存deviceid对应hardware的关系了。这样是不是又复杂化了。
from miservice.
参考 cli.py
from miservice.
目前 LX04 X10A X08A 还无法播放,需要再想想办法。
from miservice.
同步最新消息,触屏版播放有希望了,等明天大部分型号测试正常了我再提个 pr 吧,主要是补充几个参数,已经精简到不能再精简了。相关提交见 hanxi/xiaomusic@e976393
from miservice.
@yihong0618 发现之前的实现不是很好,每次发现不能播放的设备都要加一下。有没有更好的建议?还是我发现一个类型就提一次pr?比如现在收到反馈X08C触屏版用新接口可以播放。
from miservice.
@yihong0618 发现之前的实现不是很好,每次发现不能播放的设备都要加一下。有没有更好的建议?还是我发现一个类型就提一次pr?比如现在收到反馈X08C触屏版用新接口可以播放。
hack 项目只能如此我觉得没啥问题,定期更新下就行
from miservice.
Related Issues (20)
- 小爱播放音乐api求助 HOT 3
- 语音不连贯 HOT 9
- Unable to install miservice HOT 13
- [小米小爱音箱Play 增强版] 查询型号 HOT 16
- 请问如何控制播放一个URL列表? HOT 9
- 如果有搞前端的想获取 did,可以用这个仓库,是在 js 下实现的,亲测很轻松就获取到 did 了,适合不熟悉 python 的人操作 HOT 8
- 无法在window下运行? HOT 1
- 获取音量和设置音量都可以,但是micli.py 5-4 查询天气 #1返回-704220025 HOT 4
- micli.py 5-4 查询天气 #1 返回 -704220025 HOT 4
- 显示没有--qun_key命令 HOT 1
- 'MiNAService' object has no attribute 'play_by_url' HOT 2
- micli.py 5-5 关闭厨房灯 #0,此处的#0可能需要转义? HOT 1
- 多个音响的使用方法? HOT 2
- micli.py play url 时报错:invalid admin HOT 1
- 播放音乐时蓝色灯常亮问题 HOT 11
- 获取不到歌曲播放时长问题 HOT 13
- micli list返回[]是怎么回事? HOT 5
- from lingua import LanguageDetector已经找不到了 HOT 5
- 关于minaservice.py中的play_by_music_url的疑问 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from miservice.