-
Notifications
You must be signed in to change notification settings - Fork 653
Enable MultiMedia in Crosswalk
Since Crosswalk binary doesn't include any codecs, say ffmpegsumo.dll
for Windows or libffmpegsumo.so
for Linux, the HTML5 multimedia features (<video>
and <audio>
) cannot work by default. To enable multimedia in Crosswalk binary, end users need to download and install the third-part codecs. Developer has the option to build the codecs by themselves.
Please note you might need to contact the legal for any potential licensing issues.
They include:
- Vorbis audio codec
- Theora video codec
- VP8 video codec
- PCM
Please follow the steps for Crosswalk binary release:
- Download the appropriate upstream Chromium build. For example, for current Crosswalk release, fetch the chrome-win32.zip on Windows or the chrome-linux.zip on Linux.
- Unzip and copy the
ffmpegsumo.dll
orlibffmpegsumo.so
to the directory which containsxwalk
executable. - Relaunch
xwalk
, the multimedia will work.
Developers can also build the codecs by themselves. Please refer to Crosswalk Build Instruction. After build, the ffmpegsumo.dll or libffmpegsumo.so with open source codecs will be found in the build output directory.
They include:
- MP3 audio codec
- AAC audio codec
- H.264 video codec
Developers need to build Crosswalk with "must accept a EULA" by one gyp definitions. Please refer to Crosswalk Build Instruction:
$ xwalk/gyp_xwalk -Dmediacodecs_EULA=1
Then build the Crosswalk. The ffmpegsumo.dll
or libffmpegsumo.so
in build output directory will contain the proprietary codecs.
For more details, please refer to Chromium Audio/Video.