Page 1 of 1

HTML5 video not loaded (with local html file)

Posted: Wed Oct 30, 2019 9:43 am
by guido.bothur
Hi,

I just tried out to embed a html5 video as you can see here:
https://www.w3schools.com/html/html5_video.asp
This works perfect when I load an external webpage.
But this does not work when I load a local html file.
Then I can see the black video component but loading the video is failing.
I tried this with CEF 77.1.18.
Do you have an idea what could cause this?

Thanks in advance.

Re: HTML5 video not loaded (with local html file)

Posted: Wed Oct 30, 2019 3:28 pm
by salvadordf
Hi,

Chromium has some limitations when you load local files. To avoid them, register a scheme as you can see in the SchemeRegistrationBrowser demo.

It's recommended that you register the "http" or "https" schemes.

Re: HTML5 video not loaded (with local html file)

Posted: Wed Oct 30, 2019 4:05 pm
by guido.bothur
Hi,

Thanks for your reply.
But in the meantime I found out that my problem was another one.
In the example webpage Chromium loaded the .ogg video source as an alternative to the .mp4 video source:
https://www.w3schools.com/html/html5_video.asp
But in my html file there is only a .mp4 video source specified.
If I add an .ogg video source then it's gonna be loaded by Chromium.
So, is there a limitation that CEF4Delphi does not allow to load .mp4 files?
Or is it possible to configure that?

Thanks in advance. :)

Re: HTML5 video not loaded (with local html file)

Posted: Wed Oct 30, 2019 4:17 pm
by salvadordf
For legal reasons the CEF binaries available at Spotify only include open source codecs. You would need to build the CEF binaries to enable the proprietary codecs.

Read this for more details :
https://www.briskbard.com/index.php?lan ... cef#codecs

Re: HTML5 video not loaded (with local html file)

Posted: Wed Oct 30, 2019 9:38 pm
by guido.bothur
I understand. Thank you very much.

Re: HTML5 video not loaded (with local html file)

Posted: Mon Sep 27, 2021 2:58 pm
by claudioprv
salvadordf wrote: Wed Oct 30, 2019 4:17 pm For legal reasons the CEF binaries available at Spotify only include open source codecs. You would need to build the CEF binaries to enable the proprietary codecs.

Read this for more details :
https://www.briskbard.com/index.php?lang=en&pageid=cef#codecs
Can't use this project or part of it to solve codec issues?
https://browser.taokaizen.com/
https://browser.taokaizen.com/download/Advanced_Chrome_Windows_v94.0.4590.0_x86.zip
https://browser.taokaizen.com/download/Advanced_Chrome_Windows_v94.0.4590.0_x64.zip

In this project here you have no problems opening vimeo videos or mp4 videos
Thanks.