ensure video is paused at start of video_editor
This commit is contained in:
parent
19e8fbcc35
commit
076a75e3c2
1 changed files with 2 additions and 2 deletions
|
|
@ -52,7 +52,7 @@ impl VideoEditor {
|
|||
pub fn update(&mut self, message: Message) -> Action {
|
||||
match message {
|
||||
Message::ChangeVideo(video) => {
|
||||
let Ok(player_video) = Url::from_file_path(
|
||||
let Ok(mut player_video) = Url::from_file_path(
|
||||
video.path.clone(),
|
||||
)
|
||||
.map(|url| Video::new(&url).expect("Should be here")) else {
|
||||
|
|
@ -61,7 +61,7 @@ impl VideoEditor {
|
|||
self.core_video = Some(video);
|
||||
return Action::None;
|
||||
};
|
||||
|
||||
player_video.set_paused(true);
|
||||
self.video = Some(player_video);
|
||||
self.title = video.title.clone();
|
||||
self.core_video = Some(video.clone());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue