在Chromium嵌入式框架中无法播放视频(mp4) [英] Cant play video (mp4) in Chromium Embedded Framework

查看:632
本文介绍了在Chromium嵌入式框架中无法播放视频(mp4)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用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).

阅读我的答案,了解有关如何使用启用的专有编解码器

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:


  1. https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md

  2. BranchesAndBuilding 在同一Wiki中

  1. https://bitbucket.org/chromiumembedded/cef/wiki/MasterBuildQuickStart.md
  2. and BranchesAndBuilding in the same wiki

这篇关于在Chromium嵌入式框架中无法播放视频(mp4)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆