opus_codec_linux 3.0.5 copy "opus_codec_linux: ^3.0.5" to clipboard
opus_codec_linux: ^3.0.5 copied to clipboard

PlatformLinux

Linux implementation of the opus_codec plugin.

opus_codec_linux #

The Linux implementation of opus_codec.

Usage #

This package is endorsed, so it is automatically included when you depend on opus_codec in your Flutter application. No additional setup is required.

How opus is loaded #

The plugin uses a two-tier loading strategy:

  1. Bundled library (preferred): A prebuilt libopus shared object is shipped as a Flutter asset (libopus_x86_64.so.blob or libopus_aarch64.so.blob). On first use it is copied to the system temporary directory and opened with DynamicLibrary.open. The copied file is reused on subsequent calls.

  2. System fallback: If the bundled library cannot be loaded (missing asset, unsupported architecture, corrupted file, etc.), the plugin falls back to DynamicLibrary.open('libopus.so.0'), which loads the system-installed version.

If neither option succeeds an ArgumentError is thrown with installation instructions.

Supported architectures #

Architecture Bundled asset
x86_64 libopus_x86_64.so.blob
aarch64 libopus_aarch64.so.blob

Installing the system library (fallback) #

If the bundled binary does not work on your distribution you can install libopus from your package manager:

Debian/Ubuntu:

sudo apt install libopus0

Fedora:

sudo dnf install opus

Arch Linux:

sudo pacman -S opus
0
likes
130
points
101
downloads

Publisher

unverified uploader

Weekly Downloads

Linux implementation of the opus_codec plugin.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter, opus_codec_platform_interface, path_provider

More

Packages that depend on opus_codec_linux

Packages that implement opus_codec_linux