Getting Started
This crate provides high-level interfaces for building media players.
For compilation setup, see ffmpeg-the-third.
MediaEngine requires a Tokio runtime handle:
let media_path = "world.mkv";
let async_runtime = new_multi_thread
.enable_all
.build?;
let handle = async_runtime.handle.clone;
let media_engine = new?;
media_engine.reset_input.await?;
let audio_frame = media_engine.realtime_status.audio_frame_recv.recv_async.await?;
let video_frame = media_engine.realtime_status.video_frame_recv.recv_async.await?;