示例#1
0
        public DemoVideoStreamSession(ISettingsManager settingsManager, DemoConnectionManager demoConnectionManager, Guid sessionId, string deviceId, int channelId, Guid streamId) :
            base(settingsManager, demoConnectionManager, sessionId, deviceId, channelId, streamId)
        {
            UpdateFrameRateOnDevice();

            _settingsManager.OnSettingsChanged += _settingsManager_OnSettingsChanged;
        }
示例#2
0
 public BaseDemoStreamSession(ISettingsManager settingsManager, DemoConnectionManager demoConnectionManager, Guid sessionId, string deviceId, int channelId, Guid streamId)
 {
     Id = sessionId;
     _settingsManager       = settingsManager;
     _demoConnectionManager = demoConnectionManager;
     _deviceId = deviceId;
     _streamId = streamId;
     Channel   = channelId;
     try
     {
         _demoConnectionManager.StartLiveStream(Channel);
     }
     catch (Exception ex)
     {
         throw new ConnectionLostException(ex.Message + ex.StackTrace);
     }
 }
 public InputPoller(IEventManager eventManager, DemoConnectionManager demoConnectionManager)
 {
     _demoConnectionManager = demoConnectionManager;
     _eventManager          = eventManager;
     InitEventHandlers();
 }
 public DemoMetadataStreamSession(ISettingsManager settingsManager, DemoConnectionManager demoConnectionManager, Guid sessionId, string deviceId, Guid streamId, int channel) :
     base(settingsManager, demoConnectionManager, sessionId, deviceId, channel, streamId)
 {
 }
示例#5
0
 public DemoMicrophoneStreamSession(ISettingsManager settingsManager, DemoConnectionManager demoConnectionManager, Guid sessionId, string deviceId, Guid streamId) :
     base(settingsManager, demoConnectionManager, sessionId, deviceId, DemoDeviceConstants.DeviceAudioChannel, streamId)
 {
 }
 public DemoSpeakerStreamSession(ISettingsManager settingsManager, DemoConnectionManager demoConnectionManager, Guid sessionId, string deviceId, Guid streamId) :
     base(settingsManager, demoConnectionManager, sessionId, deviceId, DemoDeviceConstants.DeviceSpeakerChannel, streamId)
 {
 }