How to Route Android Audio Streaming to Google Glass via Bluetooth
Yes, I would like to use A2DP, but during initial research we found that the glass does not support this profile. And so I considered using HSP for audio transmission, however, I ran into several problems in doing so.
-
I tried to use bluetooth SCO and then set the stream type to STREAM_VOICE_CALL, hoping that it would define the profile.
Code link used:
localAudioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE); localAudioManager.setMode(0); localAudioManager.setBluetoothScoOn(true); localAudioManager.startBluetoothSco(); localAudioManager.setMode(AudioManager.MODE_IN_CALL);
However, it didn't help. I tried to play around with this code by setting different types of streams, but in all cases the sound was not routed to the glass headset.
-
Is there any other way to force the audio on to the HSP profile?
-
Could you please advise me some code reference to achieve our goal?
NB: I have a bluetooth socket always open between the glass and the tablet. Could this have a negative impact on the routing of sound to the glass through the HSP profile?
source to share
No one has answered this question yet
Check out similar questions: