a somewhat working system of video start and end times

This commit is contained in:
Chris Cochrun 2024-04-07 21:34:31 -05:00
parent 76c669c5a5
commit 461d25a73d
4 changed files with 35 additions and 2 deletions

View file

@ -309,8 +309,16 @@ impl slide_object::SlideObject {
.get(&QString::from("videoStartTime"))
.unwrap_or(QVariant::from(&0.0));
if let Some(int) = video_start_time.value::<f32>() {
debug!(start_time = int);
self.as_mut().set_video_start_time(int)
}
let video_end_time = item
.get(&QString::from("videoEndTime"))
.unwrap_or(QVariant::from(&0.0));
if let Some(int) = video_end_time.value::<f32>() {
debug!(end_time = int);
self.as_mut().set_video_end_time(int)
}
let html =
image_background.value_or_default::<QString>().ends_with(