linux - GStreamer; Unable to pause - ""; Error: "No URI set" - MediaPlayer QML Type -


tried following 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 error shown in title on click.
have confirmed file exists.

what else can done now?

the way set url in linux is:

file:///home/***/template/v1.avi

so, source: "/home/****/template/v1.avi" should replaced by:

source: "file:///home/***/template/v1.avi"


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -