[TESTING] Bluetooth audio streaming (A2DP)


#681

Thankyou Sam
That got me on a path, but did set my master volume to 2 so it all went quiet. but now alsa is installed I have found its gui and amixer commands.
This worked for me (amixer -c 0 cset numid=3 1), i just didn’t have alsa installed before when i tried it.
Took a quick look and didn’t get too far on coding alsa to dual output, so i used another post to get a python script setup and hooked into my keymap to let harmony switch for me.
I’ve lost the btplayer integration it seems, but it’s playing nicely, so job done for my setup.
have a great weekend.
Alistair


#682

Is it posible to add this test release to osmc store, for more easy setup from running system?


#683

+1 so if there are updates, (have there been any?) we don’t have to faff around with sources.list


#684

Soon. Needs a couple of fixes before it can go in


#685

Hello,
I’m experiencing the same issues you describe here. Did you finally find a way to have the BT streaming active at first boot ? Many thanks for your reply.


#686

Hi,

With my BT dongle (not the built-in BT), A2DP works consistently now for me. When I reboot, it also still works.
But, I don’t reboot often. My OMSC is on 24/7.

Sometimes (very rarely), I might need to delete the BT speaker in OSMC, and re-discover/re-pair the speaker.
But I am using this 24/7, and it’s very stable for me.

Best regards,
Niall.


#687

Tested on vero 4k with Apple Airpods and works fine, some problems to pair them but after paired the sound is in the airpods when they are out of the case, and return to my tv when are inside the box.

Just try for some minutes, I will use them for more time for testing it.


#688

Hi, thank you guys for reply.

BT audio streaming works fine for me too now but I have to setup BT streaming output each tine I switch on my RP3.

I plan to use OSMC for audio streaming mainly, so RP3 is not always connected to a monitor. I won’t switch off as far as possible but if I do or if it shutdowns by itself for some reason, I don’t have OSMC desktop to configure BT streaming, that’s not very comfortable.

Do you know if there’s a way to switch on BT streaming using SSH console ?


#689

You can switch audio sources via json. Means you can either do so via ssh or http.

Alternatively install vncserver then you can get the GUI on your computer or phone


#690

VNC should be helpful, I’m going to try that !
I’m a newbie in linux and have no idea on how to use json… shame on me ! If someone could provide the command lines, it would be very nice.
thanks


#691

Search on Kodi Wiki.


#692

Guess you already found this

Well as @ooZee wrote search is your friend and while checking the Kodi Wiki will help you to understand the concept you even can search OSMC and find more closeer answers

Typing “change audio output ssh” into the search box top right gets you here:
https://discourse.osmc.tv/search?q=change%20audio%20output%20ssh

And that shows you several thread discussing the topic. In one I posted what I use.
Here is my current solution that also shows notification on screen.

Switch to HDMI
> curl -H “Content-type: application/json” -X POST -d ‘{“jsonrpc”:“2.0”,“method”:“Settings.SetSettingValue”, “params”:{“setting”:“audiooutput.audiodevice”,“value”:“PI:HDMI”},“id”:1}’ http://user:pass@osmc:8080/jsonrpc
> curl -H “Content-type: application/json” -X POST -d ‘{“jsonrpc”:“2.0”,“method”:“GUI.ShowNotification”, “params”:{“title”:“AUDIO OUTPUT”, “message”:“Switched to HDMI”}, “id”:1}’ http://user:pass@osmc:8080/jsonrpc

Switch to Bluetooth
> curl -H “Content-type: application/json” -X POST -d ‘{“jsonrpc”:“2.0”,“method”:“Settings.SetSettingValue”, “params”:{“setting”:“audiooutput.audiodevice”,“value”:“ALSA:pulse”},“id”:1}’ http://user:pass@osmc:8080/jsonrpc
> curl -H “Content-type: application/json” -X POST -d ‘{“jsonrpc”:“2.0”,“method”:“GUI.ShowNotification”, “params”:{“title”:“AUDIO OUTPUT”, “message”:“Switched to Bluetooth”}, “id”:1}’ http://user:pass@osmc:8080/jsonrpc


#693

It works perfectly. It really helps me right now but I’ll take care to use the search tools on wiki and forum next time :wink:
Thanks a lot !


#694

What issues did you have pairing them? I got AirPods recently but have been struggling to get them to pair with anything except my iPhone. It might also be worth us reporting the battery life to OSMC


#695

The only one problem was that I had to try to pair them three times… (no pin need) and finally conected.

I paired with a lot of devices without problem… just pressing the button in the case and white until white light blinks.

Until now I use them for an hour (playing a movie) and I have no notice about more battery use than with other devices.


#696

just ordered one Vero 4k to replace my RPi 3
Was wondering how well Bluetooth currently work?

This is one of the main feature i am after though i understand it is rather experimental.

Any headset recommendation and success stories or diy guide? for headset i am looking for something between 100 to 300 bucks


#697

It works OK: but sometimes some manual switching is required.

Some users have had success with streaming to and from (one user using AirPods).

I hope we can stabilise BTPlayer over the Summer now.


#698

and this with internal Bluetooth? What do you mean by manual switching?


#699

If you stream to your headphones, then want to switch back to HDMI, you will need to disconnect the headphones or switch back to HDMI.


#700

For the intended use really not a big deal for me, i’ll test and report back once i get it, can’t wait…

Bought the box for the wifi ac, BT, maybe 4k and for the great support you provide keep it up @sam_nazarko!