同时流式传输到内置扬声器和蓝牙扬声器 [英] Streaming to built in speakers and bluetooth speakers simultaneously
问题描述
在Android上,是否可以同时将音频流传输到蓝牙配对扬声器和内置的 speaker ?
On Android, is it possible to stream audio to both a bluetooth paired speaker and the built in speaker at the same time?
看AudioManager
,似乎并非如此.我以为可以通过MediaRouter
做到这一点,但是我找不到任何文档来指出正确的方向.
Looking at AudioManager
, it seems not to be the case. I thought there might be a way to do it via MediaRouter
, but I can't find any documentation to point me in the right direction.
如果有人有任何建议,将不胜感激.谢谢!
If anyone has any suggestions, it would be much appreciated. Thanks!
推荐答案
您可以使用AudioManager.STREAM_RING
.此属性设置为MediaPlayer
:
You can used AudioManager.STREAM_RING
. This property sets to MediaPlayer
:
mediaPlayer.setAudioStreamType(AudioManager.STREAM_RING);
准备好了.
但是!,您的蓝牙设备同步确实会出现问题.现在,我正在尝试解决它.
BUT! you really will have a problem with synchronization of Bluetooth device. Now i'm trying to solve it.
这篇关于同时流式传输到内置扬声器和蓝牙扬声器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!