Skip to content
umbrella22Public

About

a native-first, multi-platform player SDK for applications that need real platform playback behavior without rebuilding every product feature from scratch on each target. Android playback runs through Media3 ExoPlayer, iOS playback runs through AVPlayer, desktop playback uses native Rust pipelines

Topics

Resources

Stars

11 stars

Watchers

0 watching

Forks

Repository files navigation

Vesper Player SDK

Vesper Player SDK

Native-first playback for Android, iOS, Flutter, and Rust hosts.

简体中文 · Platform packages · Changelog

Vesper is a native-first, multi-platform player SDK for applications that need real platform playback behavior without rebuilding every product feature from scratch on each target. Android playback runs through Media3 ExoPlayer, iOS playback runs through AVPlayer, desktop playback uses native Rust pipelines, and Flutter mobile apps consume the same capabilities through a federated plugin.

The shared Rust layer keeps cross-platform semantics aligned: runtime contracts, timeline and live-DVR state, playback resilience, ABR policy, playlist coordination, preload and download planning, DASH bridging, and the public C ABI. Platform host kits stay responsible for the rendering surface, lifecycle, native media stack integration, and platform-specific capability reporting.

Product Boundary

Vesper targets modern arm64 mobile platforms: Android API 26+ on arm64-v8a, and iOS 17+ on arm64 devices and Apple Silicon Simulator. This platform floor is a product boundary, not a compatibility backlog; older mobile OS versions, 32-bit Android, Intel Android ABIs, and Intel iOS Simulator are not planned.

The mobile production path remains Media3 on Android and AVPlayer on iOS. Vesper does not aim to become a universal FFmpeg-first mobile engine or an ijkplayer compatibility layer. Desktop FFmpeg playback, native-frame routes, decoder plugins, VideoFilter, and SourceNormalizer are experimental or optional surfaces and do not define mobile release readiness.

Start Here

Choose the integration path that matches your app. Read the first document for the public API and packaging model, then use the example app as a runnable reference. The complete host-kit, optional-package, artifact, and Stage UI map lives in the platform package guide.

Target Read first Run / inspect next Useful when
Android Kotlin / Compose lib/android/README.md examples/android-compose-host/README.md You are integrating the AAR modules directly in an Android app.
iOS Swift / SwiftUI lib/ios/VesperPlayerKit/README.md examples/ios-swift-host/README.md You are consuming the Swift Package or XCFramework from a UIKit / SwiftUI app.
Flutter lib/flutter/vesper_player/README.md examples/flutter-host/README.md You want one Dart API over Android and iOS today; desktop Flutter targets are paused.
Flutter platform authors lib/flutter/vesper_player_platform_interface/README.md lib/flutter/vesper_player_ui/README.md You are extending the federated plugin or adopting the optional Flutter UI package.
C / C++ via FFI include/player_ffi.h examples/c-host/README.md You need the generated C ABI from a native host or plugin runtime.
Desktop Rust examples/basic-player Desktop FFmpeg You are trying the desktop demo or working with the Rust playback pipeline.

What You Get

  • Native playback per platform: Media3 on Android, AVPlayer on iOS, and Rust desktop backends.
  • Shared playback semantics for timeline, live edge, live DVR, track catalog, ABR, resilience policy, preload policy, and download orchestration.
  • Offline download planning for VOD HLS, static DASH, and FLV inputs, with source HTTP headers applied consistently to manifest fetches, size probes, segment transfers, and optional MP4 stream-copy export through the remux plugin.
  • SDK-managed offline task restore and resumable range transfers on Android and iOS, plus a shared desktop host download service for macOS, Windows, and Linux, including per-resource restart when an HTTP server ignores resume ranges and bounded Range chunks for known-size HTTP resources, and stale-resource errors with host-provided recovery hooks for expired or rejected media URLs.
  • Configurable screen-awake handling while playback is active on Android, iOS, and Flutter mobile hosts.
  • Optional Android external playback through Google Cast, DLNA / UPnP AV, and a local HTTP relay for protected headers, local files, and content:// sources.
  • Platform-native surfaces instead of frame-copy rendering paths for mobile playback.
  • Native-only DRM playback integration for direct mobile playback paths: Widevine is configured on Android Media3, and FairPlay is configured on iOS AVPlayer. DRM sources are not processed by Rust, FFI, plugins, download, preload, remux, SourceNormalizer, or external playback relays.
  • Native plugin ABI with a safe Rust author API, a generated C/C++ header, and explicit PluginReference selection for embedded mobile artifacts. Post-download remux and source normalization remain opt-in. Native-frame decoding, video filters, and audio processors depend on the selected host route.
  • The vesper plugin CLI scaffolds Rust or C++17 plugins, checks native artifacts, and generates Android or Apple registry fragments. Playback events and benchmark summaries are exposed by the host kits.
  • Generated, generation-checked C value handles for hosts that integrate through the FFI boundary.
  • Runnable host applications for Android, iOS, Flutter, desktop Rust, and C.

Capability Matrix

This is a coarse overview of the feature surface. Each platform README explains the exact behavior, fallback rules, and capability flags that host apps should check before exposing advanced controls.

Capability Android (Media3) iOS (AVPlayer) Desktop Rust Flutter mobile
Local file ✅ ✅ ✅ ✅ Android / iOS
Progressive HTTP/HTTPS ✅ ✅ ✅ ✅ Android / iOS
HLS (.m3u8) ✅ ✅ ✅ FFmpeg demuxer, no desktop ABR switching yet ✅ Android / iOS
DASH (.mpd) ✅ native ✅ DASH-to-HLS bridge for VOD / live fMP4 ⚠️ backend-dependent FFmpeg demuxer ✅ Android native / iOS bridge
Live / DVR ✅ ✅ ✅ ✅ Android / iOS
Track selection ✅ video / audio / subtitles ✅ audio / subtitles ✅ ✅ per-platform semantics
External text subtitles ⚠️ SRT / WebVTT / SSA via Media3 ⚠️ bounded SRT / WebVTT / SSA host overlay ❌ not part of the experimental desktop contract ✅ Android / iOS channels
ABR constrained policy ✅ ✅ HLS + DASH bridge variant catalogs ⚠️ policy DTO only for desktop FFmpeg HLS ✅ per-platform semantics
ABR fixedTrack policy ✅ exact ✅ best-effort HLS/DASH pinning on iOS 17+ ⚠️ policy DTO only for desktop FFmpeg HLS ✅ per-platform semantics
Resilience policy ✅ ✅ ✅ ✅ Android / iOS
Preload budget ✅ ✅ ⚠️ shared policy/planner only; player-host-desktop uses a noop executor today ✅ Android / iOS
Download manager ✅ VOD prepare + restore + export ✅ VOD prepare + restore + export ✅ public player-host-desktop::download service ✅ Android / iOS
DRM direct playback ⚠️ Widevine native-direct integration; real-device gate pending ⚠️ FairPlay native-direct integration; real-device gate pending ⛔ not supported ⚠️ Android / iOS direct native paths only
Hardware decode probe VesperDecoderBackend VesperCodecSupport Experimental native-frame support varies by backend Reflected through mobile capabilities
Plugin startup diagnostics Internal runtime diagnostics Internal runtime diagnostics Backend and plugin startup diagnostics Exposed as create-result diagnostics where supported
Performance diagnostics Host playback diagnostics Host playback diagnostics Host benchmark summaries Host playback diagnostics
Native audio processing ⚠️ optional fixed-block DSP on Media3 ⛔ unavailable on direct AVPlayer ⚠️ experimental plugin DSP See platform-specific capabilities

Flutter support is mobile-only for now. Desktop Flutter targets are intentionally not shipped while the Flutter desktop integration model settles. Product UI should rely on runtime capability flags rather than assuming every row above is available on every backend.

DRM Boundary

DRM in Vesper is a native-only playback integration, not a media-processing feature. VesperPlayerSource.drmConfiguration is a public source DTO so hosts can pass license metadata to the platform player, but protected media stays inside the platform DRM stack: Android uses Media3 / Widevine, and iOS uses AVPlayer / FairPlay.

Any route that rewrites the stream, changes the origin, or asks the SDK to touch decoded frames rejects DRM sources with an unsupported capability error. This includes SourceNormalizer, SDK-managed native-frame playback, the iOS DASH bridge, download, preload, post-download remux, and external playback relay flows. Plugins do not receive Widevine or FairPlay protected media.

If a future product needs a cloud-vendor-style private encryption format, that must be designed as a separate pre-decryption adapter that turns private encrypted input into a normal source for the platform player. It is not part of the current Widevine / FairPlay DRM contract.

Repository Layout

crates/      Rust workspace: shared core, runtime, FFI, backends, render, platform glue
lib/         Distributable platform integration layers; start with lib/README.md
  android/   Android AAR modules: core kit, external playback, FFmpeg runtime, Compose adapter, optional Compose UI
  ios/       VesperPlayerKit Swift Package / XCFramework project
  flutter/   Federated Flutter packages: main API, platform packages, optional UI
examples/    Runnable host apps for Android, iOS, Flutter, desktop Rust, and C
include/     Generated C headers: player_ffi.h and vesper_plugin.h
plugins/     Vesper runtime plugin projects and artifact manifests
templates/   Native Rust and C++17 plugin author scaffolds
scripts/     Thin vesper launcher and checked build / release policy data
third_party/ Vendored dependencies and generated prebuilt media libraries

The public integration surface is concentrated under lib/, examples/, and include/. The Rust crates under crates/ power the shared runtime and platform bridges. Vesper runtime plugin projects live under plugins/.

Quick Start

Android Package

import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import io.github.umbrella22.vesper.player.android.VesperPlayerSource
import io.github.umbrella22.vesper.player.android.VesperPlaybackResiliencePolicy
import io.github.umbrella22.vesper.player.android.compose.VesperPlayerSurface
import io.github.umbrella22.vesper.player.android.compose.rememberVesperPlayerController

@Composable
fun PlayerScreen() {
    val controller = rememberVesperPlayerController(
        initialSource = VesperPlayerSource.hls(
            uri = "https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_ts/master.m3u8",
            label = "Sample",
        ),
        resiliencePolicy = VesperPlaybackResiliencePolicy.resilient(),
    )

    VesperPlayerSurface(controller = controller)
    LaunchedEffect(controller) { controller.play() }
}

VesperPlayerSurface initializes and disposes the controller by default. Hosts that manage the controller lifecycle themselves should set manageControllerLifecycle = false and call initialize() / dispose().

Read the Android host kit guide at lib/android/README.md and use examples/android-compose-host/README.md for a complete Compose app.

iOS Package

import Foundation
import SwiftUI
import VesperPlayerKit

struct PlayerView: View {
    @StateObject private var controller = VesperPlayerControllerFactory.makeDefault(
        initialSource: VesperPlayerSource.hls(
            url: URL(string: "https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_ts/master.m3u8")!,
            label: "Sample"
        ),
        resiliencePolicy: .resilient()
    )

    var body: some View {
        PlayerSurfaceContainer(controller: controller)
            .onAppear { controller.initialize() }
            .onDisappear { controller.dispose() }
    }
}

Read the iOS host kit guide at lib/ios/VesperPlayerKit/README.md and use examples/ios-swift-host/README.md for the SwiftUI sample app.

Flutter Packages

import 'package:vesper_player/vesper_player.dart';

final controller = await VesperPlayerController.create(
  initialSource: VesperPlayerSource.hls(
    uri: 'https://devstreaming-cdn.apple.com/videos/streaming/examples/img_bipbop_adv_example_ts/master.m3u8',
  ),
);

await controller.initialize();
await controller.play();
// Return this widget from your build method.
return VesperPlayerView(controller: controller);

create() and VesperPlayerView do not initialize or dispose the controller; keep those calls in the host lifecycle as shown in the Flutter package guide.

Read the main Flutter package guide at lib/flutter/vesper_player/README.md and use examples/flutter-host/README.md for a cross-platform app wired to the native host kits.

Desktop Rust

cargo run -p basic-player

The desktop demo starts with an empty stage. Drag in a file, click "Open Local File", or paste a remote URL into the playlist tab. See Desktop FFmpeg for how FFmpeg is resolved when desktop builds need demuxing / decoding support.

Desktop plugin experiments are opt-in. basic-player can load native-frame decoder plugins, frame processor diagnostic plugins, and packet-stream source normalizer plugins through internal environment-configured paths. These routes are for SDK development and diagnostics; Android and iOS public host-kit APIs stay on native platform playback by default and select build-time embedded artifacts with VesperPluginReference.

Desktop rendering caveat: the current wgpu software-render path uses the repository shader path for SDR video and is calibrated around Rec.709 limited range. HDR, Dolby Vision, wide-gamut, and desktop shader color-management work remain outside the stable desktop surface.

C ABI

Start with the generated header at include/player_ffi.h, then run the smoke example described in examples/c-host/README.md.

scripts/vesper ffi c-host-smoke

Plugin authoring

Use the CLI from this checkout to create a fixed-block AudioProcessor in Rust or C++17. Both scaffolds export vesper_native_plugin_entry.

./scripts/vesper plugin new /tmp/vesper-gain --plugin-id dev.example.gain --language rust

The generated Rust project uses vesper-player-plugin as player-plugin. Point that dependency at the checkout's crates/plugin/player-plugin before building against the native plugin ABI in this checkout. The C++17 scaffold builds with CMake and the generated plugin header. The author contract covers both scaffolds and host capabilities.

The package coordinates use the workspace release version.

cargo install vesper-player-cli --version 0.12.0 --locked
player-plugin = { package = "vesper-player-plugin", version = "=0.12.0" }

Native libraries built against earlier plugin interfaces require a rebuild and repackaging. The migration guide records the current build contract.

Mobile Native artifact distribution

Third-party publishers can distribute Native plugins independently of the Vesper release repositories. The mobile boundary is a build-time artifact contract:

  • Android AARs place the final lib<name>.so under jni/arm64-v8a/ and one registry fragment under assets/vesper/plugins/arm64-v8a/<plugin-id>.json. The fragment records the plugin identity, capability instances, artifact name, and SHA-256 of the exact library bytes. A local Gradle module or a private Maven repository is sufficient; Maven Central publication is not required.
  • iOS packages ship a signable arm64 XCFramework. Each plugin framework carries vesper-plugin-registry.json at its bundle root. A local Swift package, private Swift package registry, or an app-owned XCFramework dependency can provide the artifact. The host embeds and signs the framework before launch.
  • The host selects capabilities with VesperPluginReference. Registry fragments from independent dependencies are merged and verified before the selected Native entry point is loaded. A path string is an internal locator, not a public Flutter or mobile runtime input.

The registry fragments can be generated from the canonical plugin descriptor:

./scripts/vesper plugin registry-fragment vesper-plugin.toml \
  --platform android \
  --target aarch64-linux-android \
  --architecture arm64-v8a \
  --minimum-os 26 \
  --locator-name example_filter \
  --artifact dist/libexample_filter.so \
  --output assets/vesper/plugins/arm64-v8a/dev.example.filter.json

./scripts/vesper plugin registry-fragment vesper-plugin.toml \
  --platform ios \
  --target aarch64-apple-ios \
  --architecture arm64 \
  --minimum-os 17.0 \
  --locator-name ExampleFilterPlugin \
  --bundle-identifier dev.example.filter \
  --output vesper-plugin-registry.json

The Android fragment is kept at the shown asset path. The iOS fragment is renamed to vesper-plugin-registry.json inside the corresponding framework bundle. The registry admits native libraries with vesper_native_plugin_entry. PostDownloadProcessor uses the embedded registry. The SourceNormalizer, VideoDecoder, VideoFilter, and AudioProcessor paths depend on the selected host route and its capability wiring. Flutter resolves plugin identities through the mobile host kits.

Platform Packages

The platform package guide is the canonical package map. It lists every Android, iOS, and Flutter package, separates core, optional, and experimental surfaces, and includes the shared Stage UI gesture and integration contract.

Android

Android is distributed as AAR modules:

  • vesper-player-kit: core controller, source model, JNI bridge, download manager, and native video surface selection.
  • vesper-player-kit-external-playback: optional Google Cast, DLNA / UPnP AV, and local relay integration.
  • vesper-player-kit-ffmpeg-runtime: optional FFmpeg runtime package used by remux and relay workflows.
  • vesper-player-kit-source-normalizer-ffmpeg: optional SourceNormalizer plugin that depends on the core kit and shared FFmpeg runtime.
  • vesper-player-kit-remux-ffmpeg: optional post-download MP4 remux plugin that depends on the core kit and shared FFmpeg runtime.
  • MediaCodec decoder plugin AAR: experimental SDK-managed native-frame extension built from the source checkout.
  • vesper-player-kit-compose: Compose adapter with VesperPlayerSurface and controller/state helpers.
  • vesper-player-kit-compose-ui: optional opinionated Compose player stage.

Minimum target: Android API 26+, Kotlin 2.x, and an arm64 device or emulator for the published mobile artifacts.

iOS

iOS is distributed as VesperPlayerKit, available as a local Swift Package for source integration and as an XCFramework for release packaging. Public APIs are Swift-first and designed for UIKit / SwiftUI hosts.

Minimum target: iOS 17.0+, Xcode 16+, and arm64 device / Apple Silicon Simulator builds for the published artifacts.

Flutter

Flutter is a federated plugin family:

  • vesper_player: public Dart API and VesperPlayerView.
  • vesper_player_platform_interface: shared DTOs and platform contracts.
  • vesper_player_android: Android implementation over the Android host kit.
  • vesper_player_ios: iOS implementation over VesperPlayerKit.
  • vesper_player_external_playback: optional Android Cast / DLNA controller with local HTTP relay support.
  • vesper_player_source_normalizer_ffmpeg: optional experimental native SourceNormalizer artifacts.
  • vesper_player_remux_ffmpeg: optional native dependency package for post-download MP4 remux.
  • vesper_player_ui: optional Flutter controls and player stage widgets.

The Flutter package family is published to pub.dev. SourceNormalizer and remux remain direct, opt-in dependencies and are not pulled in by vesper_player.

Building From Source

Common verification commands are listed below. Platform-specific setup and toolchain notes live in the platform READMEs linked from Start Here.

# Rust workspace check
cargo check --workspace

# Generate / verify the C header
./scripts/vesper ffi generate
./scripts/vesper ffi verify

# Android AAR build
./scripts/vesper android aar

# iOS XCFramework build
./scripts/vesper ios kit-xcframework

# Desktop end-to-end remux integration test
./scripts/vesper desktop verify-remux

The Android CLI uses project-local cached Gradle distributions for local development and a CI-provisioned gradle executable in GitHub Actions. Each Android project also keeps its service home under <project>/.gradle/gradle-user-home; the repository root has no shared Gradle state. This keeps local development work offline-safe while letting CI install Gradle through gradle/actions/setup-gradle.

iOS CLI build commands resolve the workspace through the SDK root Cargo manifest, so they can be called from Xcode build phases, Flutter plugin builds, CI working directories, or the repository root without depending on the current shell directory.

Mobile FFmpeg Profiles

Android and iOS FFmpeg builds use the root profile CLI. The public entrypoint is ./scripts/vesper ffmpeg --platform android|ios|all --profile <name>. download-remux, relay-remux, and default are local remux profiles: they enable only local file/pipe protocols and validate that network and OpenSSL are disabled. The default profile unions download and relay remux capabilities.

./scripts/vesper ffmpeg --platform android --profile default --abi arm64-v8a
./scripts/vesper ffmpeg --platform ios --profile default --slice ios-arm64 --slice ios-simulator-arm64

Source normalization uses a separate runtime-profile file at scripts/source-normalizer-profiles.toml. Those profiles describe how unusual or container-incompatible sources are detected and normalized at runtime; they do not replace the build-time FFmpeg packaging profiles above.

Callers can add controlled overlays with --extra-libraries, --extra-demuxers, --extra-muxers, --extra-protocols, --extra-parsers, --extra-bsfs, and repeated --extra-configure-arg flags. Validation fails if an overlay violates the selected profile policy. Generated ABIs and slices record vesper-ffmpeg-build-metadata.txt with the declared profile, profile hash, source archive SHA-256, license-sensitive flags, exact configure line, and platform linker overrides for release review. Apple builds record the Darwin shared-library flags that replace FFmpeg's obsolete -single_module default without modifying the upstream source archive.

Android builds that explicitly opt into --tls-backend openssl provision OpenSSL from the 3.5 LTS series by default. Ordinary FFmpeg source builds use the 9.0 series, and Android DASH dependencies use the libxml2 2.15 series. Each build checks the upstream release index even when an archive is cached and selects the highest patch available upstream or in third_party/_cache. Missing archives are downloaded into the cache under their exact versioned filenames. If the index is unavailable, the highest matching cached patch remains usable. Exact VESPER_FFMPEG_VERSION, VESPER_ANDROID_OPENSSL_VERSION, and VESPER_ANDROID_LIBXML2_VERSION overrides skip release discovery for reproducible builds. Use the corresponding *_SERIES variables only for intentional series moves. The FFmpeg release policy retains its separate 9.0.2 source lock.

Android dependency receipts record the resolved version, source URL, archive digest, ABI/API level, and installed-file digests. A changed patch or source invalidates the dependency install and FFmpeg built against it, even when the capability profile hash stays the same.

Desktop FFmpeg

Desktop Rust builds that link FFmpeg resolve libraries in this order:

  1. Use the repository-local desktop FFmpeg install under third_party/ffmpeg/desktop when it already exists.
  2. Otherwise use the latest system FFmpeg exposed through pkg-config or Homebrew ffmpeg.
  3. If neither exists, fail with the normal pkg-config diagnostic.

Provision the repository-local macOS fallback explicitly before building:

./scripts/vesper desktop ensure-ffmpeg

The Rust CLI resolves the highest available patch in the configured FFmpeg series, downloads or reuses the audited source archive, and atomically installs the resulting static libraries under third_party/ffmpeg/desktop. Cargo does not run provisioning code from a build-script wrapper.

The local source archive cache is third_party/_cache by default. FFmpeg, OpenSSL, and libxml2 source archives are reused from that directory before any download is attempted; missing archives are downloaded there from their upstream release URLs.

Useful overrides:

Variable Purpose
VESPER_DESKTOP_FFMPEG_DIR Override the repository-local desktop FFmpeg install directory.
VESPER_FFMPEG_SERIES Override the shared default FFmpeg source series.
VESPER_FFMPEG_VERSION Override the shared FFmpeg source version exactly.
VESPER_DESKTOP_FFMPEG_SERIES Override the desktop fallback FFmpeg source series.
VESPER_DESKTOP_FFMPEG_VERSION Override the desktop fallback FFmpeg source version exactly.
VESPER_DESKTOP_FFMPEG_SOURCE_ARCHIVE Point to a pre-downloaded FFmpeg source archive.
VESPER_DESKTOP_FFMPEG_SOURCE_URL Override the source download URL.
VESPER_THIRD_PARTY_SOURCE_CACHE_DIR Override the shared source archive cache directory.

When VESPER_DESKTOP_FFMPEG_DIR points outside the default repository path, also expose its metadata to Cargo, for example:

export PKG_CONFIG_PATH="$VESPER_DESKTOP_FFMPEG_DIR/lib/pkgconfig${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"

FFmpeg License Compliance

Vesper is Apache-2.0 licensed, but FFmpeg remains under its own FFmpeg license terms. The repository does not commit generated FFmpeg binaries by default; optional Android, iOS, and desktop workflows can build or bundle FFmpeg-backed artifacts when a host application explicitly opts in. Tagged releases publish the Android FFmpeg runtime and FFmpeg-backed plugin Maven coordinates, and publish the optional iOS FFmpeg-backed XCFrameworks, only with the generated compliance bundle and exactly one corresponding FFmpeg source archive for those binaries.

The default Vesper FFmpeg scripts avoid --enable-gpl and --enable-nonfree; the scripts refuse those flags unless the caller passes an explicit acknowledgement. The mobile download-remux, relay-remux, and default profiles validate no-network/no-OpenSSL builds. Desktop fallback builds are LGPL-oriented by default, but static desktop redistribution still requires relinking materials or an equivalent LGPL-compliant mechanism.

Before publishing an app or SDK artifact that includes FFmpeg, include FFmpeg notices and license text, provide the exact corresponding FFmpeg source and configure flags, preserve user relinking rights, and track OpenSSL / libxml2 notices when those libraries are bundled. The release checklist and entry template live in THIRD_PARTY_NOTICES.md.

C ABI Notes

  • player-ffi exposes generation-checked value handles in include/player_ffi.h. The header is generated by cbindgen and should be synced with the Rust vesper ffi CLI instead of edited by hand. The C host smoke build also syncs it before compiling the example.
  • Zero-initialized handles are invalid sentinels and may be used for plain C stack storage.
  • Stale, consumed, or double-destroyed handles return PLAYER_FFI_ERROR_CODE_INVALID_STATE instead of relying on raw-pointer undefined behavior.
  • Status-returning player_ffi_* calls are wrapped with catch_unwind, so panics surface as structured backend / platform errors instead of unwinding across the C boundary.
  • The DASH/HLS bridge entry point player_ffi_dash_bridge_execute_json is provided by the player-ffi-ios Apple bundle, not by the generated C header.
./scripts/vesper ffi sync
./scripts/vesper ffi verify

Release Downloads

GitHub Releases publish mobile downloads under the VesperPlayerKit product name:

  • Android core: VesperPlayerKit-android-<abi>.aar
  • Android Compose adapter: VesperPlayerKitCompose-android-<abi>.aar
  • Android Compose UI: VesperPlayerKitComposeUi-android-<abi>.aar
  • Android Compose sample APK: VesperPlayerAndroidComposeHost-android-<abi>-debug-signed.apk
  • Flutter Android sample APK: VesperPlayerFlutterHost-android-<abi>-debug-signed.apk
  • iOS framework slices: VesperPlayerKit-ios-*.framework.zip
  • iOS XCFramework: VesperPlayerKit.xcframework.zip
  • iOS optional FFmpeg components: VesperFFmpegAVCodec.xcframework.zip, VesperFFmpegAVFormat.xcframework.zip, and VesperFFmpegAVUtil.xcframework.zip
  • iOS optional plugins: VesperPlayerRemuxFfmpegPlugin.xcframework.zip, VesperPlayerSourceNormalizerFfmpegPlugin.xcframework.zip, and VesperPlayerDecoderVideoToolboxPlugin.xcframework.zip
  • iOS FFmpeg redistribution materials: VesperPlayerOptionalPlugins-FFmpeg-Compliance.zip and VesperPlayerOptionalPlugins-FFmpeg-<version>-source.tar.xz
  • SHA256SUMS.txt for release artifact verification

The canonical iOS release gate validates the archive layout and metadata, then imports and links the public module from textual interfaces in isolated module caches:

./scripts/vesper ios verify-release /path/to/ios-release --scope core
./scripts/vesper ios verify-release /path/to/ios-release --scope complete

Archive verification does not execute plugin code on a device. Release owners run the separate physical-device gate and retain its provenance and XCResult:

./scripts/vesper ios verify-optional-plugins-device /path/to/ios-release \
  --device <UDID> \
  --development-team <TEAM_ID> \
  --output-directory /path/to/new-evidence-directory \
  --allow-provisioning-updates

See scripts/README.md for the retained evidence contract and release verification entry points.

Android packaging is currently arm64-v8a only, including the downloadable sample APKs. The sample APKs are debug-signed for side-load evaluation only and are not production app-store artifacts. iOS binary packaging is arm64 only for iPhoneOS devices and Apple Silicon Simulator. Tagged releases include the eight optional iOS framework archives only as one verified set with the FFmpeg compliance asset and exactly one corresponding-source asset. Verification rejects extra top-level assets or XCFramework slices and compares the bundled license and notice material with its source. Same-tag workflow reruns reconcile the GitHub Release asset list so retired artifacts are removed. The iOS core VesperPlayerKit.xcframework does not embed FFmpeg; FFmpeg-backed remux support and SourceNormalizer support are staged through the canonical optional-plugin command. The iOS App target embeds three FFmpeg component frameworks plus three plugin frameworks as signed top-level siblings. Hosts select plugins with VesperPluginReference; the iOS artifact resolver maps those identities to the embedded executables. The FFmpeg component frameworks are sibling dynamic dependencies, not plugin registry entries. All FFmpeg-backed siblings must come from the same FFmpeg profile so profile-hash.txt values match.

Default mobile playback uses the platform system player. SDK-managed packet normalization, decoding, and filter processing are experimental opt-ins. HDR and Dolby Vision sources use platform playback on Android and iOS. Desktop native-frame support varies by backend. The current checklist records host configurations and runtime evidence.

Release AARs / XCFrameworks are fully packaged binary artifacts. Host apps that consume these downloads do not run the repository's local JNI or FFmpeg generation tasks during their own Gradle / Xcode build.

Current Status

The workspace and package metadata identify the 0.12.0 product version. This checkout contains the native plugin candidate. The changelog records released behavior. The current checklist tracks candidate verification, and the plugin author contract defines the native plugin ABI.

Mobile production playback remains Media3 and AVPlayer. Desktop playback, SDK-managed native-frame routes, Native AudioProcessor, decoder plugins, VideoFilter, and SourceNormalizer remain experimental or opt-in. Flutter desktop packages are not part of the current release set.

License

Vesper is licensed under the Apache License, Version 2.0. See LICENSE. FFmpeg-backed optional artifacts are governed by FFmpeg's own LGPL/GPL terms, depending on the exact build configuration, and are tracked separately.

Additional attribution and bundled-binary notes live in:

About

a native-first, multi-platform player SDK for applications that need real platform playback behavior without rebuilding every product feature from scratch on each target. Android playback runs through Media3 ExoPlayer, iOS playback runs through AVPlayer, desktop playback uses native Rust pipelines

Topics

Resources

Stars

11 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages