egui
https://github.com/n00kii/egui-video/assets/57325298/c618ff0a-9ad2-4cf0-b14a-dda65dc54b23
plays videos in egui from file path or from bytes
```rust /* called once (top level initialization) */
{ // if using audio... let audiosys = sdl2::init()?.audio()?; let audiodevice = eguivideo::initaudiodevice(&audiosys)?;
// don't let audio_device drop out of memory! (or else you lose audio)
add_audio_device_to_state_somewhere(audio_device);
}
rust
/* called once (creating a player) */
let mut player = Player::new(ctx, mymediapath)?;
{ // if using audio...
player = player.withaudio(&mut mystate.audio_device)
}
rust
/* called every frame (showing the player) */
player.ui(ui, [player.width as f32, player.height as f32]);
```
are welcome :)
release
or opt-level=3
otherwise limited playback performance