Firefox's Media stack in a Rust crate.
Build with cargo build
.
Run tests with cargo test
.
A minimalistic player is also available: cargo run --example test-player -- /path/to/some/audio-file.ogg
-
A mozilla-central Gecko build is required. Optimizations and debug should be enabled. Example
mozconfig
:ac_add_options --enable-optimize ac_add_options --enable-debug
-
The import script has to be executed like this:
python3 import.py /path/to/mozilla-central gecko/
. Thegecko/src
andgecko/include
directories content will be removed and the source and header files declared indata/*.json
will be copied back to those two directories. -
Fix potential build errors!