Git Product home page Git Product logo

Comments (9)

hanxi avatar hanxi commented on September 27, 2024

player_play_music 接口抓包有新的进展,在我的 LX07A 上能播放本地歌曲。有别的型号抓包也是用的 player_play_music 接口,所以我想新增一个接口,还没想好接口名字,或者用旧接口名字加个参数也行。 @yihong0618 帮忙给点建议?ok 的话我可以提个 pr 。

hanxi/xiaomusic#49

from miservice.

yihong0618 avatar yihong0618 commented on September 27, 2024

我觉得保留原接口下面写判断好一点。

player_play_music():
    if device in ['a', 'b', 'c']:
        do()
    else:
        do_other()

from miservice.

hanxi avatar hanxi commented on September 27, 2024

好的

from miservice.

hanxi avatar hanxi commented on September 27, 2024

这个库里如何拿到device呢?xiaogpt才有hardware,否则只能先调用 device_list 缓存deviceid对应hardware的关系了。这样是不是又复杂化了。

from miservice.

yihong0618 avatar yihong0618 commented on September 27, 2024

参考 cli.py

from miservice.

hanxi avatar hanxi commented on September 27, 2024

目前 LX04 X10A X08A 还无法播放,需要再想想办法。

from miservice.

hanxi avatar hanxi commented on September 27, 2024

同步最新消息,触屏版播放有希望了,等明天大部分型号测试正常了我再提个 pr 吧,主要是补充几个参数,已经精简到不能再精简了。相关提交见 hanxi/xiaomusic@e976393

from miservice.

hanxi avatar hanxi commented on September 27, 2024

@yihong0618 发现之前的实现不是很好,每次发现不能播放的设备都要加一下。有没有更好的建议?还是我发现一个类型就提一次pr?比如现在收到反馈X08C触屏版用新接口可以播放。

from miservice.

yihong0618 avatar yihong0618 commented on September 27, 2024

@yihong0618 发现之前的实现不是很好,每次发现不能播放的设备都要加一下。有没有更好的建议?还是我发现一个类型就提一次pr?比如现在收到反馈X08C触屏版用新接口可以播放。

hack 项目只能如此我觉得没啥问题,定期更新下就行

from miservice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.