mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
draft video player component
This commit is contained in:
parent
da1c8d1da3
commit
b4b97facf0
3 changed files with 71 additions and 0 deletions
24
src/app/browser/window/tab/item/page/content/player.rs
Normal file
24
src/app/browser/window/tab/item/page/content/player.rs
Normal 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
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue