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
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-09-25 23:08:08 +0000
3+++ CMakeLists.txt 2014-01-10 13:46:35 +0000
4@@ -30,7 +30,7 @@
5 find_package(Qt5Quick)
6
7 include(FindPkgConfig)
8-#pkg_check_modules(GSTLIB REQUIRED gstreamer-1.0)
9+pkg_check_modules(GSTLIB REQUIRED gstreamer-0.10)
10
11 # Standard install paths
12 include(GNUInstallDirs)
13
14=== modified file 'debian/control'
15--- debian/control 2013-10-14 21:48:26 +0000
16+++ debian/control 2014-01-10 13:46:35 +0000
17@@ -8,6 +8,7 @@
18 libgl1-mesa-dev[i386 amd64] | libgl-dev[i386 amd64],
19 libgles2-mesa-dev[armhf],
20 pkg-config,
21+ libgstreamer0.10-dev,
22 python,
23 qtbase5-dev,
24 qtdeclarative5-dev,
25
26=== modified file 'src/CMakeLists.txt'
27--- src/CMakeLists.txt 2014-01-07 19:36:45 +0000
28+++ src/CMakeLists.txt 2014-01-10 13:46:35 +0000
29@@ -5,17 +5,17 @@
30 include_directories(
31 ${CMAKE_BINARY_DIR}
32 ${sdkhelper_SOURCE_DIR}
33- #${GSTLIB_INCLUDE_DIRS}
34+ ${GSTLIB_INCLUDE_DIRS}
35 )
36
37 set(mediaplayer_HDRS
38- #thumbnail-provider.h
39- #thumbnail-pipeline-gst.h
40+ thumbnail-provider.h
41+ thumbnail-pipeline-gst.h
42 mediaplayer.h)
43
44 set(mediaplayer_SRCS
45- #thumbnail-provider.cpp
46- #thumbnail-pipeline-gst.cpp
47+ thumbnail-provider.cpp
48+ thumbnail-pipeline-gst.cpp
49 mediaplayer.cpp
50 main.cpp)
51
52@@ -28,7 +28,7 @@
53
54 target_link_libraries(${MEDIAPLAYER}
55 sdkhelper
56- #${GSTLIB_LDFLAGS}
57+ ${GSTLIB_LDFLAGS}
58 )
59
60 install(TARGETS ${MEDIAPLAYER}
61
62=== modified file 'src/mediaplayer.cpp'
63--- src/mediaplayer.cpp 2014-01-08 22:38:38 +0000
64+++ src/mediaplayer.cpp 2014-01-10 13:46:35 +0000
65@@ -14,7 +14,7 @@
66 * along with this program. If not, see <http://www.gnu.org/licenses/>.
67 */
68 #include "mediaplayer.h"
69-//#include "thumbnail-provider.h"
70+#include "thumbnail-provider.h"
71 #include "sharefile.h"
72
73 #include <QtCore/QDir>
74@@ -82,7 +82,9 @@
75 qmlRegisterType<ShareFile>("SDKHelper", 1, 0, "ShareFile");
76
77 m_view = new QQuickView();
78- //m_view->engine()->addImageProvider("video", new ThumbnailProvider);
79+ if (isDesktopMode()) {
80+ m_view->engine()->addImageProvider("video", new ThumbnailProvider);
81+ }
82 m_view->setColor(QColor("black"));
83 m_view->setResizeMode(QQuickView::SizeRootObjectToView);
84 m_view->setTitle("Media Player");
85
86=== modified file 'src/qml/player/Controls.qml'
87--- src/qml/player/Controls.qml 2014-01-07 19:36:45 +0000
88+++ src/qml/player/Controls.qml 2014-01-10 13:46:35 +0000
89@@ -66,16 +66,10 @@
90
91 property bool parentActive: _controls.active
92
93- function selectSceneAt(time) {
94- // SKIP it for now, we need to fix hybris bug #1231147
95- return
96- }
97-
98 objectName: "Controls.SceneSelector"
99 opacity: 0
100 visible: opacity > 0
101- // SKIP it for now, we need to fix hybris bug #1231147
102- //model: _sceneSelectorModel
103+ model: mpApplication.desktopMode ? _sceneSelectorModel : []
104 anchors {
105 left: parent.left
106 right: parent.right
107@@ -93,7 +87,7 @@
108 id: _showAnimation
109
110 // SKIP it for now, we need to fix hybris bug #1231147
111- running: false //_sceneSelector.show
112+ running: mpApplication.desktopMode ? _sceneSelector.show : false
113 NumberAnimation { target: _sceneSelector; property: "opacity"; to: 1; duration: 175 }
114 NumberAnimation { target: controls; property: "heightOffset"; to: 0; duration: 175 }
115 }
116@@ -102,7 +96,7 @@
117 id: _hideAnimation
118
119 // SKIP it for now, we need to fix hybris bug #1231147
120- running: false //!_sceneSelector.show
121+ running: mpApplication.desktopMode ? !_sceneSelector.show : false
122 NumberAnimation { target: _sceneSelector; property: "opacity"; to: 0; duration: 175 }
123 NumberAnimation { target: controls; property: "heightOffset"; to: units.gu(2); duration: 175 }
124 }
125@@ -208,12 +202,18 @@
126 seeking = true
127 }
128 seekRequested(liveValue * 1000)
129- _sceneSelector.selectSceneAt(liveValue * 1000)
130+ if (mpApplication.desktopMode) {
131+ _sceneSelector.selectSceneAt(liveValue * 1000)
132+ }
133 }
134 }
135 }
136
137- onValueChanged: _sceneSelector.selectSceneAt(video.position)
138+ onValueChanged: {
139+ if (mpApplication.desktopMode) {
140+ _sceneSelector.selectSceneAt(video.position)
141+ }
142+ }
143
144 onClicked: {
145 if (insideThumb) {

Subscribers

People subscribed via source and target branches