feat: Update iced_video_player to master

This commit is contained in:
uttarayan21
2025-12-13 03:40:12 +05:30
parent c7afcd3f0d
commit 253d27c176
18 changed files with 1224 additions and 1565 deletions

View File

@@ -1,6 +1,6 @@
use iced::{
widget::{Button, Column, Container, Row, Slider, Text},
Element,
widget::{Button, Column, Container, Row, Slider, Text},
};
use iced_video_player::{Video, VideoPlayer};
use std::time::Duration;
@@ -29,10 +29,17 @@ impl Default for App {
fn default() -> Self {
App {
video: Video::new(
&url::Url::parse("https://jellyfin.tsuba.darksailor.dev/Videos/1d7e2012-e17d-edbb-25c3-2dbcc803d6b6/stream?static=true")
.expect("Failed to parse URL"),
&url::Url::from_file_path(
std::path::PathBuf::from(file!())
.parent()
.unwrap()
.join("../.media/test.mp4")
.canonicalize()
.unwrap(),
)
.unwrap(),
)
.expect("Failed to create video"),
.unwrap(),
position: 0.0,
dragging: false,
}