hlwhl / webview_cef

WebView for Flutter Desktop Apps using CEF(Chromium Embedded Framework) [Work in Progress]
Apache License 2.0
189 stars 54 forks source link

Play MP4 video #126

Closed MobileD3v3l closed 5 months ago

MobileD3v3l commented 5 months ago

Hi,

When I'm trying to reproduce .mp4 videos, I get this error:

Uncaught (in promise) NotSupportedError: The element has no supported sources.", source: about:srcdoc

There are som codecs I must added?

Thanks

SinyimZhi commented 5 months ago

The cef prebuilt package didn't support h264(offically, cef not support by default). You can google how to add h264 support for cef, then build your own cef prebuilt package to replace the one we afford.

MobileD3v3l commented 5 months ago

Well, thanks, I'll check it out. But any advice on how to achieve this will be welcome.

hlwhl commented 5 months ago

Well, thanks, I'll check it out. But any advice on how to achieve this will be welcome.

You need to build cef framework by yourself with releated switches on. Reference: https://magpcss.org/ceforum/viewtopic.php?f=6&t=13515.