Video playlist loop

Hi,
How to make the whole playlist play in loop?
also how to remove the thumbnails on the videos?
sample

Thanks, we’ll fix it. Right now you can do the following:

  1. Add code to hide thumbnails:
import QtQuick 2.12

Item {
    function init() {
        timer.start()
    }
    Timer {
        id: timer
        interval: 10
        repeat: true
        onTriggered: {
            if (contentUi.children[14] !== undefined) {
                contentUi.children[14].active = false
                timer.stop()
            }
        }
    }
} 
  1. Add actions to loop the playlist:
    image

The sample project: video_playlist.pma (2.0 MB)

1 Like

Code for Execute action:

function () {
    var loopPlaylist = true
    if (target.content.itemIndex < target.processor.mapModel.rowCount() - 1)
       target.content.scriptAdaptor.actionItemIndex(target.content.itemIndex + 1)
    else if (loopPlaylist)
       target.content.scriptAdaptor.actionItemIndex(0)
}

1 Like

Hi, excelent forum, product. Love it
In this video playlist, how can i change code to random playlist videos?

Thanks

For a playlist of 3 videos

function () {
   target.content.scriptAdaptor.actionItemIndex(Math.floor(Math.random() * 3))
}

Here is the example video_playlist_random.pma (2.0 MB)

1 Like

Hi michael, Thank you very much


Back to Flipabit >
Copyright © 2018. Flipabit Team. All rights reserved.