public static VideoInfo GetVideoInfo(string sourceName) { VideoInfo videoInfo = null; ILocalDataManager localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); ConfigManager configManager = localDataManager.GetSettingConfigData(); if (sourceName == configManager.MainVideoInfo.VideoDevice) { return(configManager.MainVideoInfo); } if (sourceName == configManager.DocVideoInfo.VideoDevice) { return(configManager.DocVideoInfo); } if (sourceName == "DesktopCapture") { videoInfo.DisplayWidth = 1280; videoInfo.DisplayHeight = 720; videoInfo.VideoBitRate = 1200; videoInfo.ColorSpace = (int)VideoColorSpace.YUY2; return(videoInfo); } return(videoInfo); }
public VideoSettingModel(VideoSettingView view) { _view = view; _cameraDeviceList = new List <VideoDeviceModel>(); _docDeviceList = new List <VideoDeviceModel>(); _s = new InputSimulator(); _configManager = new ConfigManager(); _meetingSdkAgent = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); _deviceNameAccessor = DependencyResolver.Current.GetService <IDeviceNameAccessor>(); _deviceConfigLoader = DependencyResolver.Current.GetService <IDeviceConfigLoader>(); CameraDeviceList = new ObservableCollection <string>(); DocDeviceList = new ObservableCollection <string>(); CameraColorSpaces = new ObservableCollection <VideoFormatModel>(); DocColorSpaces = new ObservableCollection <VideoFormatModel>(); VedioParameterVgaList = new ObservableCollection <string>(); DocParameterVgaList = new ObservableCollection <string>(); VedioParameterRatesList = new ObservableCollection <int>(); LoadCommand = new DelegateCommand(Loading); WindowKeyDownCommand = new DelegateCommand <object>(WindowKeyDownHandler); CheckCameraDeviceCommand = DelegateCommand.FromAsyncHandler(CheckCameraDeviceAsync); CheckDocDeviceCommand = DelegateCommand.FromAsyncHandler(CheckDocDeviceAsync); //CheckCameraColorSpaceCommand = new DelegateCommand(CheckCameraColorSpace); //CheckDocColorSpaceCommand = new DelegateCommand(CheckDocColorSpace); GoBackCommand = new DelegateCommand(GoBack); }
public LoginViewModel(LoginView loginView) { _loginView = loginView; _netCheckService = DependencyResolver.Current.GetService <INetCheckService>(); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); _bmsService = DependencyResolver.Current.GetService <IBms>(); _meetingSdkAgent = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); _eventAggregator = DependencyResolver.Current.GetService <IEventAggregator>(); _windowManager = DependencyResolver.Current.GetService <IMeetingWindowManager>(); LoginingCommand = DelegateCommand.FromAsyncHandler(LoginingAsync); //RegisterEvents(); GlobalData.Instance.ModeList = new List <Mode> { new Mode { Name = "自动", ReceiveCommand = true }, new Mode { Name = "键盘", ReceiveCommand = false } }; GlobalData.Instance.CurrentMode = GlobalData.Instance.ModeList.FirstOrDefault(); }
public void Initialize(ILocalDataManager dataManager) { _dataManager = dataManager; // Load initial profile LoadProfile(); }
public JoinClassControlViewModel(JoinClassView view, JoinClassControl jccView, MeetingItem item) { _view = view; _meetingId = item.MeetingId; _meetingService = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); Load(item); WindowKeyDownCommand = new DelegateCommand <object>(WindowKeyDownHandler); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); }
public JoinClassViewModel(JoinClassView view) { _view = view; _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); _meetingSdkAgent = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); MeetingInvitationInfo = new ObservableCollection <MeetingList>(); LoadCommand = DelegateCommand.FromAsyncHandler(LoadAsync); JoinClassCommand = new DelegateCommand(JoinClass); }
public JoinClassView() { _view = this; InitializeComponent(); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); _meetingService = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); DataContext = new JoinClassViewModel(this); txt_classNo.Focus(); EventBinding(); }
public LiveSettingModel(LiveSettingView view) { _view = view; _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); LiveDisplaySource = new ObservableCollection <string>(); LiveRateSource = new ObservableCollection <int>(); LoadCommand = DelegateCommand.FromAsyncHandler(Loading); WindowKeyDownCommand = new DelegateCommand <object>(WindowKeyDownHandler); GoBackCommand = new DelegateCommand(GoBack); SelectRecordPathCommand = new DelegateCommand(SelectRecordPath); }
public BaseInfoSettingModel(BaseInfoSettingView view) { _s = new InputSimulator(); _view = view; _bms = DependencyResolver.Current.GetService <IBms>(); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); LoadCommand = DelegateCommand.FromAsyncHandler(Loading); WindowKeyDownCommand = new DelegateCommand <object>(WindowKeyDownHandler); CheckConnectCommand = DelegateCommand.FromAsyncHandler(CheckConnectAsync); GoBackCommand = new DelegateCommand(GoBack); }
private InvitationService() { _meetingSdkAgent = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); _windowManager = DependencyResolver.Current.GetService <IMeetingWindowManager>(); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); _manualPushLive = DependencyResolver.Current.Container.ResolveNamed <IPushLive>("ManualPushLive"); _localRecordLive = DependencyResolver.Current.GetService <IRecordLive>(); _eventAggregator = DependencyResolver.Current.GetService <IEventAggregator>(); _eventAggregator.GetEvent <UiTransparentMsgReceivedEvent>().Subscribe(OnUiMsgReceivedEventHandler); _eventAggregator.GetEvent <MeetingInvitationEvent>().Subscribe(_meetingManagerService_InvitationReceivedEvent); }
public CourseTipView(ClassScheduleView view, Course course) { _view = view; _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); InitializeComponent(); _meetingService = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); if (course.MainClassroomId <= 0) { return; } DataContext = new ClassScheduleTipViewModel(course); }
public ClassModeViewModel() { _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); _meetingService = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); _windowManager = DependencyResolver.Current.GetService <IMeetingWindowManager>(); _remoteRecord = DependencyResolver.Current.GetService <IRemoteRecord>(); _deviceNameAccessor = DependencyResolver.Current.GetService <IDeviceNameAccessor>(); CheckClassModeCommand = new DelegateCommand <object>(CheckClassModeAsync); ShareCommand = new DelegateCommand(ShareAsync); RecordCommand = DelegateCommand.FromAsyncHandler(RecordAsync); InitClassModeItems(); InitToggleItems(); }
public NetworkSettingModel(NetworkSettingView view) { _s = new InputSimulator(); _view = view; _netInfos = new List <NetInfo>(); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); _netCheckService = DependencyResolver.Current.GetService <INetCheckService>(); NetWorkCardSource = new ObservableCollection <string>(); LoadCommand = DelegateCommand.FromAsyncHandler(Loading); WindowKeyDownCommand = new DelegateCommand <object>(WindowKeyDownHandler); AutoGetDnsCommand = DelegateCommand.FromAsyncHandler(AutoGetDns); ManualGetDnsCommand = DelegateCommand.FromAsyncHandler(ManualGetDns); NetCardChangeCommand = DelegateCommand.FromAsyncHandler(ResetAsync); CheckNetCommand = DelegateCommand.FromAsyncHandler(CheckNetAsync); GoBackCommand = new DelegateCommand(GoBack); }
public static AudioInfo GetAudioInfo(string sourceName) { AudioInfo audioInfo = null; ILocalDataManager localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); ConfigManager configManager = localDataManager.GetSettingConfigData(); if (sourceName == configManager.AudioInfo.AudioSammpleDevice || sourceName == configManager.AudioInfo.DocAudioSammpleDevice) { return(configManager.AudioInfo); } audioInfo = new AudioInfo() { AAC = 64000, SampleRate = 48000, }; return(audioInfo); }
public AudioSettingModel(AudioSettingView view) { _view = view; Aac = new ObservableCollection <int>(); SampleRate = new ObservableCollection <int>(); AudioSource = new ObservableCollection <string>(); DocAudioSource = new ObservableCollection <string>(); AudioOutPutDevice = new ObservableCollection <string>(); _s = InputSimulatorManager.Instance.InputSimu; _configManager = new ConfigManager(); _meetingSdkAgent = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); _deviceNameAccessor = DependencyResolver.Current.GetService <IDeviceNameAccessor>(); _deviceConfigLoader = DependencyResolver.Current.GetService <IDeviceConfigLoader>(); LoadCommand = new DelegateCommand(Loading); WindowKeyDownCommand = new DelegateCommand <object>(WindowKeyDownHandler); GoBackCommand = new DelegateCommand(GoBack); CheckPeopleSourceDeviceCommand = new DelegateCommand(CheckPeopleSourceDevice); CheckDocSourceDeviceCommand = new DelegateCommand(CheckDocSourceDevice); }
private DeviceSettingsChecker() { _meetingSdkAgent = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); }
public NetCheckService() { _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); }
public ServerPushLiveService() { _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); _meetingService = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); }
public LocalRecordService() { _meetingService = DependencyResolver.Current.GetService <IMeetingSdkAgent>(); _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); }
public RemoteRecordService() { _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>(); }