简体   繁体   English

Android Framwrork蓝牙A2DP + HDMI

[英]Android Framwrork bluetooth A2DP + HDMI

We are developing the Android Framework, and the default of the audio output is HDMI. 我们正在开发Android Framework,并且音频输出的默认值为HDMI。 When the bluetooth is connected with the Android, the audio output will be redirected to the bluetooth via A2DP protocol. 当蓝牙与Android连接时,音频输出将通过A2DP协议重定向到蓝牙。 How can we route the audio to the bluetooth speaker and the HDMI output at the same time? 如何将音频同时路由到蓝牙扬声器和HDMI输出? We have looked framework/base/media/java/android/media/AudioService.java and the frameworks/av/services/audioflinger/AudioFlinger.cpp , but I have no idea now. 我们已经查看了framework/base/media/java/android/media/AudioService.javaframeworks/av/services/audioflinger/AudioFlinger.cpp ,但现在我不知道。 Does someone has the experience? 有人有经验吗? Thanks! 谢谢!

I am quite certain that this is not possible to do. 我非常确定这是不可能的。 I am completely convinced that this is something that you shouldn't do. 我完全相信这是您不应该做的事情。 When you send audio over A2DP it is re-encoded, it is not the same audio stream that the one you send over HDMI. 当您通过A2DP发送音频时,将对其进行重新编码,这与您通过HDMI发送的音频流不同。 They will also be out of sync, since you have completely different delays between A2DP and HDMI. 由于A2DP和HDMI之间的延迟完全不同,因此它们也将不同步。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM