videos should loop if they are told to

This commit is contained in:
Chris Cochrun 2024-12-17 13:13:57 -06:00
parent 2fce73648d
commit 2fae67cbb9

View file

@ -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;