crasholino
crasholino

Reputation: 745

CefSharp doesn't play 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?

Upvotes: 1

Views: 1657

Answers (1)

null1941
null1941

Reputation: 972

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

Upvotes: 1

Related Questions