DescriptionAndroid audio playout now supports non-call media streams.
The default (preferred) stream type for output audio is STREAM_VOICE_CALL since the WebRTC stack is mainly intended for VoIP calls. But if the user wants to run in another mode than COMM mode, we now accept it and change the stream type to STREAM_MUSIC instead. It can e.g. be suitable for applications that does not record audio or if a call shall be casted to a Chromecast device.
The solution is somewhat experimental.
NOTRY=TRUE
BUG=webrtc:4767
Committed: https://crrev.com/872f614111f436d15e29516ce19c3b63d25b8639
Cr-Commit-Position: refs/heads/master@{#14613}
Patch Set 1 #Patch Set 2 : nit #
Total comments: 2
Patch Set 3 : Adding support for SetCommunicationMode in AudioManager #
Messages
Total messages: 17 (8 generated)
|