| | |
| | | import com.ard.common.core.redis.RedisCache; |
| | | import com.ard.device.camera.domain.ArdCamera; |
| | | import com.ard.device.camera.domain.CameraCmd; |
| | | import com.ard.device.channel.domain.ArdChannel; |
| | | import com.ard.device.channel.domain.VideoCompressionCfg; |
| | | import com.ard.device.component.sdk.common.GlobalVariable; |
| | | import com.ard.device.component.sdk.factory.CameraSDKFactory; |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | //获取通道列表 |
| | | public List<ArdChannel> getChannels(ArdCamera camera) { |
| | | try { |
| | | CameraSDK cameraSDK = cameraSDKFactory.createCameraSDK(camera.getFactory()); |
| | | return cameraSDK.getChannels(camera); |
| | | } catch (Exception ex) { |
| | | log.error("获取相机通道异常:{}", ex.getMessage()); |
| | | return null; |
| | | } |
| | | } |
| | | } |