Allow MediaSession in iframes to be routed
This CL allows MediaSession in iframes to be routed, as per spec change: https://github.com/WICG/mediasession/pull/149 To achieve this goal, class MediaSessionServiceRouter is added for selecting which MediaSession object to route. The current MediaSessionService routing strategy is: * If the top-level frame uses MediaSession API, always select the top-level session. * If the top-level frame has no MediaSession, select one of an audio-producing frame, and route its session (or null if the frame does not use MediaSession API). CL explanation: https://docs.google.com/a/google.com/document/d/1Ht6DxjOcfBctfRT3_wOkwGoNUaJY-Q8K18MV3xdAh_8/edit?usp=sharing BUG=670319 Review-Url: https://codereview.chromium.org/2526533002 Cr-Commit-Position: refs/heads/master@{#436266}
Showing
Please register or sign in to comment