Video resumes playing after hanging up a call that was received while the video was playing
Bug #1411273 reported by
Brendan Donegan
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-
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
lp://staging/~jhodapp/media-hub/no-video-auto-resume
- PS Jenkins bot: Needs Fixing (continuous-integration)
- Ricardo Salveti (community): Approve
- Diff: 45 lines (+11/-5)
description: | updated |
Changed in canonical-devices-system-image: | |
importance: | Undecided → High |
milestone: | none → ww05-2015 |
status: | New → Confirmed |
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) |
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 |
Changed in canonical-devices-system-image: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
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) {:OffHook:
std::cout << "Got call started signal, pausing all multimedia sessions" << std::endl;
pause_all_multimedia_sessions();:OnHook:
std::cout << "Got call ended signal, resuming paused multimedia sessions" << std::endl;
resume_paused_multimedia_sessions();
switch (state) {
case CallMonitor:
break;
case CallMonitor:
break;
}
});