invoke

suspend operator fun invoke(previousStreamer: SingleStreamer, isAudioEnable: Boolean): SingleStreamer

Build a new SingleStreamer based on audio and video preferences.

Only create a new streamer if the previous one is not the same type.

It releases the previous streamer if a new one is created.

Parameters

previousStreamer

Previous streamer to check if we need to create a new one.