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

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

html - Outlook 2010 Anchor (url/address/link) -

android - How to create dynamically Fragment pager adapter -