DescriptionThis fix the issue that video frame is still sent to peer when activity
is in background in WebView.
Previously, we couldn't trigger renderer's WasHidden/WasShown event in WebView because the compositer can't stop there, so the dedicated pause video IPC message was added as a work around.
Now we override the blink's page visibility, so renderer's onHide/onShow methods could be called, and compositer is still running. This patch
- Call ContentViewCore.onHide()/onShow() in AwContents
- Video playback is changed to hook into WasHidden() in RenderMediaPlayerManager to pause video, and remove a bunch of video pause code in browser side.
So, The pause of video capture and playback are both handled in renderer side now. There is no dedicated pause video IPC message.
BUG=414506
Committed: https://crrev.com/54193f591d4c60750fb5c7f98761b3b72a3f0577
Cr-Commit-Position: refs/heads/master@{#296792}
Patch Set 1 #
Total comments: 1
Patch Set 2 : #
Total comments: 4
Patch Set 3 : #Patch Set 4 : also make video playback consistent #
Total comments: 4
Patch Set 5 : sync #Messages
Total messages: 49 (7 generated)
|