There are 2 ways, which worked for me:
1.) In my form.ui.qml
I'm using the MediaPlayer
and the VideoOutput
components
MediaPlayer {
id: videoPlayer
source: "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"
muted: true
autoPlay: true
}
VideoOutput {
id: camera1
width: 100
height: 100
anchors.horizontalCenter: parent.horizontalCenter
source: videoPlayer
}
2.) OR I'm using the Video
compoennt in my form.ui.qml
as follow
Video {
id: cam1Stream
x: 49
y: 91
width: 505
height: 336
source: "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"
autoPlay: true
opacity: 1.0
fillMode: Image.Stretch
muted: false
}