You can also enable capture on all players by callingĪtAllowedCapturePolicy(AudioAttributes.ALLOW_CAPTURE_BY_ALL).To enable capture on all players, includeĪndroid:allowAudioPlaybackCapture="true" in the app's.Which allows other apps to capture playback. The player producing the audio must set its usage The audio coming from an app can be captured only if the app meets these requirements: Usage You can configure an app to prevent other apps from capturing its audio. Likewise, you cannot use addMatchingUid() and excludeUid()Īt the same time. Note that you cannot use the addMatchingUsage() and excludeUsage() methods Call the method multiple times to specify more than one UID. Pass a UID to AudioPlaybackCaptureConfiguration.excludeUid() to forbid capturing that UID.To only capture apps with a specific UID. Pass a UID to AudioPlaybackCaptureConfiguration.addMatchingUid(). Call the method multiple times to specify more than one usage.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |