Comments (6)
Hi, which branch are you using? Could you try building and running the cefsimple
or cefclient
demo apps bundled with CEF (cefsimple
target in External/cef_binary/cef.xcodeproj
) and see if it can play the same video? The CEF.swift wrapper itself doesn't actually have a say whether something can be played or not, it just translates the APIs to swift.
from cef.swift.
It turns out that CEF (the binary distribution) was not compiled with the right flags to include proprietary codecs (see http://www.chromium.org/audio-video).
So cefsimple
now shows the inline video but when I embed the same CEF framework inside the CEF.swift sample app then it does not work. It looks like cefsimple
also links against libcef_lib libcef_dll_wrapper which I do not see in CEF.swift.
from cef.swift.
Let me get this right, so you recompiled CEF yourself with the proprietary codecs and you tried to link that framework to the CEFDemo app, is that so? Can you give me a branch number and the exact build flags you used?
Btw, libcef_dll_wrapper
has nothing to do with the video playback, it is just a mediator between C and C++ code, but CEF.swift doesn't use the C++ API.
from cef.swift.
I did solve it eventually. The problem was that I copied the cefsimple Helper
from the recompiled CEF instead of using the setup.sh
from this repo. After doing this it worked fine.
If you're interested I used the following build flags/command to build ref with proprietary codecs:
#!/bin/bash
export CEF_USE_GN=1
export GN_DEFINES="is_official_build=true clang=true dcheck_always_on=true ffmpeg_branding=Chrome proprietary_codecs=true target_arch=x64"
python ../automate/automate-git.py --download-dir=/Users/diederik/Downloads/cefbuild/code/chromium_git --depot-tools-dir=/Users/diederik/Downloads/cefbuild/code/depot_tools --no-debug-build --x64-build --branch=3029
from cef.swift.
👍 good to know for future reference
from cef.swift.
@diederikh can you please explain how to put the new CEF binary into project ? I am stuck in this from few hours basically I had successfully made new binary with following flags
ffmpeg_branding=Chrome
proprietary_codecs=true
When I replaced the binary in External/cef_binary with new one its throwing error that
error: install_name_tool: can't open file: External/cef_binary/Debug/Chromium Embedded Framework.framework/Chromium Embedded Framework (No such file or directory)
Its the structure of new binary
from cef.swift.
Related Issues (20)
- Build CEF binary with flags HOT 1
- CEFResourceHandler does not seem to work as expected HOT 2
- Try to load local file with Request Interception HOT 1
- Started start at https domains other than .com
- Swift Helper HOT 1
- URL Request
- window.open() crashes CEFSwift
- Building Xcode project
- How to build the CEFswift with latest CEF 4606 binary? HOT 3
- Update to CEF 4606 (Chrome 94) HOT 2
- CEFSwift framework compiling issue in another project. HOT 1
- CEFSwift framework running issue.
- CEFSwift framework running issue.
- GPU process crashed when running the browser.
- CEF display issue.
- CEFDisplayHandler getting error when calling.
- Cookie manager not working from 85 to current
- Error when using windowless
- Support newer versions of CEF
- Swift 4 compatibility HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cef.swift.