Reputation: 41
I'm trying to build a bluetooth-receiver which can control the different media players on my smartphone (Spotify, Apple Music...) using the BlueZ D-Bus Media API:
https://github.com/pauloborges/bluez/blob/master/doc/media-api.txt
Most functions work fine so far (e.g. Play(), Pause(), Next()...). At the moment I'm struggling how to implement the commands from the position bar. When I move the slider in the position bar I want the playback to jump to that position. Unfortunately BlueZ D-Bus Media API does not offer a method like SetPosition() or something like that.
The best solution I found so far is to use the methods FastForward() or Rewind() multiple times which jump through the playback in 10-second-steps. That works fine for short songs but takes way too long (many seconds) for podcasts which are often longer than one hour.The ideal would be a method which can set the position of the playback depending on the slider in the position bar.
My question: Is there any way to set a specific position of the playback?
Many thanks
Upvotes: 0
Views: 252
Reputation: 1648
The Bluetooth A/V Remote Control Profile does not provide for setting a dedicated position within a media file. Therefore, I am afraid that this function is also not available in the BlueZ Media API.
Upvotes: 0