예제 #1
0
        public void Refresh(object sender = null, EventArgs e = null)
        {
            VideoSettings.RefreshVideoSources();

            VideoSettings.RefreshCodecs();

            AudioSettings.RefreshAudioSources();

            // Status
            Status.Content =
                $"{VideoSettings.AvailableCodecs.Count} Encoder(s) and {AudioSettings.AvailableAudioSources.Count - 1} AudioDevice(s) found";
        }
예제 #2
0
        public void Refresh(object sender = null, EventArgs e = null)
        {
            VideoSettings.RefreshVideoSources();

            VideoSettings.RefreshCodecs();

            AudioSettings.RefreshAudioSources();

            // Status
            Status.Content = string.Format("{0} Encoder(s) and {1} AudioDevice(s) found",
                                           VideoSettings.AvailableCodecs.Count,
                                           AudioSettings.AvailableAudioSources.Count - 1);
        }
예제 #3
0
        public VideoSettings()
        {
            InitializeComponent();

            DataContext = this;

            Instance = this;

            _AvailableCodecs           = AvailableCodecs;
            _AvailableVideoSourceKinds = AvailableVideoSourceKinds;
            _AvailableVideoSources     = AvailableVideoSources;

            RefreshCodecs();

            RefreshVideoSources();
        }
예제 #4
0
 void HideRegionSelector(object sender, RoutedEventArgs e)
 {
     RegionSelector.Hide();
     VideoSettings.RefreshVideoSources();
 }
예제 #5
0
 void AudioVideoSelectionChanged(object sender, SelectionChangedEventArgs e)
 {
     VideoSettings.CheckFunctionalityAvailability();
 }