1
0
mirror of https://gitlab.com/kelteseth/ScreenPlay.git synced 2024-11-07 03:22:33 +01:00
ScreenPlay/qml/Components/CreateVideoPreviewSmall.qml

31 lines
705 B
QML

import QtQuick 2.7
import QtAV 1.07
Rectangle {
id: createVideoPreviewSmall
property url source
Video {
id: previewVideo
anchors.fill: parent
z: 99
source: createVideoPreviewSmall.source
onSourceChanged: {
print(previewVideo.error + previewVideo.errorString + previewVideo.source)
//previewVideo.source = createVideoPreviewSmall.source;
previewVideo.play()
}
onPlaying: {
print("playing")
}
onErrorChanged: {
print(previewVideo.error + previewVideo.errorString)
}
//videoCodecPriority: ["CUDA", "D3D11", "DXVA", "VAAPI", "FFmpeg"]
}
}