From cafd113a3bc5ebf95fd4f27cc7d13cd46cd19214 Mon Sep 17 00:00:00 2001 From: Chris Cochrun Date: Thu, 30 Apr 2026 06:24:45 -0500 Subject: [PATCH] [fix]: preview videos not showing up --- src/core/slide.rs | 1 + src/ui/gst_video.rs | 13 ++++++++----- src/ui/presenter.rs | 20 +++++++++++++++++--- src/ui/video_editor.rs | 1 + 4 files changed, 27 insertions(+), 8 deletions(-) diff --git a/src/core/slide.rs b/src/core/slide.rs index 0f5056d..a426ecf 100755 --- a/src/core/slide.rs +++ b/src/core/slide.rs @@ -109,6 +109,7 @@ impl TryFrom for Video { let settings = gst_video::VideoSettings { mute: true, framerate: 30, + appsink_name: "lumina_video".to_string(), }; gst_video::create_video(url, &settings) .map_err(|_| ParseError::BackgroundNotVideo) diff --git a/src/ui/gst_video.rs b/src/ui/gst_video.rs index b00cac1..e99f41e 100644 --- a/src/ui/gst_video.rs +++ b/src/ui/gst_video.rs @@ -14,6 +14,7 @@ use url::Url; pub struct VideoSettings { pub mute: bool, pub framerate: u16, + pub appsink_name: String, } type Result = std::result::Result; @@ -26,10 +27,11 @@ pub fn create_video(url: &Url, settings: &VideoSettings) -> Result