fix(iced-video): Fix the very high ram usage
feat(playback): add GstPlayFlags for playbin and playbin3
This commit is contained in:
@@ -52,8 +52,6 @@ impl State {
|
||||
pub fn new() -> Self {
|
||||
let video = VideoHandle::new("https://jellyfin.tsuba.darksailor.dev/Items/6010382cf25273e624d305907010d773/Download?api_key=036c140222464878862231ef66a2bc9c")
|
||||
.expect("Failed to create video handle");
|
||||
// let video = VideoHandle::new("file:///run/user/1000/gvfs/smb-share:server=tsuba.darksailor.dev,share=nas/Movies/Spider-Man - No Way Home (2021)/Spider-Man.No.Way.Home.2021.UHD.BluRay.2160p.TrueHD.Atmos.7.1.DV.HEVC.REMUX-FraMeSToR.mkv")
|
||||
// .expect("Failed to create video handle");
|
||||
Self { video }
|
||||
}
|
||||
}
|
||||
@@ -71,8 +69,6 @@ pub fn update(state: &mut State, message: Message) -> iced::Task<Message> {
|
||||
match message {
|
||||
Message::Load => {
|
||||
// does stuff
|
||||
// let src = state.video.source().clone();
|
||||
// iced::Task::perform(src.wait(), |_| Message::Loaded)
|
||||
iced::Task::none()
|
||||
}
|
||||
Message::Play => {
|
||||
|
||||
Reference in New Issue
Block a user