How to play Video in Ubuntu using QML
Unsolved
QML and Qt Quick
-
Hi @Sushma_MP
Following piece of code should help you to play video if your Ubuntu machine is setup with GStreamer.
import QtMultimedia 5.0
Window {
title: qsTr("Hello World")
width: 640
height: 480
visible: true
Video
{
id: video
anchors.fill: parent
source: "file:///home/manu/Desktop/Projects/song.mp4"MouseArea { anchors.fill: parent onClicked: { video.play() } } }
}