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"; }
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); }
public VideoSettings() { InitializeComponent(); DataContext = this; Instance = this; _AvailableCodecs = AvailableCodecs; _AvailableVideoSourceKinds = AvailableVideoSourceKinds; _AvailableVideoSources = AvailableVideoSources; RefreshCodecs(); RefreshVideoSources(); }
void HideRegionSelector(object sender, RoutedEventArgs e) { RegionSelector.Hide(); VideoSettings.RefreshVideoSources(); }
void AudioVideoSelectionChanged(object sender, SelectionChangedEventArgs e) { VideoSettings.CheckFunctionalityAvailability(); }