VideoOutput plays as soon as loaded even if the MediaPlayer is not set to autoPlay
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | Canonical System Image |
Medium
|
Pat McGowan | ||
| | qtubuntu-media (Ubuntu) |
Undecided
|
Canonical Phone Foundations | ||
| | qtubuntu-media (Ubuntu RTM) |
Undecided
|
Jim Hodapp | ||
Bug Description
When using qml components (not sure about Qt)
MediaPlayer { id: mp; source: "test-file.ogg"; autoPlay: false }
VideoOutput { source: mp }
The media plays as soon as the media is loaded even though the autoPlay is set to false.
There is a play command going out as soon as we get a glConsumerSet signal.
Related branches
- PS Jenkins bot: Approve (continuous-integration) on 2015-06-02
- Nick Dedekind (community): Approve on 2015-06-02
-
Diff: 78 lines (+21/-4)3 files modifiedsrc/aal/aalmediaplayerservice.cpp (+7/-3)
src/aal/aalvideorenderercontrol.cpp (+10/-1)
src/aal/aalvideorenderercontrol.h (+4/-0)
| Changed in qtubuntu-media (Ubuntu): | |
| assignee: | nobody → Canonical Phone Foundations (canonical-phonedations-team) |
| Jim Hodapp (jhodapp) wrote : | #1 |
| Jim Hodapp (jhodapp) wrote : | #2 |
Nevermind, was testing audio only and misread the bug that this should be video-based.
| Changed in qtubuntu-media (Ubuntu): | |
| status: | New → In Progress |
| Jim Hodapp (jhodapp) wrote : | #3 |
Updated test QML that confirmed the bug:
import QtQuick 2.0
import QtQuick.Window 2.0
import QtMultimedia 5.0
import Ubuntu.Unity.Action 1.1 as UnityActions
import Ubuntu.Components 1.1
import Ubuntu.
Text {
text: "Should NOT auto-play media";
font.pointSize: 20;
width: 150; height: 50;
MediaPlayer {
id: playVideo
autoPlay: false
source: "/home/
}
VideoOutput { source: playVideo }
MouseArea {
id: playArea
onPressed: { playVideo.play() }
}
}
| Changed in qtubuntu-media (Ubuntu): | |
| status: | In Progress → Fix Committed |
| Launchpad Janitor (janitor) wrote : | #4 |
This bug was fixed in the package qtubuntu-media - 0.7.1+15.
---------------
qtubuntu-media (0.7.1+
[ CI Train Bot ]
* New rebuild forced.
[ Jim Hodapp ]
* Don't auto play when playing a video unless
QMediaPlaye
-- CI Train Bot <email address hidden> Tue, 02 Jun 2015 19:37:22 +0000
| Changed in qtubuntu-media (Ubuntu): | |
| status: | Fix Committed → Fix Released |
| Changed in qtubuntu-media (Ubuntu RTM): | |
| status: | New → In Progress |
| assignee: | nobody → Jim Hodapp (jhodapp) |
| Łukasz Zemczak (sil2100) wrote : | #5 |
This bug was fixed in the package qtubuntu-media 0.7.1+15.
---------------
qtubuntu-media (0.7.1+
[ Jim Hodapp ]
* Bump version for vivid sync
[ CI Train Bot ]
* New rebuild forced.
qtubuntu-media (0.7.1+
[ CI Train Bot ]
* New rebuild forced.
[ Jim Hodapp ]
* Make sure video can play a different media source using the same
player instance and not produce a black screen.
qtubuntu-media (0.7.1+
[ CI Train Bot ]
* New rebuild forced.
[ Jim Hodapp ]
* Don't auto play when playing a video unless
QMediaPlaye
qtubuntu-media (0.7.1+
[ CI Train Bot ]
* New rebuild forced.
[ Jim Hodapp ]
* Get rid of the gcc-4.9 build dependency. (LP: #1452340)
-- CI Train Bot <email address hidden> Fri, 28 Aug 2015 13:52:24 +0000
| Changed in qtubuntu-media (Ubuntu RTM): | |
| status: | In Progress → Fix Released |
| Changed in canonical-devices-system-image: | |
| assignee: | nobody → Pat McGowan (pat-mcgowan) |
| importance: | Undecided → Medium |
| milestone: | none → ww40-2015 |
| status: | New → Fix Released |
| status: | Fix Released → Fix Committed |
| Changed in canonical-devices-system-image: | |
| status: | Fix Committed → Fix Released |


I tried an example like this to reproduce it with no luck:
import QtQuick 2.0 Components. Popups 1.0 as Popups
import QtQuick.Window 2.0
import QtMultimedia 5.0
import Ubuntu.Unity.Action 1.1 as UnityActions
import Ubuntu.Components 1.1
import Ubuntu.
import QtQuick 2.0
import QtMultimedia 5.0
Text {
text: "Should NOT auto-play media";
font.pointSize: 48;
width: 150; height: 50;
MediaPlayer { phablet/ Music/testfile. ogg"
anchors. fill: parent
id: playMusic
autoPlay: false
source: "/home/
}
MouseArea {
id: playArea
onPressed: { playMusic.play() }
}
}