Video resumes playing after hanging up a call that was received while the video was playing

Bug #1411273 reported by Brendan Donegan
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Jim Hodapp
media-hub (Ubuntu)
Fix Released
Undecided
Jim Hodapp
media-hub (Ubuntu RTM)
Fix Released
Undecided
Jim Hodapp

Bug Description

Steps to reproduce:

1. Play a video
2. Place a call to the device under test and answer it
3. After a while, hang up the call

Expected result:

We have to switch back to the mediaplayer and press play for the video to resume

Actual result:

The video resumes playing in the background despite the fact it's not in focus. After switching back to the mediaplayer, the video is playing but the play button is shown rather than the pause button.

current build number: 198
device name: krillin
channel: ubuntu-touch/ubuntu-rtm/14.09-proposed
last update: 2015-01-15 15:21:04
version version: 198
version ubuntu: 20150115
version device: 20150113-2a2e4c5
version custom: 20150112-494-23-173

Related branches

Revision history for this message
Ricardo Salveti (rsalveti) wrote :

This is happening because we are pausing and resuming all multimedia sessions, even the video player ones. We need to add an additional logic when resuming the session, to avoid resuming video related sessions.

    d->call_monitor->on_change([this](CallMonitor::State state) {
        switch (state) {
        case CallMonitor::OffHook:
            std::cout << "Got call started signal, pausing all multimedia sessions" << std::endl;
            pause_all_multimedia_sessions();
            break;
        case CallMonitor::OnHook:
            std::cout << "Got call ended signal, resuming paused multimedia sessions" << std::endl;
            resume_paused_multimedia_sessions();
            break;
        }
    });

description: updated
Changed in canonical-devices-system-image:
importance: Undecided → High
milestone: none → ww05-2015
status: New → Confirmed
Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu):
status: New → Confirmed
Changed in media-hub (Ubuntu RTM):
status: New → Confirmed
Changed in canonical-devices-system-image:
assignee: nobody → Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu):
assignee: nobody → Jim Hodapp (jhodapp)
Changed in media-hub (Ubuntu RTM):
assignee: nobody → Jim Hodapp (jhodapp)
Jim Hodapp (jhodapp)
Changed in canonical-devices-system-image:
status: Confirmed → In Progress
Changed in media-hub (Ubuntu):
status: Confirmed → In Progress
Changed in media-hub (Ubuntu RTM):
status: Confirmed → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package media-hub - 2.0.0+15.04.20150116-0ubuntu1

---------------
media-hub (2.0.0+15.04.20150116-0ubuntu1) vivid; urgency=low

  [ Jim Hodapp ]
  * Don't auto-resume playback of videos after a phone call ends. (LP:
    #1411273)
 -- Ubuntu daily release <email address hidden> Fri, 16 Jan 2015 18:17:56 +0000

Changed in media-hub (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package media-hub - 2.0.0+15.04.20150116~rtm-0ubuntu1

---------------
media-hub (2.0.0+15.04.20150116~rtm-0ubuntu1) 14.09; urgency=low

  [ Jim Hodapp ]
  * Don't auto-resume playback of videos after a phone call ends. (LP:
    #1411273)
 -- Ubuntu daily release <email address hidden> Fri, 16 Jan 2015 18:17:56 +0000

Changed in media-hub (Ubuntu RTM):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: In Progress → Fix Released
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.