Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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();
        }
Example #4
0
    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>();
 }
Example #6
0
 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);
 }
Example #7
0
 public JoinClassView()
 {
     _view = this;
     InitializeComponent();
     _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>();
     _meetingService   = DependencyResolver.Current.GetService <IMeetingSdkAgent>();
     DataContext       = new JoinClassViewModel(this);
     txt_classNo.Focus();
     EventBinding();
 }
Example #8
0
 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);
 }
Example #10
0
        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);
        }
Example #11
0
 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);
 }
Example #12
0
        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();
        }
Example #13
0
 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);
 }
Example #14
0
        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);
        }
Example #15
0
        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);
        }
Example #16
0
 private DeviceSettingsChecker()
 {
     _meetingSdkAgent  = DependencyResolver.Current.GetService <IMeetingSdkAgent>();
     _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>();
 }
Example #17
0
 public NetCheckService()
 {
     _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>();
 }
Example #18
0
 public ServerPushLiveService()
 {
     _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>();
     _meetingService   = DependencyResolver.Current.GetService <IMeetingSdkAgent>();
 }
Example #19
0
 public LocalRecordService()
 {
     _meetingService   = DependencyResolver.Current.GetService <IMeetingSdkAgent>();
     _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>();
 }
Example #20
0
 public RemoteRecordService()
 {
     _localDataManager = DependencyResolver.Current.GetService <ILocalDataManager>();
 }