| | |
| | | package com.ard.vtdu.service.impl; |
| | | |
| | | import com.ard.common.utils.DateUtils; |
| | | import com.ard.vtdu.config.MediamtxConfig; |
| | | import com.ard.vtdu.domain.ArdVtdu; |
| | | import com.ard.vtdu.domain.Conf; |
| | | import com.ard.vtdu.mapper.ArdVtduMapper; |
| | | import com.ard.vtdu.service.IArdVtduService; |
| | | import com.ard.vtdu.service.IMediaService; |
| | | import com.ard.vtdu.service.IArdMediaService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.scheduling.annotation.Scheduled; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | @Resource |
| | | private ArdVtduMapper ardVtduMapper; |
| | | @Resource |
| | | private IMediaService mediaService; |
| | | private IArdMediaService mediaService; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | @Scheduled(cron = "0/5 * * * * ?") |
| | | public void syncMediamtx() { |
| | | log.info("定时同步MediaMTX任务"); |
| | | log.debug("定时同步MediaMTX任务"); |
| | | List<String> nameList = mediaService.getNameList(); |
| | | List<ArdVtdu> ardVtduList = selectArdVtduList(new ArdVtdu()); |
| | | asyncMediaMTX(ardVtduList, nameList); |