Thread
:
A2DP works, help me test it?
View Single Post
svs57
2009-12-03 , 08:05
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#
339
Start xterm. From xterm type
mplayer <Path to mp3 file>/<mp3 file name>
for example
mplayer /media/mmc2/music.mp3
Then copy output and paste here.
IMHO FAQ miss very important part - create a2dp device
Here is python script for this
-----------------------------------
import dbus
bus = dbus.SystemBus()
manager = dbus.Interface(bus.get_object('org.bluez', '/org/bluez'), 'org.bluez.Manager')
bus_id = manager.ActivateService('audio')
audio = dbus.Interface(bus.get_object(bus_id, '/org/bluez/audio'), 'org.bluez.audio.Manager')
path = audio.CreateDevice('XX:XX:XX:XX:XX:XX')
audio.ChangeDefaultDevice(path) #change the device to be used by default
sink = dbus.Interface (bus.get_object(bus_id, path), 'org.bluez.audio.Sink')
sink.Connect()
----------------------------------------------
Change in the line
path = audio.CreateDevice('XX:XX:XX:XX:XX:XX')
BT address of your headphone
Also check file
/etc/bluetooth/audio.conf
line
Disable=Control,Sink,Source
should be
#Disable=Control,Sink,Source
And restart BT as root
/etc/init.d/bluez-utils stop
/etc/init.d/bluez-utils start
Hope this help you.
Quote & Reply
|
The Following User Says Thank You to svs57 For This Useful Post:
clearcut
svs57
View Public Profile
Send a private message to svs57
Find all posts by svs57