forked from apavlenko/vmf3-demo-player
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.qml
64 lines (58 loc) · 1.54 KB
/
main.qml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
import QtQuick 2.5
import QtQuick.Controls 1.4
import QtQuick.Layouts 1.1
import QmlVlc 0.1
import QtMultimedia 5.0
ApplicationWindow {
visible: true
title: qsTr("VMF-3 Demo Player")
SplitView {
anchors.fill: parent
orientation: Qt.Horizontal
Layout.minimumWidth: 1000
Layout.minimumHeight: 500
Rectangle {
Layout.minimumWidth: 320
color: "green"
Text {
text: "Video 1"
anchors.centerIn: parent
}
VlcPlayer {
id: vlcPlayer;
mrl: "rtsp://192.168.10.218:3414";
}
VlcVideoSurface {
id: vlcSurface;
source: vlcPlayer;
anchors.fill: parent;
}
}
Rectangle {
Layout.minimumWidth: 320
color: "yellow"
Text {
text: "Video 2"
anchors.centerIn: parent
}
VlcPlayer {
id: vlcPlayer2;
mrl: "rtsp://192.168.10.190:1234";
}
VlcVideoSurface {
id: vlcVideoOut2;
source: vlcPlayer2;
anchors.fill: parent;
}
}
Rectangle {
Layout.fillWidth: true
Layout.minimumWidth: 320
color: "red"
Text {
text: "Map"
anchors.centerIn: parent
}
}
}
}