Search code examples
mp3chromiumchromium-embeddedmpeg

Chromium Embedded Framework MP3 support


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>

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

How can I add support for MP3 in CEF?


Solution

  • NOTE: PLEASE CONSIDER LEGAL ISSUES BEFORE PROCEEDING

    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.

    Step by step instructions:

    enter image description here enter image description here aenter image description here enter image description here aenter image description here enter image description here