在Chromium嵌入式框架中无法播放视频(mp4) [英] Cant play video (mp4) in Chromium Embedded Framework
问题描述
我正在使用Windows窗体应用程序和嵌入式Chromium嵌入式框架(CEF),除视频和音频外,其他所有功能均正常运行。我该如何工作。
I am working with windows forms app and embedded Chromium Embedded Framework(CEF) everything working well except Video and Audio. How can i make it work.
预先感谢
推荐答案
您需要使用启用专有编解码器
(即H.264和MP3)的选项来编译CEF。
you need to compile CEF with options to enable proprietary codecs
(i.e. H.264 and MP3).
阅读我的答案,了解有关如何使用启用的专有编解码器$ c编译CEF的所有详细信息$ c>
you can read my answer with all the details on how to compile CEF with enabled proprietary codecs
现在魔术发生在这里:
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
有两个应更新/创建的批处理文件(如此处所示):
there is 2 batch files that you should update/create (as found here):
c:\code\chromium_git\update.bat:
set CEF_USE_GN=1
set GN_DEFINES=is_official_build=true proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2015 --sln=cef --filters=//cef/*
python ..\automate\automate-git.py --download-dir=C:\code\chromium_git --depot-tools-dir=C:\code\depot_tools --no-distrib --no-build
c:\code\chromium_git\chromium\src\cef\create.bat:
set CEF_USE_GN=1
set GN_DEFINES=is_win_fastlink=true proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2015 --sln=cef --filters=//cef/*
call cef_create_projects.bat
有2个Wiki文章解释了如何构建 CEF /铬:
There is 2 wiki articles that explain how to build CEF/Chromium:
- https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md
- 和
BranchesAndBuilding
在同一Wiki中
- https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md
- and
BranchesAndBuilding
in the same wiki
这篇关于在Chromium嵌入式框架中无法播放视频(mp4)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!