gpt4 book ai didi

chromecast - CAF 接收器 : How to change the volume/mute?

转载 作者:行者123 更新时间:2023-12-02 05:16:19 26 4
gpt4 key购买 nike

如何在不使用转换扩展上的控件的情况下更改音量/静音流音频?我在发送方实现了一个 slider 。这会将音量值传递给接收器。但我不明白,如何设置音量或静音/取消静音命令是从接收器应用程序发送到播放器。
我应该为此使用哪些 API?

最佳答案

我能够找到/逆向工程它。我在文档中没有找到这个。

cast.framework.CastReceiverContext.getInstance().setSystemVolumeLevel(0.5) // 50%

关于chromecast - CAF 接收器 : How to change the volume/mute?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47827874/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com