Updating to iced 0.14
This commit is contained in:
parent
6ff166120c
commit
3e99427f5e
3 changed files with 22 additions and 22 deletions
|
@ -6,7 +6,7 @@ use iced_video_player::{Video, VideoPlayer};
|
|||
use std::time::Duration;
|
||||
|
||||
fn main() -> iced::Result {
|
||||
iced::run("Iced Video Player", App::update, App::view)
|
||||
iced::application(App::default, App::update, App::view).run()
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
|
@ -30,10 +30,8 @@ impl Default for App {
|
|||
App {
|
||||
video: Video::new(
|
||||
&url::Url::from_file_path(
|
||||
std::path::PathBuf::from(file!())
|
||||
.parent()
|
||||
.unwrap()
|
||||
.join("../.media/test.mp4")
|
||||
std::path::PathBuf::from("/home/chris/dev/iced_video_player/.media/test.mp4")
|
||||
// .join("../.media/test.mp4")
|
||||
.canonicalize()
|
||||
.unwrap(),
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue