Keep track of multiple players
ClosedPublic

Authored by broulik on Jul 19 2018, 6:18 AM.

Details

Summary

Currently, when starting another video, media controls are transfered to the new player. If the player goes away (tab closed, navigate away, etc) media controls are disabled. This patch makes it keep track of all players that were playing and transfers control to the previous player instead.
Also have "stop" do the same if there's another player available.

Test Plan

Started watching a video, opened a video in a second tab, closed that tab, controlled previous player again.
Verified it didn't resume the previous video if it was paused.

Diff Detail

Repository
R856 Plasma Browser Integration
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Jul 19 2018, 6:18 AM
Restricted Application added a project: Plasma. · View Herald TranscriptJul 19 2018, 6:18 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
broulik requested review of this revision.Jul 19 2018, 6:18 AM
davidedmundson accepted this revision.Sep 7 2018, 8:29 PM
This revision is now accepted and ready to land.Sep 7 2018, 8:29 PM
This revision was automatically updated to reflect the committed changes.