CefSharp无法播放mp3 [英] CefSharp doesn't play mp3

查看:453
本文介绍了CefSharp无法播放mp3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法在我的CefSharp项目中启用mp3? 我正在寻找CefSharp不支持Mp3格式的消息. 还有另一种播放mp3文件的方法吗?

Is there a way to enable mp3 on my CefSharp project? I'm looking aroung that CefSharp does not support Mp3 format. Is there another way to play mp3 files?

推荐答案

有一种方法可以在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.

详细的构建说明: http://code.google.com/p/chromiumembedded/wiki/BranchesAndBuilding

启用专有编解码器支持: http://code.google.com/p/chromiumembedded/issues/detail ?id = 371

Enabling proprietary codecs support: http://code.google.com/p/chromiumembedded/issues/detail?id=371

在您的cef.gypi配置中添加'proprietary_codecs':1,以便按net/base/mime_util.cc的要求定义USE_PROPRIETARY_CODECS. 您还需要正确构建avcodec,avformat和avutil DLL.幸运的是,您可以从Google Chrome本身的安装目录($ User/AppData/Local/Google/Chrome/$ Version)中获取这些文件.

Add 'proprietary_codecs': 1 to your cef.gypi configuration so that USE_PROPRIETARY_CODECS will be defined as required by net/base/mime_util.cc. You'll also need proper builds of the avcodec, avformat and avutil DLLs. Luckily, you can just get these from the installation directory of Google Chrome itself ($User/AppData/Local/Google/Chrome/$Version).

这篇关于CefSharp无法播放mp3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆