Merge lp:~renatofilho/mediaplayer-app/scene-selector-desktop into lp:mediaplayer-app

Proposed by Renato Araujo Oliveira Filho
Status: Needs review
Proposed branch: lp:~renatofilho/mediaplayer-app/scene-selector-desktop
Merge into: lp:mediaplayer-app
Diff against target: 145 lines (+23/-20)
5 files modified
CMakeLists.txt (+1/-1)
debian/control (+1/-0)
src/CMakeLists.txt (+6/-6)
src/mediaplayer.cpp (+4/-2)
src/qml/player/Controls.qml (+11/-11)
To merge this branch: bzr merge lp:~renatofilho/mediaplayer-app/scene-selector-desktop
Reviewer Review Type Date Requested Status
system-apps-ci-bot continuous-integration Needs Fixing
PS Jenkins bot continuous-integration Needs Fixing
Dimitri John Ledkov Needs Fixing
Review via email: mp+201183@code.launchpad.net

Commit message

Enabled scene selector in desktop mode.

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

libgstreamer0.10-dev is deprecated and should not be used. please use gstreamer-1.0 only.

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Continuous integration, rev:194
http://jenkins.qa.ubuntu.com/job/mediaplayer-app-ci/172/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/2237
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty-touch/2122/console
    SUCCESS: http://jenkins.qa.ubuntu.com/job/mediaplayer-app-trusty-amd64-ci/28
    SUCCESS: http://jenkins.qa.ubuntu.com/job/mediaplayer-app-trusty-armhf-ci/28
        deb: http://jenkins.qa.ubuntu.com/job/mediaplayer-app-trusty-armhf-ci/28/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/mediaplayer-app-trusty-i386-ci/28
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/1955
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/2239
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/2239/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/2122
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/2122/artifact/work/output/*zip*/output.zip
    FAILURE: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-runner-mako/4582/console
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/2980

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/mediaplayer-app-ci/172/rebuild

review: Needs Fixing (continuous-integration)
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

> libgstreamer0.10-dev is deprecated and should not be used. please use
> gstreamer-1.0 only.

The current version of qtmutimedia uses libgstreamer0.10-dev there is no way to load 2 versions of gst in the same app. Because of that we still need to use the version 0.10 until a new version of qtmutimedia get released.

Revision history for this message
system-apps-ci-bot (system-apps-ci-bot) wrote :
review: Needs Fixing (continuous-integration)

Unmerged revisions

194. By Renato Araujo Oliveira Filho

Enabled scene selector in desktop mode.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'CMakeLists.txt'
--- CMakeLists.txt 2013-09-25 23:08:08 +0000
+++ CMakeLists.txt 2014-01-10 13:46:35 +0000
@@ -30,7 +30,7 @@
30find_package(Qt5Quick)30find_package(Qt5Quick)
3131
32include(FindPkgConfig)32include(FindPkgConfig)
33#pkg_check_modules(GSTLIB REQUIRED gstreamer-1.0)33pkg_check_modules(GSTLIB REQUIRED gstreamer-0.10)
3434
35# Standard install paths35# Standard install paths
36include(GNUInstallDirs)36include(GNUInstallDirs)
3737
=== modified file 'debian/control'
--- debian/control 2013-10-14 21:48:26 +0000
+++ debian/control 2014-01-10 13:46:35 +0000
@@ -8,6 +8,7 @@
8 libgl1-mesa-dev[i386 amd64] | libgl-dev[i386 amd64],8 libgl1-mesa-dev[i386 amd64] | libgl-dev[i386 amd64],
9 libgles2-mesa-dev[armhf],9 libgles2-mesa-dev[armhf],
10 pkg-config,10 pkg-config,
11 libgstreamer0.10-dev,
11 python,12 python,
12 qtbase5-dev,13 qtbase5-dev,
13 qtdeclarative5-dev,14 qtdeclarative5-dev,
1415
=== modified file 'src/CMakeLists.txt'
--- src/CMakeLists.txt 2014-01-07 19:36:45 +0000
+++ src/CMakeLists.txt 2014-01-10 13:46:35 +0000
@@ -5,17 +5,17 @@
5include_directories(5include_directories(
6 ${CMAKE_BINARY_DIR}6 ${CMAKE_BINARY_DIR}
7 ${sdkhelper_SOURCE_DIR}7 ${sdkhelper_SOURCE_DIR}
8 #${GSTLIB_INCLUDE_DIRS}8 ${GSTLIB_INCLUDE_DIRS}
9 )9 )
1010
11set(mediaplayer_HDRS11set(mediaplayer_HDRS
12 #thumbnail-provider.h12 thumbnail-provider.h
13 #thumbnail-pipeline-gst.h13 thumbnail-pipeline-gst.h
14 mediaplayer.h)14 mediaplayer.h)
1515
16set(mediaplayer_SRCS16set(mediaplayer_SRCS
17 #thumbnail-provider.cpp17 thumbnail-provider.cpp
18 #thumbnail-pipeline-gst.cpp18 thumbnail-pipeline-gst.cpp
19 mediaplayer.cpp19 mediaplayer.cpp
20 main.cpp)20 main.cpp)
2121
@@ -28,7 +28,7 @@
2828
29target_link_libraries(${MEDIAPLAYER}29target_link_libraries(${MEDIAPLAYER}
30 sdkhelper30 sdkhelper
31 #${GSTLIB_LDFLAGS}31 ${GSTLIB_LDFLAGS}
32 )32 )
3333
34install(TARGETS ${MEDIAPLAYER}34install(TARGETS ${MEDIAPLAYER}
3535
=== modified file 'src/mediaplayer.cpp'
--- src/mediaplayer.cpp 2014-01-08 22:38:38 +0000
+++ src/mediaplayer.cpp 2014-01-10 13:46:35 +0000
@@ -14,7 +14,7 @@
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 */15 */
16#include "mediaplayer.h"16#include "mediaplayer.h"
17//#include "thumbnail-provider.h"17#include "thumbnail-provider.h"
18#include "sharefile.h"18#include "sharefile.h"
1919
20#include <QtCore/QDir>20#include <QtCore/QDir>
@@ -82,7 +82,9 @@
82 qmlRegisterType<ShareFile>("SDKHelper", 1, 0, "ShareFile");82 qmlRegisterType<ShareFile>("SDKHelper", 1, 0, "ShareFile");
8383
84 m_view = new QQuickView();84 m_view = new QQuickView();
85 //m_view->engine()->addImageProvider("video", new ThumbnailProvider);85 if (isDesktopMode()) {
86 m_view->engine()->addImageProvider("video", new ThumbnailProvider);
87 }
86 m_view->setColor(QColor("black"));88 m_view->setColor(QColor("black"));
87 m_view->setResizeMode(QQuickView::SizeRootObjectToView);89 m_view->setResizeMode(QQuickView::SizeRootObjectToView);
88 m_view->setTitle("Media Player");90 m_view->setTitle("Media Player");
8991
=== modified file 'src/qml/player/Controls.qml'
--- src/qml/player/Controls.qml 2014-01-07 19:36:45 +0000
+++ src/qml/player/Controls.qml 2014-01-10 13:46:35 +0000
@@ -66,16 +66,10 @@
6666
67 property bool parentActive: _controls.active67 property bool parentActive: _controls.active
6868
69 function selectSceneAt(time) {
70 // SKIP it for now, we need to fix hybris bug #1231147
71 return
72 }
73
74 objectName: "Controls.SceneSelector"69 objectName: "Controls.SceneSelector"
75 opacity: 070 opacity: 0
76 visible: opacity > 071 visible: opacity > 0
77 // SKIP it for now, we need to fix hybris bug #123114772 model: mpApplication.desktopMode ? _sceneSelectorModel : []
78 //model: _sceneSelectorModel
79 anchors {73 anchors {
80 left: parent.left74 left: parent.left
81 right: parent.right75 right: parent.right
@@ -93,7 +87,7 @@
93 id: _showAnimation87 id: _showAnimation
9488
95 // SKIP it for now, we need to fix hybris bug #123114789 // SKIP it for now, we need to fix hybris bug #1231147
96 running: false //_sceneSelector.show90 running: mpApplication.desktopMode ? _sceneSelector.show : false
97 NumberAnimation { target: _sceneSelector; property: "opacity"; to: 1; duration: 175 }91 NumberAnimation { target: _sceneSelector; property: "opacity"; to: 1; duration: 175 }
98 NumberAnimation { target: controls; property: "heightOffset"; to: 0; duration: 175 }92 NumberAnimation { target: controls; property: "heightOffset"; to: 0; duration: 175 }
99 }93 }
@@ -102,7 +96,7 @@
102 id: _hideAnimation96 id: _hideAnimation
10397
104 // SKIP it for now, we need to fix hybris bug #123114798 // SKIP it for now, we need to fix hybris bug #1231147
105 running: false //!_sceneSelector.show99 running: mpApplication.desktopMode ? !_sceneSelector.show : false
106 NumberAnimation { target: _sceneSelector; property: "opacity"; to: 0; duration: 175 }100 NumberAnimation { target: _sceneSelector; property: "opacity"; to: 0; duration: 175 }
107 NumberAnimation { target: controls; property: "heightOffset"; to: units.gu(2); duration: 175 }101 NumberAnimation { target: controls; property: "heightOffset"; to: units.gu(2); duration: 175 }
108 }102 }
@@ -208,12 +202,18 @@
208 seeking = true202 seeking = true
209 }203 }
210 seekRequested(liveValue * 1000)204 seekRequested(liveValue * 1000)
211 _sceneSelector.selectSceneAt(liveValue * 1000)205 if (mpApplication.desktopMode) {
206 _sceneSelector.selectSceneAt(liveValue * 1000)
207 }
212 }208 }
213 }209 }
214 }210 }
215211
216 onValueChanged: _sceneSelector.selectSceneAt(video.position)212 onValueChanged: {
213 if (mpApplication.desktopMode) {
214 _sceneSelector.selectSceneAt(video.position)
215 }
216 }
217217
218 onClicked: {218 onClicked: {
219 if (insideThumb) {219 if (insideThumb) {

Subscribers

People subscribed via source and target branches