summaryrefslogtreecommitdiffstats
path: root/tests/manual/qml-gstreamer-rtp/qml-gstreamer-rtp.qml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qml-gstreamer-rtp/qml-gstreamer-rtp.qml')
-rw-r--r--tests/manual/qml-gstreamer-rtp/qml-gstreamer-rtp.qml29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/manual/qml-gstreamer-rtp/qml-gstreamer-rtp.qml b/tests/manual/qml-gstreamer-rtp/qml-gstreamer-rtp.qml
new file mode 100644
index 000000000..73ec976fb
--- /dev/null
+++ b/tests/manual/qml-gstreamer-rtp/qml-gstreamer-rtp.qml
@@ -0,0 +1,29 @@
+// Copyright (C) 2024 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+import QtQuick
+import QtQuick.Controls
+import QtMultimedia
+
+ApplicationWindow {
+ id: window
+ width: 800
+ height: 600
+ visible: true
+ title: qsTr("GStreamer RTP receiver")
+
+ MediaPlayer {
+ id: player
+ videoOutput: output
+
+ source: "udp://127.0.0.1:50004"
+ }
+
+ Component.onCompleted: {
+ player.play()
+ }
+
+ VideoOutput {
+ id: output
+ anchors.fill: parent
+ }
+}