DescriptionAdd power monitoring to the Cast VideoToolbox encoder.
Chromium provides PowerObserver and PowerMonitor objects to allow
subsystems to react to power suspend and resume events. On iOS this
actually tracks app lifecycle events for backgrounding.
The patch adds a power observer that destroys the compression session
on power suspend events and re-initializes the compression session on
power resume events. This allows the encoder to properly transition to
the background on iOS and resume when the app comes back to the
foreground.
Note that for this to work overall, the sender client must create a
background task to allow networking to continue. Otherwise the receiver
will timeout per spec.
R=miu@chromium.org
BUG=477895
Committed: https://crrev.com/5f83e5beada49c0c18e2162478992098f4f3323d
Cr-Commit-Position: refs/heads/master@{#326938}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Move PowerObserver implementation directly in the encoder. #
Total comments: 2
Patch Set 3 : Prevent session reset while power suspended. Unit tests. #
Total comments: 2
Patch Set 4 : Rebase on latest version of 1094403002. #
Messages
Total messages: 18 (2 generated)
|