Chromium嵌入式框架MP3支持 [英] Chromium Embedded Framework MP3 support
问题描述
我已经下载了适用于Windows的Chromium嵌入式框架r306并进行了构建.不幸的是,它表明它不支持mp3:
I've downloaded Chromium Embedded Framework r306 for Windows and built it. Unfortunately, it shows, that it doesn't support mp3:
<script>
var a = document.createElement("audio");
document.write(a.canPlayType('audio/mpeg'));
</script>
输出为空,当我尝试打开mp3文件时,无法播放(可播放ogg).
Output is empty and when I try to open an mp3 file, it can't be played (ogg is playable).
同一时间,谷歌浏览器写也许"(它实际上在播放).
The same time Google Chrome writes "maybe" (and it actually plays).
如何在CEF中添加对MP3的支持?
How can I add support for MP3 in CEF?
推荐答案
注意:请在开始之前考虑法律问题
有一种方法可以在CEF中启用MP3支持,但是您必须在源代码分发中修改cef.gypi,重新生成Visual Studio项目并重新构建.
There is a way to enable MP3 support in CEF, but you'll have to modify the cef.gypi in the source distribution, regenerate the visual studio projects and rebuild.
分步说明:
a
a
a
a
这篇关于Chromium嵌入式框架MP3支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!