CefSharp doesn't play mp3

大城市里の小女人 提交于 2019-12-02 08:33:41

问题


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?


回答1:


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.

Detailed build instructions: http://code.google.com/p/chromiumembedded/wiki/BranchesAndBuilding

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

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).



来源:https://stackoverflow.com/questions/34340037/cefsharp-doesnt-play-mp3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!