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.

How to support mp3 and mp4?

User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to support mp3 and mp4?

Post by salvadordf »

coater wrote: Thu Jun 20, 2019 2:05 pm I completed use v! nearly 16h for X86 build(8G ram).(CEF 74.1.19 Debug_version ) .
Congrats! :D
coater wrote: Thu Jun 20, 2019 2:05 pm I wonder which files I should used to support cef4?
If you used CEF 74.1.19 then you should use the last CEF4Delphi version that used Chromium 74 :
https://github.com/salvadordf/CEF4Delph ... 0.3729.157
coater wrote: Thu Jun 20, 2019 2:05 pm How to find cef version in builds?
The version numbers you gave are the answer : 74.1.19
If I'm not mistaken, the CEF branch and build are defined in some CEF constants.
coater wrote: Thu Jun 20, 2019 2:05 pm I should use release version or debug version?
Always use the RELEASE version. The debug version of the CEF binaries cause many issues.
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to support mp3 and mp4?

Post by coater »

How to share my build? thank you!
3770 release :
X86: 5h
X64: 7h
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: How to support mp3 and mp4?

Post by salvadordf »

I'm not sure if it's legal to distribute those libraries with proprietary codecs without a license.

If you think you can give a more detailed guide to build them because the official guides might were unclear for Delphi developers please share your knowledge but please, don't use this forum to share the final binaries.
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to support mp3 and mp4?

Post by coater »

It is problem!
copy files for cef4
set /p cefpath=[Please set cef source address not end with\]
set /p aimpath=[Please set aim address not end with\]
::release
xcopy %cefpath%\cef_sandbox.lib %aimpath%\
xcopy %cefpath%\chrome_elf.dll %aimpath%\
xcopy %cefpath%\d3dcompiler_47.dll %aimpath%\
xcopy %cefpath%\libcef.dll %aimpath%\
xcopy %cefpath%\libcef.lib %aimpath%\
xcopy %cefpath%\libEGL.dll %aimpath%\
xcopy %cefpath%\libGLESv2.dll %aimpath%\
xcopy %cefpath%\natives_blob.bin %aimpath%\
xcopy %cefpath%\snapshot_blob.bin %aimpath%\
xcopy %cefpath%\v8_context_snapshot.bin %aimpath%\
::release\swiftshader\
xcopy %cefpath%\swiftshader\libEGL.dll %aimpath%\swiftshader\
xcopy %cefpath%\swiftshader\libGLESv2.dll %aimpath%\swiftshader\
::resource
xcopy %cefpath%\cef.pak %aimpath%\
xcopy %cefpath%\cef_100_percent.pak %aimpath%\
xcopy %cefpath%\cef_200_percent.pak %aimpath%\
xcopy %cefpath%\cef_extensions.pak %aimpath%\
xcopy %cefpath%\devtools_resources.pak %aimpath%\
xcopy %cefpath%\icudtl.dat %aimpath%\
xcopy %cefpath%\locales %aimpath%\locales\
thefunkyjoint
Posts: 458
Joined: Thu Aug 10, 2017 12:40 pm

Re: How to support mp3 and mp4?

Post by thefunkyjoint »

Would be awesome if CEF4 support mp3 / mp4... Please make it happen :D
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to support mp3 and mp4?

Post by coater »

To support HTML5 auto play:

GlobalCEFApp.AutoplayPolicy:=appNoUserGestureRequired ;

https://www.briskbard.com/forum/viewtop ... 830&p=3706
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to support mp3 and mp4?

Post by coater »

yolanda wrote: Sat Jul 06, 2019 9:55 pm
coater wrote: Tue Jun 25, 2019 12:12 pm How to share my build? thank you!
3770 release :
X86: 5h
X64: 7h
on my macpro late 2013 with 32gb under 64bit windows 10 (bootcamp) i need 2h for building the 3770 release in x86 and 1:30h for the x64 release. building is done one a attached ssd via usb 3.0.

// yo
Good computer! :lol:
Chinyaev
Posts: 38
Joined: Mon Mar 13, 2017 3:23 pm

Re: How to support mp3 and mp4?

Post by Chinyaev »

Hi guys! I can't compile cef with codecs. Maybe someone will send in a PM? I will be glad of any version. Thanks.
coater
Posts: 135
Joined: Sat Sep 29, 2018 1:51 pm

Re: How to support mp3 and mp4?

Post by coater »

4103 build:
1.The jumbo build is no longer supported. Please remove any uses of 'use_jumbo_build', 'jumbo_build_excluded', or 'jumbo_file_merge_limit' from your args.gn file and re-run GN.
See //media/media_options.gni:9:1: whence it was imported

so create.bat should be edited.

Code: Select all

 
set GN_DEFINES=is_component_build=true
set  proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2017 --sln=cef --filters=//cef/*
call cef_create_projects.bat
2.
Windows 10.0.18362.0 SDK or higher required. It should be installed before run create.bat.
Lower editon should be uninstalled first!(I didn't try unchecking bebug option)
Post Reply