draft video player component

This commit is contained in:
yggverse 2024-10-29 02:01:35 +02:00
parent da1c8d1da3
commit b4b97facf0
3 changed files with 71 additions and 0 deletions

View file

@ -0,0 +1,24 @@
mod default;
use default::Default;
use gtk::{MediaStream, Video};
pub struct Player {
gobject: Video, // @TODO
}
impl Player {
// Constructors
pub fn new_default(media_stream: &MediaStream) -> Self {
Self {
gobject: Default::new(media_stream).gobject().clone(),
}
}
// Getters
pub fn gobject(&self) -> &Video {
&self.gobject
}
}