File tree Expand file tree Collapse file tree 1 file changed +20
-6
lines changed
src/qml/editorwidgets/relationeditors Expand file tree Collapse file tree 1 file changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -194,16 +194,23 @@ RelationEditorBase {
194194
195195 onHasVideoChanged: {
196196 if (hasVideo && ! listVideoThumbLoader .firstFrameDrawn ) {
197- seek ( 1 );
197+ play ( );
198198 }
199199 }
200200
201201 onPositionChanged: {
202- if (! listVideoThumbLoader .firstFrameDrawn && position > 0 ) {
202+ if (! listVideoThumbLoader .firstFrameDrawn && playbackState === MediaPlayer . PlayingState ) {
203203 listVideoThumbLoader .firstFrameDrawn = true ;
204- pause ();
204+ listThumbnailPauseTimer . start ();
205205 }
206206 }
207+
208+ Timer {
209+ id: listThumbnailPauseTimer
210+ interval: 80
211+ repeat: false
212+ onTriggered: parent .pause ()
213+ }
207214 }
208215 }
209216 }
@@ -368,16 +375,23 @@ RelationEditorBase {
368375
369376 onHasVideoChanged: {
370377 if (hasVideo && ! videoThumbLoader .firstFrameDrawn ) {
371- seek ( 1 );
378+ play ( );
372379 }
373380 }
374381
375382 onPositionChanged: {
376- if (! videoThumbLoader .firstFrameDrawn && position > 0 ) {
383+ if (! videoThumbLoader .firstFrameDrawn && playbackState === MediaPlayer . PlayingState ) {
377384 videoThumbLoader .firstFrameDrawn = true ;
378- pause ();
385+ thumbnailPauseTimer . start ();
379386 }
380387 }
388+
389+ Timer {
390+ id: thumbnailPauseTimer
391+ interval: 80
392+ repeat: false
393+ onTriggered: parent .pause ()
394+ }
381395 }
382396 }
383397 }
You can’t perform that action at this time.
0 commit comments