Esempio n. 1
0
 public override void Update()
 {
     if (IsDirty)
     {
         AVProLiveCameraPlugin.ApplyDeviceVideoSettingValue(_deviceIndex, _settingIndex, _currentValue, _isAutomatic);
         IsDirty = false;
     }
     else
     {
         AVProLiveCameraPlugin.UpdateDeviceVideoSettingValue(_deviceIndex, _settingIndex, out _currentValue, out _isAutomatic);
     }
 }
Esempio n. 2
0
    public override void Update()
    {
        float currentValue = _currentValue ? 1.0f : 0.0f;

        if (IsDirty)
        {
            AVProLiveCameraPlugin.ApplyDeviceVideoSettingValue(_deviceIndex, _settingIndex, currentValue, _isAutomatic);
            IsDirty = false;
        }
        else
        {
            AVProLiveCameraPlugin.UpdateDeviceVideoSettingValue(_deviceIndex, _settingIndex, out currentValue, out _isAutomatic);
            _currentValue = currentValue > 0.0f;
        }
    }