Thread
:
A2DP works, help me test it?
View Single Post
svs57
2008-06-05 , 13:56
Posts: 207 | Thanked: 31 times | Joined on Apr 2008
#
133
kagu can use mplayer to play. mplayer works correct with a2dp.
1.Edit /etc/bluetooth/audio.conf
...
#Disable=Sink
....
[A2DP]
SourceCount=2
SBCSources=1
MPEG12Sources=0
2. Install 4 scripts:
a2dp
switchOnBT.sh
speedup
speeddown
3. create device using python script (
http://wiki.bluez.org/wiki/HOWTO/AudioDevices
)
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('00:11:22:33:44:55')
#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()
4. start under user
a2dp firstrun
5. set kagu player - mplayer
Now you can use
a2dp toggle
to switch a2dp on/off
I use osso-statusbar-cpu to switch a2dp on/off
Attached Files
4scripts.zip
(2.3 KB, 271 views)
Last edited by svs57; 2008-06-05 at
14:04
.
Quote & Reply
|
The Following User Says Thank You to svs57 For This Useful Post:
grog
svs57
View Public Profile
Send a private message to svs57
Find all posts by svs57