🐛 need to get video start and end times working
This is waiting till service_item_model.rs is the model actually used for ServiceList. Right now we are still using C++ so once that switches, we can add it in service_item_model. This way we don't add anymore C++ code that we are likely to throw away.
This commit is contained in:
parent
485a7ac223
commit
ea74fda363
4 changed files with 13 additions and 0 deletions
|
@ -130,6 +130,8 @@ FocusScope {
|
|||
text: SlideObject.text
|
||||
pdfIndex: SlideObject.slideIndex
|
||||
vidLoop: SlideObject.looping
|
||||
vidStartTime: SlideObject.videoStartTime
|
||||
vidEndTime: SlideObject.videoEndTime
|
||||
preview: true
|
||||
}
|
||||
|
||||
|
|
|
@ -59,6 +59,8 @@ Item {
|
|||
pdfIndex: SlideObj.slideIndex
|
||||
itemType: SlideObj.ty
|
||||
vidLoop: SlideObj.looping
|
||||
vidStartTime: SlideObj.videoStartTime
|
||||
vidEndTime: SlideObj.videoEndTime
|
||||
}
|
||||
|
||||
Connections {
|
||||
|
|
|
@ -24,6 +24,8 @@ Item {
|
|||
property url videoSource
|
||||
property url audioSource
|
||||
property bool vidLoop
|
||||
property real vidStartTime
|
||||
property real vidEndTime
|
||||
property int pdfIndex
|
||||
property string chosenFont: "Quicksand"
|
||||
property string text
|
||||
|
@ -85,6 +87,7 @@ Item {
|
|||
onTriggered: {
|
||||
/* showPassiveNotification("YIPPEEE!") */
|
||||
mpv.loadFile(videoSource.toString());
|
||||
mpv.seek(vidStartTime)
|
||||
if (editMode) {
|
||||
console.log("WHY AREN'T YOU PASUING!");
|
||||
pauseTimer.restart();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue