From 2fae67cbb9e607756f8f8efced87beee7f7c348c Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Tue, 17 Dec 2024 13:13:57 -0600 Subject: [PATCH] videos should loop if they are told to --- src/ui/presenter.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ui/presenter.rs b/src/ui/presenter.rs index c5cb239..a2fc77a 100644 --- a/src/ui/presenter.rs +++ b/src/ui/presenter.rs @@ -651,7 +651,12 @@ impl Presenter { let url = Url::from_file_path(path).unwrap(); let result = Self::create_video(url); match result { - Ok(v) => self.video = Some(v), + Ok(mut v) => { + v.set_looping( + self.current_slide.video_loop(), + ); + self.video = Some(v) + } Err(e) => { error!("Had an error creating the video object: {e}"); self.video = None;