VideoOutput plays as soon as loaded even if the MediaPlayer is not set to autoPlay
Bug #1457972 reported by
Nick Dedekind
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical System Image |
Fix Released
|
Medium
|
Pat McGowan | ||
qtubuntu-media (Ubuntu) |
Fix Released
|
Undecided
|
Canonical Phone Foundations | ||
qtubuntu-media (Ubuntu RTM) |
Fix Released
|
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
lp:~phablet-team/qtubuntu-media/fix-1457972
- PS Jenkins bot: Approve (continuous-integration)
- Nick Dedekind (community): Approve
-
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) |
Changed in qtubuntu-media (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in qtubuntu-media (Ubuntu RTM): | |
status: | New → In Progress |
assignee: | nobody → Jim Hodapp (jhodapp) |
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 |
To post a comment you must log in.
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() }
}
}