After 3 days of trying - I finally got CEF to build successfully under windows. But now I have another problem -
When trying to just open spotify.com in the cefclient.exe sample browser and I try to play any of my songs, I can see in the dev console spotify just keeps skipping tracks and getting a 403 error from
https://gue1-spclient.spotify.com/widev ... io/license
I used the following script to do the build to test with x64 before continuing to make sure things would work before I proceed but they clearly are not:
- Code: Select all
title 'x64 release'
set GN_DEFINES=is_official_build=true use_thin_lto=false proprietary_codecs=true ffmpeg_branding=Chrome
set GN_ARGUMENTS=--ide=vs2022 --sln=cef --filters=//cef/*
set GYP_MSVS_VERSION=2022
set GYP_DEFINES=proprietary_codecs=true ffmpeg_branding=Chrome
set CEF_ARCHIVE_FORMAT=tar.bz2
rem set GYP_GENERATORS=ninja,msvs-ninja rem no longer needed
python ..\automate\automate-git.py --download-dir=f:\code\chromium_git --depot-tools-dir=f:\code\depot_tools --minimal-distrib --client-distrib --x64-build --branch=5249 --force-build --force-distrib --no-debug-build --no-debug-tests
and to launch the cefclient app:
- Code: Select all
F:\code\chromium_git\chromium\src\cef\binary_distrib\cef_binary_106.0.20+g354064a+chromium-106.0.5249.12_windows64_client\Release>cefclient.exe --enable-media-stream --allow-running-insecure-content --autoplay-policy=no-user-gesture-required --enable-widevine-cdm --cache-path:C:\temp\cef_cache
Yet I'm still unable to play spotify (the whole point of this project).
What else must I do to get this to work? I've compiled CEF myself and made sure to include the proprietary_codecs flag and the ffmpeg_branding flags - yet I am still unable to use them on popular websites.