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] Python and Qt Widgets development possible?
Death? The folks on qt project said that qt widgets isn't gonna be dropped. -- Marcin 2014-02-16 16:40 GMT+01:00 christopher.l...@thurweb.ch: Dietmar Sailfish is very far from being QML only. Sailfish like all other platforms based on Qt5.X supports a rich mix of C++, QML and Javascript. The exact mix is up to you, and depends on your own experience, preferences and predilections, and of course on what you need to do. The death of Qt Widgets is nothing to with Sailfish, that is q Qt5.X thing. Grüsse Chris Zitat von Dietmar Schwertberger maill...@schwertberger.de: Thanks for the hints. I've come to the conclusion that for me it's not yet time to make the switch from N900 to Jollaas main device. (The main blocking point is lack of calendar synchronization with Outlook on a PC.) So I will probably have enough time to learn QML... But IMHO restricting GUI to QML only is a mistake. Such a limitation of tools stops software frombeing ported, written and/orpublished. The unique selling point of Jolla / Sailfish OScould be thatit's as versatile as a PC. But QML only reduces this very much to being just another Smartphone platform.If the N900 had been QML only, then I would have bought an Android device instead. Of course I understand that the resources of Jolla are limited and that priorities are somewhere else. Regards, Dietmar ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Getting odd error when attempting to use LocalStorage.changeVersion
On Sat, 15 Feb 2014 17:42:15 +0100 Rob Hoelz r...@hoelz.ro wrote: On Sat, 15 Feb 2014 01:47:52 +0100 Rob Hoelz r...@hoelz.ro wrote: Hi all, I'm working on an update for my Sudoku application, and one of the new features necessitates a storage schema change. So I wrote a utility function that tries to open a connection with the correct version, and falls back to calling db.changeVersion if there is a version mismatch. After testing my new code out, I get the following output from my application: [nemo@jolla Databases]$ harbour-sudoku [D] QWaylandEglIntegration::QWaylandEglIntegration:58 - Using Wayland-EGL [W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Silica' does not contain a module identifier directive - it cannot be protected from external registrations. [D] MLocalThemeDaemonClient::MLocalThemeDaemonClient:81 - MLocalThemeDaemonClient::MLocalThemeDaemonClient(const QString,QObject*) Theme: jolla-ambient [D] MLocalThemeDaemonClient::MLocalThemeDaemonClient:112 - LocalThemeDaemonClient: Looking for assets in (/usr/share/themes/blanco/meegotouch, /usr/share/themes/jolla-ambient/meegotouch) [W] QSqlDatabasePrivate::database:280 - QSqlDatabasePrivate::database: unable to open database: QSqlQuery::prepare: database not open DeclarativeCoverWindow: I have a default alpha buffer [W] QSqlDatabasePrivate::database:280 - QSqlDatabasePrivate::database: unable to open database: [W] QSqlDatabasePrivate::database:280 - QSqlDatabasePrivate::database: unable to open database: QSqlQuery::prepare: database not open Here's the code for the routine in question: https://github.com/hoelzro/harbour-sudoku/blob/db-upgrade/qml/pages/SudokuBoard.qml#L126 It looks to me like once LocalStorage attempts to open a database and fails, it doesn't actually open databases in the future, but I could be misunderstanding something. If anyone could help, I'd really appreciate it. Thanks, Rob ___ SailfishOS.org Devel mailing list This seems to be a generic Qt issue; I've started a thread here: http://qt-project.org/forums/viewthread/38458/ -Rob ___ SailfishOS.org Devel mailing list I found a solution to my issue and posted it on the forum thread I listed above. -Rob ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Getting odd error when attempting to use LocalStorage.changeVersion
Thanks for the report on qt-project, I just faced this exact same issue this afternoon (my app is not released yet but I already wanted to see if a DB update will be possible). It's a shame not to be able to open the DB without specifying the version :/ Waiting for improvements on QML LocalStorage API, I've found out via StackOverflow the table_info SQLite Pragma statement: http://www.sqlite.org/pragma.html#pragma_table_info With that, you can either look at the number of columns of your table, or iterate through the rows returned to see if your new column name already exists or not. -- Sylvain. Date: Sat, 15 Feb 2014 17:42:15 +0100 From: r...@hoelz.ro To: devel@lists.sailfishos.org Subject: Re: [SailfishDevel] Getting odd error when attempting to use LocalStorage.changeVersion On Sat, 15 Feb 2014 01:47:52 +0100 Rob Hoelz r...@hoelz.ro wrote: Hi all, I'm working on an update for my Sudoku application, and one of the new features necessitates a storage schema change. So I wrote a utility function that tries to open a connection with the correct version, and falls back to calling db.changeVersion if there is a version mismatch. After testing my new code out, I get the following output from my application: [nemo@jolla Databases]$ harbour-sudoku [D] QWaylandEglIntegration::QWaylandEglIntegration:58 - Using Wayland-EGL [W] QQmlImportDatabase::importPlugin:1697 - Module 'Sailfish.Silica' does not contain a module identifier directive - it cannot be protected from external registrations. [D] MLocalThemeDaemonClient::MLocalThemeDaemonClient:81 - MLocalThemeDaemonClient::MLocalThemeDaemonClient(const QString,QObject*) Theme: jolla-ambient [D] MLocalThemeDaemonClient::MLocalThemeDaemonClient:112 - LocalThemeDaemonClient: Looking for assets in (/usr/share/themes/blanco/meegotouch, /usr/share/themes/jolla-ambient/meegotouch) [W] QSqlDatabasePrivate::database:280 - QSqlDatabasePrivate::database: unable to open database: QSqlQuery::prepare: database not open DeclarativeCoverWindow: I have a default alpha buffer [W] QSqlDatabasePrivate::database:280 - QSqlDatabasePrivate::database: unable to open database: [W] QSqlDatabasePrivate::database:280 - QSqlDatabasePrivate::database: unable to open database: QSqlQuery::prepare: database not open Here's the code for the routine in question: https://github.com/hoelzro/harbour-sudoku/blob/db-upgrade/qml/pages/SudokuBoard.qml#L126 It looks to me like once LocalStorage attempts to open a database and fails, it doesn't actually open databases in the future, but I could be misunderstanding something. If anyone could help, I'd really appreciate it. Thanks, Rob ___ SailfishOS.org Devel mailing list This seems to be a generic Qt issue; I've started a thread here: http://qt-project.org/forums/viewthread/38458/ -Rob ___ SailfishOS.org Devel mailing list ___ SailfishOS.org Devel mailing list
[SailfishDevel] Inhibit PageStack back gestures on Map widget
Hi, I have a Pagestack where a page is displaying a map with QtLocation Map {} element. I can pan the map to the top/bottom/right but if I try to pan to the left, the OS thinks it is a swipe back and pop the page out. I would expect that the Map {} element intercepts all mouse events when gesture.enabled = true but it appears that it is not the case. How is it possible to inhibit this behaviour on the map widget, and to keep the behaviour on the rest of the Page? I guess I'm not the first one to have this question but I cannot find any example. Thanks, Antoine ___ 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] Preventing auto sleep and detecting sleep mode
Hi, I have two questions relating to sleep mode: First, is it possible for an application to prevent the Jolla from automatically entering sleep mode e.g. while on a specific page? An example use case would be when using navigation apps while driving, where you need the screen to be on at all times, and you don't want to have to use your hands to prevent the screen from going black. Second, is it possible to detect when the device enters sleep mode? So far I've been checking if either ApplicationWindow.applicationActive is true, or if Cover.status is either Active, Activating or Deactivating, to see if the application is currently visible, but it seems that sometimes when entering sleep mode while an application is active, ApplicationWindow.applicationActive will remain true during sleep mode (and when unlocking the device I'll be met by the application rather than the lock screen). Regards, Arvid ___ SailfishOS.org Devel mailing list
Re: [SailfishDevel] Inhibit PageStack back gestures on Map widget
Hi, On Sun, 16 Feb 2014 18:29:55 Tigre-Bleu wrote: I have a Pagestack where a page is displaying a map with QtLocation Map {} element. I can pan the map to the top/bottom/right but if I try to pan to the left, the OS thinks it is a swipe back and pop the page out. I would expect that the Map {} element intercepts all mouse events when gesture.enabled = true but it appears that it is not the case. This looks like a bug in the Qt Location Map type. It should be calling QQuickItem::setKeepMouseGrab() once a gesture is detected to prevent any input event filters defined in parent items (such as the PageStack) from getting those events. Can you create a bug in the Qt bug tracker: http://bugreports.qt-project.org/ How is it possible to inhibit this behaviour on the map widget, and to keep the behaviour on the rest of the Page? I guess I'm not the first one to have this question but I cannot find any example. Perhaps you are :) The Jolla Sailfish Maps application requires the user to switch to split view before moving back through the page stack. This essentially bypasses this issue. Cheers, -- Aaron McCarthy ___ SailfishOS.org Devel mailing list