Crates.io | egui-video |
lib.rs | egui-video |
version | 0.9.0 |
source | src |
created_at | 2023-08-28 03:24:42.200669 |
updated_at | 2024-10-28 00:03:13.724803 |
description | a video library for egui |
homepage | |
repository | https://github.com/n00kii/egui-video |
max_upload_size | |
id | 956562 |
size | 185,064 |
egui
https://github.com/n00kii/egui-video/assets/57325298/c618ff0a-9ad2-4cf0-b14a-dda65dc54b23
plays videos in egui from file path or from bytes
/* called once (top level initialization) */
{ // if using audio...
let audio_device = egui_video::AudioDevice::new()?;
// don't let audio_device drop out of memory! (or else you lose audio)
add_audio_device_to_state_somewhere(audio_device);
}
/* called once (creating a player) */
let mut player = egui_video::Player::new(ctx, my_media_path)?;
{ // if using audio...
player = player.with_audio(&mut my_state.audio_device)
}
/* called every frame (showing the player) */
player.ui(ui, player.size);
are welcome :)
release
or opt-level=3
otherwise limited playback performance