Re: [SailfishDevel] Video playback in application
Hi, but then... how is the gallery video playback working??? it uses VideoOutput as well... this is a short reproducer: [nemo@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 al...@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 ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Video playback in application
On Sun, Feb 16, 2014 at 11:08:10PM +0100, AL13N wrote: Op zondag 16 februari 2014 19:34:29 schreef Mohammed Hassan: On Sun, Feb 16, 2014 at 04:31:24PM +0100, Ove Kåven wrote: Den 16. feb. 2014 11:32, skrev AL13N: Hi, but then... how is the gallery video playback working??? it uses VideoOutput as well... If you mean the Jolla Gallery, then it apparently uses GStreamerVideoOutput, not VideoOutput. On the phone there is sailfish-components-media-qt5 RPM do rpm -ql sailfish-components-media-qt5 and check /usr/lib/qt5/qml/Sailfish/Media/VideoPlayer.qml Beware it's also a private API which might break in future updates. It should be drop in replacement for VideoOutput but I really don't know much about that. well... on the phone, i found: /usr/lib/qt5/qml/com/jolla/mediaplayer/VideoPlayer.qml Therein VideoOutput is used (not GStreamerVideoOutput)... doesn't this mean the gallery app is using the VideoOutput? oh wait... i just realized this is not the gallery, it's the media player,... which currently only does Music... because VideoOutput doesn't work? VideoOutput will simply not work. Please check /usr/lib/qt5/qml/Sailfish/Media/VideoPlayer.qml and use it as an example to get video working with your app. VideoOutput from QtMultimedia will simply not work. I really told you all I know about the video playback WRT QML/QtMultimedia. I don't think I can add anything more. Cheers, ___ SailfishOS.org Devel mailing list
[SailfishDevel] Video playback in application
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 -- [ Julius Loman ][ l...@kyberia.net ][ http://lomo.kyberia.net ][ icq:35732873 ] ___ SailfishOS.org Devel mailing list