linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to bind any linux media player to simple-player script?
@ 2015-12-26 15:18 Kyle Shneider
  2016-01-04 14:14 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Kyle Shneider @ 2015-12-26 15:18 UTC (permalink / raw)
  To: linux-bluetooth

I'm testing a2dp profile. bluetoothd gets commands from connected
device, but there are no audio.
As i get it, reading code of simple-player, you should either pass
actual player's path as argument of simple-player script of change
hardcoded /test/player to actual player's path... something like that,
correct me if i'm wrong. Binded player should have mpris interface,
like /org/mpris/MediaPlayer2/rhythmbox
But all linux players use session bus, and in our case we work with
org.bluez on system bus. So how to properly bind any linux media
player to simple-player script.

-- 
Kyle Shneider

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to bind any linux media player to simple-player script?
  2015-12-26 15:18 How to bind any linux media player to simple-player script? Kyle Shneider
@ 2016-01-04 14:14 ` Luiz Augusto von Dentz
  2016-01-06 10:46   ` Kyle Shneider
  0 siblings, 1 reply; 3+ messages in thread
From: Luiz Augusto von Dentz @ 2016-01-04 14:14 UTC (permalink / raw)
  To: Kyle Shneider; +Cc: linux-bluetooth@vger.kernel.org

Hi Kyle,

On Sat, Dec 26, 2015 at 1:18 PM, Kyle Shneider <shneiderkyle@gmail.com> wrote:
> I'm testing a2dp profile. bluetoothd gets commands from connected
> device, but there are no audio.
> As i get it, reading code of simple-player, you should either pass
> actual player's path as argument of simple-player script of change
> hardcoded /test/player to actual player's path... something like that,
> correct me if i'm wrong. Binded player should have mpris interface,
> like /org/mpris/MediaPlayer2/rhythmbox
> But all linux players use session bus, and in our case we work with
> org.bluez on system bus. So how to properly bind any linux media
> player to simple-player script.

If you have control over the player you may want to register directly
using the media interface, if you just want to bind an existing player
then you can use tools/mpris-proxy tool, it will detect MPRIS
compatible players and register them, but as the name suggests it will
proxy messages back and forth so it is not recommended for production,
it is just a testing tool.

-- 
Luiz Augusto von Dentz

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: How to bind any linux media player to simple-player script?
  2016-01-04 14:14 ` Luiz Augusto von Dentz
@ 2016-01-06 10:46   ` Kyle Shneider
  0 siblings, 0 replies; 3+ messages in thread
From: Kyle Shneider @ 2016-01-06 10:46 UTC (permalink / raw)
  To: Luiz Augusto von Dentz; +Cc: linux-bluetooth@vger.kernel.org

2016-01-04 17:14 GMT+03:00 Luiz Augusto von Dentz <luiz.dentz@gmail.com>:
> Hi Kyle,
>
> On Sat, Dec 26, 2015 at 1:18 PM, Kyle Shneider <shneiderkyle@gmail.com> wrote:
>> I'm testing a2dp profile. bluetoothd gets commands from connected
>> device, but there are no audio.
>> As i get it, reading code of simple-player, you should either pass
>> actual player's path as argument of simple-player script of change
>> hardcoded /test/player to actual player's path... something like that,
>> correct me if i'm wrong. Binded player should have mpris interface,
>> like /org/mpris/MediaPlayer2/rhythmbox
>> But all linux players use session bus, and in our case we work with
>> org.bluez on system bus. So how to properly bind any linux media
>> player to simple-player script.
>
> If you have control over the player you may want to register directly
> using the media interface, if you just want to bind an existing player
> then you can use tools/mpris-proxy tool, it will detect MPRIS
> compatible players and register them, but as the name suggests it will
> proxy messages back and forth so it is not recommended for production,
> it is just a testing tool.
>
> --
> Luiz Augusto von Dentz

Thanks for answer, Luiz.

Current questions:

1) For registering any media player (via RegisterPlayer(object player,
dict properties)) i should use it's proxy object on session bus?

2) Audio stream binding happens automatically after registering
endpoint and player or there is something more have to be done?
Bluetooth daemon finds necessary registered player by itself?

3) Am i right that for a2dp sink i should use MediaControl1 interface
and for a2dp source MediaPlayer1? It's just not so obvious reading
media-api.txt.

-- 
Kyle Shneider

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-01-06 10:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-12-26 15:18 How to bind any linux media player to simple-player script? Kyle Shneider
2016-01-04 14:14 ` Luiz Augusto von Dentz
2016-01-06 10:46   ` Kyle Shneider

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).