void SetDeviceSpeed(bool value, QTCaptureDeviceControlsSpeed speed) { var device = ControllableDevice; if (device == null) { return; } var control = device.AvcTransportControl; if (control == null) { return; } control.Speed = value ? speed : QTCaptureDeviceControlsSpeed.Stopped; device.AvcTransportControl = control; }
void SetDeviceSpeed (bool value, QTCaptureDeviceControlsSpeed speed) { var device = ControllableDevice; if (device == null) return; var control = device.AvcTransportControl; if (control == null) return; control.Speed = value ? speed : QTCaptureDeviceControlsSpeed.Stopped; device.AvcTransportControl = control; }