我正在尝试使用带有raspian的覆盆子pi零w构建一个尽可能小的蓝牙接收器,请参阅:
了解详情...
使用我的iPod Nano播放蓝牙音频已按预期工作,我可以通过dbus命令控制播放(播放,暂停,停止,快进,快退)。
现在我正试图找到一种设置播放位置的方法,例如从3:30跳到3:00(30秒倒带)。
阅读bluez media-api:
我没有找到跳转到特定播放位置的可能性,因为Position是 READONLY 属性:
uint32 Position [readonly]
Playback position in milliseconds. Changing the
position may generate additional events that will be
sent to the remote device. When position is 0 it means
the track is starting and when it's greater than or
equal to track's duration the track has ended. Note
that even if duration is not available in metadata it's
possible to signal its end by setting position to the
maximum uint32 value.
作为一种解决方法,我可以在3:30进行倒带,重复读取位置并设置状态再次播放,如果它低于等于3:00,但如果我想从3开始,这需要很长时间: 30至1:30。
我的问题: