DescriptionCurrently when WebRTC isn't visible (app is in background or tab is not visible) in chrome Android, we stop sending captured video frame, but still hold the camera, this makes camera can not be used by other apps.
This patch releases the camera on pause, and allocate it again when resume, since SuspendDevices() is only called in Android, this is Android only behavior.
BUG=417659
Committed: https://crrev.com/0817b18c54feec8f6c484fa787c3ace56b107ab7
Cr-Commit-Position: refs/heads/master@{#297933}
Patch Set 1 #
Total comments: 19
Patch Set 2 : #
Total comments: 15
Patch Set 3 : address comments #Patch Set 4 : sync #
Messages
Total messages: 14 (3 generated)
|