MediaProjectionAudioSource
class MediaProjectionAudioSource(context: Context, projection: MediaProjection, val audioFormat: PcmAudioFormat = PcmAudioFormat(48_000, 2), capturedUid: Int? = null) : PcmAudioSource
Captures media/game playback allowed by other applications, using an authorized projection. The owner retains the projection; closing this audio source does not stop screen capture. This application's playback is excluded to prevent feedback or double-mixing asset audio.
Constructors
Link copied to clipboard
constructor(context: Context, projection: MediaProjection, audioFormat: PcmAudioFormat = PcmAudioFormat(48_000, 2), capturedUid: Int? = null)