Home/docs
Developer documentation
Developer Documentation
liberika is an embeddable playback kernel for cross-platform audio and video apps. This documentation is for engineering teams integrating liberika into their apps and for developers working on the kernel itself. It describes v0.3.8. The project is now named liberika; the erika crate, the erika_* C ABI, and SDK package names stay compatible.
0.3.8 update#
Windows D3D11 screenshots, response validation and stall recovery for HTTP sources, cancellable opens, and faster software-decode uploads and subtitle atlases. Version 0.3.7 added the four Linux packages and Bilibili mode 7 advanced danmaku.
Core, Flutter, Swift SDK and OHPM 0.3.8 are publicly available, and the Web runtime is on npm as @aimessoft/liberika-web, verified on 2026-11-26. There is also a live demo. Release notes
What is new in 0.3.1#
Open at a requested position, receive a natural-ended event, adjust subtitle timing and query the current line. A separate capture includes danmaku, native frame textures can be exported, and OpenHarmony text subtitles are fixed. The original capture still excludes danmaku.
Core and Flutter 0.3.1 are released; as of 2026-10-31 the public Swift SDK and OHPM package remain at 0.3.0. Release notes
0.3.0 upgrade notes#
Default behavior changes: Subtitle and danmaku supersampling is now on by default on native and Web. Native software video decoding now uses FFmpeg multithreading by default. Set ERIKA_VIDEO_DECODE_THREADS=1 to restore single-threaded decoding.
New in 0.3.0: the Web / WASM backend, standalone frame export, diagnostics snapshots, and chapter queries. Version 0.3.0 has been released for Flutter, SwiftPM, and OHPM. See the changelog for the full list of changes.
Integration guide導入手引#
Integrate liberika into your app from scratch. Start with the Quick start, then pick the guide that matches your host platform and programming language.
Player and PresenterRuntime from the erika crate: open media, subscribe to events, and receive decoded frames through a channel.erika.h. Use ErikaPresenterHandle (recommended) for managed rendering and audio, or ErikaHandle for lightweight headless control.Kernel design核の仕組み#
The full architecture and core subsystems, from demuxing and hardware decoding to presentation on screen.
Project and builds開発#
Engineering guides for kernel developers and advanced customizers: building, releasing, and contribution conventions.
Referenceリファレンス#
A complete index of the exported C ABI functions. erika.h is authoritative for signatures and type definitions.
invoke_json and render_tick_json.