Exemplo n.º 1
0
        private async void OnWindowLoaded(object sender, RoutedEventArgs e)
        {
            _mediaManager = new MediaManager(Dispatcher);
            logger.LogDebug("Media Manager Initialized.");
            _mediaManager.OnLocalVideoSampleReady  += LocalVideoSampleReady;
            _mediaManager.OnRemoteVideoSampleReady += RemoteVideoSampleReady;
            _mediaManager.OnLocalVideoError        += LocalVideoError;

            _musicOnHold = new MusicOnHold();

            await Initialize();

            if (_localVideoDevices.Items.Count == 0)
            {
                await Task.Run(LoadVideoDevices);
            }
        }
Exemplo n.º 2
0
 public RTPMediaSessionManager(MediaManager mediaManager, MusicOnHold musicOnHold)
 {
     _mediaManager = mediaManager;
     _musicOnHold  = musicOnHold;
 }