PDA

View Full Version : GStreamer; Unable to pause - “”; Error: “No URI set” - MediaPlayer QML Type



TheIndependentAquarius
30th September 2015, 10:51
Tried the following from http://doc.qt.io/qt-5/qml-qtmultimedia-mediaplayer.html#details


import QtQuick 2.4
import QtQuick.Window 2.2
import QtMultimedia 5.0

Window
{
visible: true
height: 1000
width: 1000


MediaPlayer {
id: mediaplayer
source: "/home/****/template/v1.avi"
}

VideoOutput {
anchors.fill: parent
source: mediaplayer
}

MouseArea {
id: playArea
anchors.fill: parent
onPressed: mediaplayer.play();
}
}

on Ubuntu 14.04.2 LTS \n \l with GStreamer Core Library version 0.10.36

This gives the error shown in title on click.
I have confirmed that the file exists.

What else can be done now?

anda_skoa
30th September 2015, 12:37
Have you tried a file: URI? E.g.


file:///home/....

or


Qt.resolvedUrl("/home....");


Cheers,
_

TheIndependentAquarius
1st October 2015, 08:42
I tried the first option in your post and it helped. Thanks.