[SailfishDevel] Video playback in application
AL13N
alien at rmail.be
Sun Feb 16 10:32:12 UTC 2014
Hi, but then... how is the gallery video playback working??? it uses
VideoOutput as well...
this is a short reproducer:
[nemo at localhost testvideo2]$ cat main.qml
import QtQuick 2.0
import Sailfish.Silica 1.0
import QtMultimedia 5.0
ApplicationWindow
{
initialPage: videoPlay
Page {
id: videoPlay
Rectangle {
color: "black"
anchors.fill: parent
MediaPlayer {
id: mediaPlayer
autoLoad: true
autoPlay: true
source:'/home/nemo/Videos/Jolla/the_other_half.mp4'
}
VideoOutput {
id: videoOutput
anchors.centerIn: parent
source: mediaPlayer
}
}
}
}
Op zondag 16 februari 2014 12:22:36 schreef Janne Pulkkinen:
> QtMultimedia doesn't seem to work at the moment, so at the moment I'm using
> MediaPlayer with GStreamerVideoOutput:
> https://github.com/Matoking/Filetug/blob/master/qml/pages/fileView/Video.qml
> 2014-02-16 11:04 GMT+02:00 AL13N <alien at rmail.be>:
> > Hi,
> >
> > I have the same issue as below... i compared with the qml of the Gallery
> > Video
> > play...
> >
> > i even tried static source with autoplay and autoload like this:
> > Page{
> >
> > anchors.fill: parent
> > SilicaFlickable {
> >
> > anchors.fill: parent
> > Rectangle {
> >
> > color: "black"
> > anchors.fill: parent
> > MediaPlayer {
> >
> > id: mediaPlayer
> > source: '/home/nemo/Videos/Camera/file.mp4'
> > autoPlay: true
> > autoLoad: true
> >
> > }
> > VideoOutput {
> >
> > source: mediaPlayer
> > anchors.centerIn: parent
> >
> > }
> >
> > }
> >
> > }
> >
> > }
> >
> > still the same issue...
> >
> > i saw:
> >
> > import "mediaplayer.js" as MediaPlayer
> >
> > is that relevant? are the MediaPlayer QML being overridden, by something
> > else?
> >
> > What am i missing?
> >
> > Op woensdag 1 januari 2014 23:12:28 schreef Julius Loman:
> > > Hi
> > >
> > > I'm trying to play video content in my QML application using VideoOutput
> >
> > and
> >
> > > MediaPlayer types. So far I haven't been able to get it working even on
> > > the Jolla provided videos in /home/nemo/Videos/ , probably due to
> >
> > following
> >
> > > error:
> > >
> > > [W] QGstreamerPlayerSession::processBusMessage:1223 - Error: "Internal
> >
> > data
> >
> > > stream error."
> > >
> > > Anybody can provide a working example or give me some clues? Playing
> > > just
> > > audio from same files using QML Audio type seems to work fine.
> > >
> > > Thank you
> > > Julius
> >
> > _______________________________________________
> > SailfishOS.org Devel mailing list
More information about the Devel
mailing list