A general video player for godot 4.x, unity, unreal to play video, this is a wrapper of ffmpeg for decode
Below example use godot engine import gdextension for video player
The above demo use URL are all in the godot 2D example project player file link
And apply to VR sphere mesh and a viewport texture in front of player
build/- All the build scripts in here.Godot/- the godot project build scriptsUnity/- the unity project build scriptsUnreal/- the unreal engine project build scripts
src/- Source code of this extension.ffmpeg/- FFmpeg library.src/- Wrapper source code.
mobile/- Mobile source code projects for Android, IOSexample/- The video player implementationGodot/- the godot video player projectUnity/- the unity video player projectUnreal/- the unreal engine video player project
godot-cpp/- Submodule needed for GDExtension compilation.
- HLS will stuck at buffering sometimes
- hardware acceleration not include
- Godot 4.1+
- Unity
- Unreal
- Native
| Platform | Video | Audio | XR Support |
|---|---|---|---|
| Windows | O | O | △ |
| MacOS | X | X | X |
| Linux | O | O | △ |
| Android | X | X | X |
| IOS | X | X | X |
| Web File | X | X | X |
