MediaProjectionAudioSourceFactory

@RequiresApi(value = 29)
class MediaProjectionAudioSourceFactory(mediaProjection: MediaProjection, effects: Set<UUID> = defaultAudioEffects) : AudioRecordSourceFactory

A factory to create a MediaProjectionAudioSource.

If you want to share the MediaProjection to another source. You must use this factory.

Parameters

mediaProjection

The media projection

effects

The audio effects to apply

Constructors

Link copied to clipboard
constructor(mediaProjection: MediaProjection, effects: Set<UUID> = defaultAudioEffects)

Functions

Link copied to clipboard
open suspend override fun create(context: Context): IAudioSourceInternal

Creates an IAudioSourceInternal instance.

Link copied to clipboard
open override fun isSourceEquals(source: IAudioSourceInternal?): Boolean

Whether the source that will be created by create is equal to another source.