feat: 现在停止视频流会使摄像头休眠,配置过程会唤醒,配置完后再休眠
This commit is contained in:
@@ -156,6 +156,8 @@ public class HttpVideoStreamService : BackgroundService
|
||||
throw new Exception("Please config camera first");
|
||||
}
|
||||
_cameraEnable = isEnabled;
|
||||
if (_cameraEnable) await _camera.WakeUp();
|
||||
else await _camera.Sleep();
|
||||
await _camera.EnableHardwareTrans(_cameraEnable);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user