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.
Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.
HTML5 video not loaded (with local html file)
-
- Posts: 7
- Joined: Tue Oct 29, 2019 9:22 am
- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: HTML5 video not loaded (with local html file)
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.
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.
-
- Posts: 7
- Joined: Tue Oct 29, 2019 9:22 am
Re: HTML5 video not loaded (with local html file)
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.
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.

- salvadordf
- Posts: 4563
- Joined: Thu Feb 02, 2017 12:24 pm
- Location: Spain
- Contact:
Re: HTML5 video not loaded (with local html file)
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
Read this for more details :
https://www.briskbard.com/index.php?lan ... cef#codecs
-
- Posts: 7
- Joined: Tue Oct 29, 2019 9:22 am
Re: HTML5 video not loaded (with local html file)
I understand. Thank you very much.
-
- Posts: 4
- Joined: Mon Nov 30, 2020 11:28 pm
Re: HTML5 video not loaded (with local html file)
Can't use this project or part of it to solve codec issues?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
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.