Synchronous sound notifications pause video

Bug #1378920 reported by Leo Arias
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
unity8 (Ubuntu)
Expired
High
Unassigned

Bug Description

Dave found this while testing silo 11. I reproduced with krilling 14.09 proposed #91.

Steps to reproduce:
Put a video on the Videos folder of the phone.
Go to the video scope.
Open a video and play it.
While the video is playing, press the volume up or down buttons.

The video freezes. It seems paused, but the pause button is still visible. If you click pause and play, then the video resumes.

phablet@ubuntu-phablet:~$ apt-cache policy indicator-sound
indicator-sound:
  Instalados: 12.10.2+14.10.20141007-0ubuntu1
  Candidato: 12.10.2+14.10.20141007-0ubuntu1
  Tabla de versión:
 *** 12.10.2+14.10.20141007-0ubuntu1 0
        500 http://ppa.launchpad.net/ci-train-ppa-service/landing-011/ubuntu-rtm/ 14.09/main armhf Packages
        100 /var/lib/dpkg/status

Tags: rtm14

Related branches

Ted Gould (ted)
summary: - changing volume with mediaplayer playing pauses the video
+ Synchronous sound notifications pause video
affects: indicator-sound (Ubuntu) → unity8 (Ubuntu)
no longer affects: indicator-sound
Dave Morley (davmor2)
Changed in unity8 (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
tags: added: rtm14
Revision history for this message
kevin gunn (kgunn72) wrote :

changing this to high as I disagree this is critical given where we are at & how we're interpreting critical, but recommend asking JoeO what he thinks.

also, there are 2 bugs here per a quick irc chat
1) short term, unity8 should use the "alert" role when playing sound for vol change - this will avoid pausing the video, but will drop the video's audio for the beep, and then ramp back up the video....imagine pressing vol button in sequence, this could get annoying to user
2) longer term to address the annoying user element, the audio policy would need to account for video playing to "override" or there needs to be another role "volkey-alert" or some such

Changed in unity8 (Ubuntu):
importance: Critical → High
Jim Hodapp (jhodapp)
Changed in media-hub:
status: New → Invalid
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

The ideal here is changing the indicator to give us a hint about the current active role, and only play the notification sound when the active role is 'alert'.

We shouldn't play any audio notification when changing sound for multimedia/alarm, as that is really annoying (imagine yourself increasing the volume of a awesome video/music and getting all those annoying beeps until you get to the right volume level).

Revision history for this message
Ted Gould (ted) wrote :

Going to change this bug into "use the alert role" bug. Basically the sounds coming out of unity8 notification today are using the default role, multimedia, which media-hub interprets as another stream so it pauses the audio. Instead unity8 should be using the alert role. That way the video won't pause.

The second part is now bug 1378961

no longer affects: media-hub
Michał Sawicz (saviq)
Changed in unity8 (Ubuntu):
status: Confirmed → Triaged
Revision history for this message
Michał Sawicz (saviq) wrote :

Can anyone please point to *how* we should change the role?

Also, currently it's the telephony stack that plays the incoming call and message sound. Since snap-decisions can play sounds now, should they? Would they all be the same role? How would we define whether the sound is supposed to be looped vs. not?

Revision history for this message
Mirco Müller (macslow) wrote :

I think that notifications should play such sounds, since we now have the sound-hint support. Thus I agree with saviq, that incoming call/message jingles should be "offloaded" to notifications to be played.

Playback in snap-decision type notifications would loop sound-playback until said notification is closed. All other notification-types would play back only a single iteration of the attached sound.

Revision history for this message
Mirco Müller (macslow) wrote :

This also solves any potential synchronization issues between sound-playback and notification display.

Revision history for this message
Michał Sawicz (saviq) wrote :

Sprouted bug #1379248 from this.

kevin gunn (kgunn72)
Changed in unity8 (Ubuntu):
assignee: nobody → Andrea Cimitan (cimi)
Andrea Cimitan (cimi)
Changed in unity8 (Ubuntu):
status: Triaged → In Progress
Revision history for this message
Albert Astals Cid (aacid) wrote :

Seems this has been fixed already, at least i can not reproduce.

Please comment if you still can.

Changed in unity8 (Ubuntu):
assignee: Andrea Cimitan (cimi) → nobody
status: In Progress → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for unity8 (Ubuntu) because there has been no activity for 60 days.]

Changed in unity8 (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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