1
0
Fork 0
VideoPlayer/src/qml/Items/ThumbnailProcess.qml

14 lines
320 B
QML
Raw Normal View History

import player 1.0
Process {
2020-05-06 12:43:01 +01:00
id: thumbnailerProcess
property string name: ""
onFinished: function () {
if (String(name).indexOf("://") !== -1) {
playlistDialog.addThumbnailToCache(name, getOutput())
} else {
playlistDialog.addThumbnailToCache(name, "/tmp/" + Qt.md5(name) + ".png")
}
2020-05-06 12:43:01 +01:00
}
}