- No sound with bluetooth headset, and media freezes
- Solution 2
- Related videos on Youtube
- Aleksejs Ivanovs
- Comments
- A2DP Bluetooth audio randomly shows «(no media)»
- A2DP Bluetooth audio randomly shows «(no media)»
- How to enable only media audio to Bluetooth device
- How to turn on sound for Bluetooth Headset Windows
- Bluetooth connected but no sound Fix
- A2DP Bluetooth audio randomly shows «(no media)»
- 1 Answer 1
No sound with bluetooth headset, and media freezes
After changing Audio Profile to High Fidelity Playback (A2DP Sink) , that works very well. I am using ubuntu 18.04 and blueman. My phone is Sony WH1000-XM3. The setup steps as followed:
- remove bluez if it is installed: sudo apt-get remove —auto-remove bluez
- install blueman: sudo apt-get install blueman
- enable and start bluetooth service: modprobe btusb ; sudo systemctl enable bluetooth.service ; sudo systemctl start bluetooth.service
- check it and unblock: sudo systemctl status bluetooth ; rfkill unblock bluetooth
- reboot
- turn on the headset -> click the green bluetooth icon on top-right corner of the screen -> choose Devices
- Click Search and right click on your device, choose Pair .
- Right click on your device again and choose Headset if it is not connected.
- Right click on your device -> hover over Audio Profile -> Click High Fidelity Playback (A2DP Sink)
Now, test with a youtube video.
Note: You may need to click Headset a few times to connect and disconnect until it works.
Solution 2
I have a Divoom Voombox-outdoor, and I had similar issues. Everything playing would stop/freeze and it would not work after I connected it.
After I have searched on the internet, I have found a procedure to do when connecting and removing it. On a initial connection (and unique if the procedures after this one are always made):
- connect the bluetooth speaker/headset (may be using blueman or bluetoothctl or another equivalent);
- with pavucontrol or blueman (or equivalent), turn off the bluetooth device;
- disconnect the device.
Then connecting it (this time to work):
- connect the bluetooth speaker/headset (may be using blueman or bluetoothctl or another equivalent);
- with pavucontrol or blueman (or equivalent), choose the option High Fidelity Playback (A2DP Sink).
It would need to turn off the internal sound to make all programs use the bluetooth sink.
- with pavucontrol or blueman (or equivalent), turn off the sound device;
- disconnect the bluetooth speaker/headset (may be using blueman or bluetoothctl or another equivalent).
The three procedures can be done using only blueman, as on it there are options to change the audio configuration.
What may happen is forgetting to turn the device off on pavucontrol before disconnecting, which will require to do again the first procedure. This is curious, because the speaker, sometimes, turn off when that is done, as if its firmware had crashed (this is still better than Windows 10, which asks to reboot).
I use Xubuntu 16.04, so there may be differences between the programs used, but the idea is to always turn off the sink of the device from pulseaudio before disconnecting it.
Related videos on Youtube
Aleksejs Ivanovs
Updated on September 18, 2022
Comments
After very painful update to 16.04 I have a problem with wireless headset Sony DR-BTN200. It doesn’t produce any sound, and the media freezes. For example, I open some video on youtube. It plays on laptop’s speakers, I can hear the sound. Once I connect headset, the sound stops and video just pauses (however, pause button of youtube player is not pressed). The same thing is when I try to play some mp3 or watch any movie. The only exception is Spotify — it shows visually that track is playing, but there’s no sound and also Spotify displays a notification that track cannot be played. Once I disconnect headset, the video or audio continues playing from the place it paused. If I try to first connect headset and then open a video, it doesn’t start (but is loading), and starts right after I disconnect headset. I tried to press buttons on my headset. I can tell that youtube reacts on play button — it shows buttons, just like if I moved the mouse or pressed any button. But there’s no any reaction, video still stays paused. Headphones are connected as headset, profile is Hihg fidelity playback (A2DP sink). The problem appeared right after update to 16.04, it worked perfectly with 14.10.
See askubuntu.com/a/837732/300665 if you run pylovers script in terminal before watching youtube, it should work. There is a bug report
Thank you for this workaround. I haven’t awarded the bounty as I’m after launchpad bug report and root cause.
A2DP Bluetooth audio randomly shows «(no media)»
Hence, I need to turn of Media audio in default setting (Left image) after headset connect with phone by Bluetooth. Solution: If you are searching for ways to toggle audio while being connected to A2DP or Non-A2DP I have written a test application which can provide you the basic knowledge of audio routing.
A2DP Bluetooth audio randomly shows «(no media)»
Sometimes when I connect my phone to my headset, the Bluetooth device will be listed as:
» Connected ( no media ) «
When this happens, it uses the «Phone audio» profile. The » Media audio » profile (A2DP) will also have a checkmark, as if it were connected, but all sound is coming from the phone’s speaker (see photo below). If I attempt to uncheck it, it will immediately recheck itself. When it is working properly, it will wait two seconds and disconnect.
Rebooting the headset, or disconnecting it manually doesn’t solve the issue.
Solved: The android system is likely connected to the headset for phone calls, and some other device for A2DP (media). Some other device is still using the audio connection, even though the sound comes from android’s speaker!
What this means is that if you have any other A2DP devices that you’ve paired your android with (laptop/stereo/etc) then you will have to disconnect via the other device, not android.
However under android’s «Paired Devices» list (see image), the other device isn’t always listed as connected , even though it is! If you manually try to un-check the «Media audio» profile for the other device, it will not disconnect! You must manually disconnect the other device outside of android.
For example: If the other device is a laptop, you must disconnect the audio connection using the laptop. If the other device has no way to manually disconnect (no buttons), just turn it off and use your android to connect to the correct device.
Bluetooth connected but no sound Fix, Here is how to go about fixing Bluetooth connected but no sound on the Android or Samsung devices. So if your Bluetooth or Wireless headphones, Boombox,Speak
How to enable only media audio to Bluetooth device
Let’s comments below for discussionWhen your phone is connected to Bluetooth mostly or default after you paired device. When you picked up or make phone call
How to turn on sound for Bluetooth Headset Windows
For example, if you paired a headset to Windows 10 and there is no so This guide will show you how to turn on the sound for your current paired audio device. For example, if you paired a
Bluetooth connected but no sound Fix
Here is how to go about fixing Bluetooth connected but no sound on the Android or Samsung devices. So if your Bluetooth or Wireless headphones, Boombox,Speak
I have a headset device. I want to transfer my voice from the headset to my mobile. The mobile can play my sound via its speaker. Hence, I need to turn of Media audio in default setting (Left image) after headset connect with phone by Bluetooth. I am looking for a solution to turn off Media audio by programming such as right image. Could you suggest to me the solution for my work?
If you are searching for ways to toggle audio while being connected to A2DP or Non-A2DP I have written a test application which can provide you the basic knowledge of audio routing . Github Repo for the test application: https://github.com/sauravpradhan/Basic-Audio-Routing
Bluetooth Headphones Connected but no sound, First, connect your Bluetooth headset using other device for us to check if the issue is with the computer or the Bluetooth headset itself. If it does not work using other device means it is faulty. It it works with other device proceed with the steps below. -Press Windows Key + R -Type Services.msc and hit enter
using API 28 Im trying to catch bluetooth headset media button s events (say the «next» button), on a c# Xamarin android app. i copied the code found here, but clicking the headset’s button starts spotify on a phone that has it installed, and google’s «play music» app on a phone that doesnt. either way my «OnReceive» event never gets fired. please see the commented-out code for all variations i already tried, to no avail.
from other sources and discussions I’ve also tried to set highest priority as 999, 1000 and 2147483647 to the receiver
my manifest’s tag (tried also «.BroadcastReceiver» and full package name):
Android.Support.V7.Widget.Toolbar toolbar = FindViewById(Resource.Id.toolbar); SetSupportActionBar(toolbar); var am = (AudioManager)this.GetSystemService(AudioService); var componentName = new ComponentName(PackageName, new MyMediaButtonBroadcastReceiver().ComponentName); am.RegisterMediaButtonEventReceiver(componentName); > public override bool OnCreateOptionsMenu(IMenu menu) < MenuInflater.Inflate(Resource.Menu.menu_main, menu); return true; >public override bool OnOptionsItemSelected(IMenuItem item) < int if (id == Resource.Id.action_settings) < return true; >return base.OnOptionsItemSelected(item); > public override void OnRequestPermissionsResult(int requestCode, string[] permissions, [GeneratedEnum] Android.Content.PM.Permission[] grantResults) < Xamarin.Essentials.Platform.OnRequestPermissionsResult(requestCode, permissions, grantResults); base.OnRequestPermissionsResult(requestCode, permissions, grantResults); >>
[BroadcastReceiver] //(Enabled = true, Exported = false) [IntentFilter(new[] < "android.intent.action.MEDIA_BUTTON">)] // , BluetoothHeadset.ActionAudioStateChanged, BluetoothHeadset.ActionVendorSpecificHeadsetEvent public class MyMediaButtonBroadcastReceiver : BroadcastReceiver < public string ComponentName < get < return Class.Name; >>
public override void OnReceive(Context context, Intent intent) < if (intent.Action != Intent.ActionMediaButton) return; var keyEvent = (KeyEvent)intent.GetParcelableExtra(Intent.ExtraKeyEvent); switch (keyEvent.KeyCode) < case Keycode.MediaPlay: break; case Keycode.MediaPlayPause: break; case Keycode.MediaNext: break; case Keycode.MediaPrevious: break; >> >
got no errors, but nothing else happens, either.
Can anyone please help me?
You can try to use the MediaSession and do not forget to play audio with AudioTrack
MediaSession ms = new MediaSession(ApplicationContext, PackageName); ms.Active = true; ms.SetCallback(new myMediaSession()); class myMediaSession: MediaSession.Callback < public override bool OnMediaButtonEvent(Intent mediaButtonIntent) < return base.OnMediaButtonEvent(mediaButtonIntent); >>
You can refer to following link. https://stackoverflow.com/questions/48840827/how- register-broadcast-receiver -for- media-button -in-oreo
How to make bluetooth headset to as default playback, In Control Panel, click Hardware and Sound. c. Under Sound, click Manage audio devices. d. In the Sound box, click the Playback tab, select the Bluetooth device, click Set Default, and then click OK. e. Restart all the multimedia programs including Windows Media Player that are currently running and check. …
A2DP Bluetooth audio randomly shows «(no media)»
Sometimes when I connect my phone to my headset, the Bluetooth device will be listed as: «Connected ( no media )» When this happens, it uses the «Phone audio» profile. The «Media audio» profile (A2DP) will also have a checkmark, as if it were connected, but all sound is coming from the phone’s speaker (see photo below). If I attempt to uncheck it, it will immediately recheck itself. When it is working properly, it will wait two seconds and disconnect. Rebooting the headset, or disconnecting it manually doesn’t solve the issue.
1 Answer 1
Solved: The android system is likely connected to the headset for phone calls, and some other device for A2DP (media). Some other device is still using the audio connection, even though the sound comes from android’s speaker!
What this means is that if you have any other A2DP devices that you’ve paired your android with (laptop/stereo/etc) then you will have to disconnect via the other device, not android.
However under android’s «Paired Devices» list (see image), the other device isn’t always listed as connected, even though it is! If you manually try to un-check the «Media audio» profile for the other device, it will not disconnect! You must manually disconnect the other device outside of android.
For example: If the other device is a laptop, you must disconnect the audio connection using the laptop. If the other device has no way to manually disconnect (no buttons), just turn it off and use your android to connect to the correct device.