You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
812 B

import QtQuick 2.9
import QtQuick.Controls 2.12
import QtQuick.Window 2.2
import VideoItem 1.0
import QtMultimedia 5.12
Window {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
VideoItem{
id: video
width: 300
height: 300
surface: videoSurface1
z: 3
}
VideoItem{
id: video1
x: 300
y: 300
width: 300
height: 300
surface: videoSurface2
z: 3
}
// MediaPlayer{
// id: mediaplayer
// source: "gst-pipeline: videotestsrc ! xvimagesink name=\"qtvideosink\""
// autoPlay: true
// }
// VideoOutput{
// source: mediaplayer
// width: 800
// height: 800
// Label{
// text: "2323232"
// }
// }
}