summaryrefslogtreecommitdiffstats
path: root/tests/manual/qml-gstreamer-rtp/qml-gstreamer-rtp.qml
blob: 73ec976fb93091d8c72c06071b14bfa843063f1f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
    }
}