media paused only on 'Low Battery' notification, not 'Battery Critical' notification

Bug #1381923 reported by Brendan Donegan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
New
Undecided
Unassigned
media-hub (Ubuntu)
New
Undecided
Unassigned
media-hub (Ubuntu RTM)
New
Undecided
Unassigned

Bug Description

Steps to reproduce:

1. Open the music app from the click scope
2. Play a track
3. Enable the mock battery with:

gdbus call --session --dest "com.canonical.indicator.power" \
             --object-path /com/canonical/indicator/power/Testing \
             --method org.freedesktop.DBus.Properties.Set \
             com.canonical.indicator.power.Testing \
             MockBatteryEnabled \
             "<true>"

4. Make sure the battery level is set above low and then set it to critical:

gdbus call --session --dest "com.canonical.indicator.power" \
             --object-path /com/canonical/indicator/power/Testing \
             --method org.freedesktop.DBus.Properties.Set \
             com.canonical.indicator.power.Testing \
             MockBatteryLevel \
             "<uint32 50>"
gdbus call --session --dest "com.canonical.indicator.power" \
             --object-path /com/canonical/indicator/power/Testing \
             --method org.freedesktop.DBus.Properties.Set \
             com.canonical.indicator.power.Testing \
             MockBatteryLevel \
             "<uint32 1>"

Expected result:

A Battery critical notification appears and sound and video pauses during the notification

Actual result:

Sound and video continues playing during the notification

Note that if we set the level to 10 instead in step 4 then audio and video is paused

ProblemType: Bug
DistroRelease: Ubuntu RTM 14.09
Package: media-hub 2.0.0+14.10.20141015-0ubuntu1
Uname: Linux 3.4.67 armv7l
ApportVersion: 2.14.7-0ubuntu5
Architecture: armhf
Date: Thu Oct 16 07:38:34 2014
InstallationDate: Installed on 2014-10-16 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20141016-010328)
SourcePackage: media-hub
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :
tags: added: rtm14
Revision history for this message
TarotChen (tarotchen) wrote :

Verified on krillin-RC-r147 & Arale-RC-r136

1. If play online media in webbrowser app, playback won't pause while critical battery notification appears and low battery notification appears
2. If play music in music app, playback won't pause while critical battery notification appears and low battery notification appears
3. If play video in media player app, playback pauses while critical battery notification appears and low battery notification appears

So I guess, it may relate to different media playings.

Jim Hodapp (jhodapp)
Changed in canonical-devices-system-image:
assignee: nobody → John McAleely (john.mcaleely)
Changed in canonical-devices-system-image:
assignee: John McAleely (john.mcaleely) → nobody
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.