hi
i’ve tried multiple times to get bluetooth streaming from my Galaxy S4 and iPod touch to my rpi2
but every time i select analoge output the music starts playing throught hdmi and osmc crashed
i’m using the BT dongle from the osmc store
log → http://paste.osmc.io/opizemitiv
EDIT:
i’ve found a solution just installed alsa-utils and changed audio output by hand:
Hi all. I now have a pi 3, fresh install of osmc. Using the BT speaker for streaming music. Everything works fine, although sometimes the speaker will be connected and playing music, when all of a sudden there is no sound from the speaker, and the sound is going thru the tv. If i toggle settings --> system -->audio --> Alsa stream to HDMI and back then the audio is back to the speaker, which was connected still connected.
The main issue I have is that if I leave Alsa streaming on for extended period of time, and then if BT speaker is off, the audio is coming out of the TV and it is delayed by ~0.5 seconds. SO i have to go back into settings --> system -->audio and toggle HDMI to get audio to play properly thru the tv.
my idea is to create a script, to toggle HDMI audio when detecting a tvshow or movie, and when it detects audio, to switch to Alsa. Can someone point me to the correct setting that gets toggled when you toggle settings --> system -->audio --> Alsa stream, which would not require a restart of kodi?
Hi again
Basically, I was thinking of something like this, run it as a daemon. I havent tested it yet, but i am hoping it will work I simply don’t know the variable which controls the alsa streaming a2dp, anyone have an idea?
#! /bin/bash
Video=$(curl -s -u xbmc:xbmc -X POST -H ‘Content-type: application/json’ -d ‘{“jsonrpc”: “2.0”, “method”: “Player.GetItem”, “params”: {“playerid”:1 }, “id”: 1}’ http://localhost:8080/jsonrpc | awk -F “,” ‘{print $NF}’ | sed -r ‘s/"//g’ | sed -r ‘s/}//g’)
Audio=$(curl -s -u xbmc:xbmc -X POST -H ‘Content-type: application/json’ -d ‘{“jsonrpc”: “2.0”, “method”: “Player.GetItem”, “params”: {“playerid”:0 }, “id”: 1}’ http://localhost:8080/jsonrpc | awk -F “,” ‘{print $NF}’ | sed -r ‘s/"//g’ | sed -r ‘s/}//g’)
Audiosetting=amixer -c 0 cset numid=3 | grep values=??? | sed -r 's/ : values=//g'
HDMIsetting=amixer -c 0 cset numid=3 | grep values=2 | sed -r 's/ : values=//g'
if [[ “$Audiosetting” != Alsavariable && “$Audio” =~ song ]]; then
# toggle Alsa setting
else
if [[ “$HDMIsetting” != 2 && ]]; then
# toggle HDMI setting
amixer cset numid=3 2
else
exit 0
fi
fi
After this, I tried to pair the device but kodi was unable to connect to it. I’m not even sure if the pairing went well although the device showed up on the paired devices list.
Just installed this, I’m trying to get audio from my phone or laptop to the pi. Am I missing something, because I can’t find anywhere an option to be able to do this?
My phone doesn’t see it as an audio device. In the devices menu I have a bluetooth icon next to it instead of a headset icon and pressing on the device in the list does nothing. Nor does the laptop.
Ah. Fixed it sort of. I had paired the devices before installing this app, and when I re paired them I didn’t make sure they’d completely forgotten about each other. The issue I have now is that although I have my Pi set to output sound via Analogue in Kodi settings, any audio received via Bluetooth is only output through HDMI, regardless of this setting. Any ideas?