DescriptionPlumb audio focus support for spitzer clients.
Adds a new audio effects parameters "FOCUSABLE" which can be set by clients
which support platform specific audio focus concepts. This tells the
AudioRendererHost that it should check with the focus controller before
allowing audio playback.
MediaWebContentsObserverAndroid is the focus controller in this case. Since
audio streams can be created far ahead of player creation, the controller
must support deferred responses for the focus request.
Focus grants are handled per render frame. I.e. the ARH requests focus
status using a render pid+render frame id and internally the MWCOA vends
status based on the frame id (once approved). While a render frame has an
active (playing) media session, all focus requests are granted.
BUG=529887
TEST=audio doesn't play until after focus request.
Patch Set 1 : Fix crash, plumb. #
Total comments: 6
Patch Set 2 : Detangle. Cleanup. #
Total comments: 3
Patch Set 3 : Rebased. #Patch Set 4 : Rebase. #
Total comments: 6
Messages
Total messages: 22 (7 generated)
|