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;
        }
    }); 


** Also affects: media-hub (Ubuntu RTM)
   Importance: Undecided
       Status: New

** Also affects: canonical-devices-system-image
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1411273

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1411273/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to