private void SetupVoipContext() { if (_voipChannel == null) { var renderResolver = new Func <IVideoRenderHelper>(() => new VideoRenderHelper()); var voipCoordinator = new VoipCoordinator(); _voipContext = new VoipContext(this, null, renderResolver, voipCoordinator); _voipChannel = new VoipChannel(this, null, _voipContext); } if (_mediaSettingsChannel == null) { _mediaSettingsChannel = new MediaSettingsChannel(this, null, _voipContext); } }
public MediaSettingsChannel(VoipContext voipContext) { _voipContext = voipContext; }
public async Task EnterState(VoipContext context) { Context = context; await OnEnteringState(); }