| | |
| | | |
| | | import com.ard.common.constant.HttpStatus; |
| | | import com.ard.common.core.page.TableDataInfo; |
| | | import com.ard.tianyu.config.TyConfiguration; |
| | | import com.ard.tianyu.model.cache.TyTcpServerCache; |
| | | import com.ard.tianyu.model.receiver.BoxInfoReceiver; |
| | | import com.ard.tianyu.model.receiver.BoxStreamUrlReceiver; |
| | | import com.ard.tianyu.service.ITyService; |
| | |
| | | private MediaClient mediaClient; |
| | | @Resource |
| | | private ITyService tyService; |
| | | @Resource |
| | | private TyConfiguration tyConfiguration; |
| | | @Value("${mediamtx.host}") |
| | | private String mediamtxHost; |
| | | |
| | |
| | | } |
| | | |
| | | //同步无人机推流到流媒体 |
| | | @Scheduled(cron = "0/20 * * * * ?") |
| | | // @Scheduled(cron = "0/20 * * * * ?") |
| | | public void syncVtdu() { |
| | | if (!TyTcpServerCache.getTcpServerCache(tyConfiguration.getTcpserver() + ":" + tyConfiguration.getTcpport())) { |
| | | return; |
| | | } |
| | | log.info("定时同步MediaMTX任务开始"); |
| | | List<String> nameList = getNameList(); |
| | | List<BoxInfoReceiver> boxList = tyService.getBoxList(); |