mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 11:40:38 +00:00
3f4bfa097a
Can take multiple input streams and a qml scene and layout the input videos inside the qml scene. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/4609>
38 lines
813 B
QML
38 lines
813 B
QML
import QtQuick 6.0
|
|
import QtQuick.Controls 6.0
|
|
import QtQuick.Dialogs 6.0
|
|
import QtQuick.Window 6.0
|
|
|
|
import org.freedesktop.gstreamer.Qt6GLVideoItem 1.0
|
|
|
|
ApplicationWindow {
|
|
id: window
|
|
visible: true
|
|
width: 640
|
|
height: 480
|
|
x: 30
|
|
y: 30
|
|
color: "black"
|
|
|
|
Item {
|
|
anchors.fill: parent
|
|
|
|
GstGLQt6VideoItem {
|
|
id: video
|
|
objectName: "videoItem"
|
|
anchors.centerIn: parent
|
|
width: parent.width
|
|
height: parent.height
|
|
}
|
|
|
|
Text {
|
|
anchors.bottom: parent.bottom
|
|
anchors.horizontalCenter: parent.horizontalCenter
|
|
text: "qmlglsink text"
|
|
font.pointSize: 20
|
|
color: "yellow"
|
|
style: Text.Outline
|
|
styleColor: "blue"
|
|
}
|
|
}
|
|
}
|