mirror of
https://gitlab.com/sciter-engine/sciter-ffmpeg.git
synced 2026-03-09 06:55:24 +04:00
Sciter FFmpeg is a Sciter behavior component. It can be used to playback local/remote media files in your sciter app's UI.
- C++ 71.7%
- C 27.1%
- Makefile 0.9%
- Objective-C++ 0.3%
| build | ||
| demo | ||
| include | ||
| source | ||
| vendors | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
Sciter FFmpeg
A Sciter FFmpeg is a sciter behavior component. It can be used to playback local/remote media files in your sciter app's UI.
The goal is to improve <video>、<audio> controller (as Sciter's behavior) so Sciter will be able to playback media files for almost all platforms.
Features
- Windows / macOS / Linux - using alternative media-playback and FFmpeg files (compiled by avbuild or your own)
- Supports playback local/remote media files
- Supports methods: load, play, pause, stop
- Supports attributes: duration, currentTime, playbackRate, volume
Platforms
- Windows - i32, i64
- macOS - i64, arm64
- Linux - i64
Usage
External Behavior:
- Build dll/dylib/so file with projects in folder 'build';
- Put dll/dylib/so file into sciter application running folder;
- Put FFmpeg files into sciter application running folder;
- Use <video> and define in css: video {behavior: ffmpeg library(sciter-ffmpeg) video;} Use <audio> and define in css: audio {behavior: ffmpeg library(sciter-ffmpeg);}
Internal Behavior:
- Copy all files in folder source into sciter-js-sdk include/behaviors
- Compile application project with 'vendors' libraries;
- Put FFmpeg files into sciter application running folder;
- Use <video> and define in css: video {behavior: ffmpeg video;} Use <audio> and define in css: audio {behavior: ffmpeg;}
Reference & Acknowledgment
Sciter - Build cross platform desktop applications with HTML, CSS and javascript.
FFmpeg - A complete, cross-platform solution to record, convert and stream audio and video.
media-playback - It's a dependency core used by OBS Studio
avbuild - It's a tool to build ffmpeg for almost all platforms.