| | |
| | | |
| | | import com.ard.common.core.constant.HttpStatus; |
| | | import com.ard.qs.api.domain.QsDevice; |
| | | import com.ard.work.api.domian.ArdChannel; |
| | | import com.ard.zlm.api.domain.StreamInfo; |
| | | import com.ard.zlm.service.ErrorCallback; |
| | | import com.ard.zlm.service.IMediaServerService; |
| | |
| | | private IMediaServerService mediaServerService; |
| | | |
| | | @Override |
| | | public void play(QsDevice device, Boolean record, ErrorCallback<StreamInfo> callback) { |
| | | public void play(ArdChannel ardChannel, Boolean record, ErrorCallback<StreamInfo> callback) { |
| | | try { |
| | | mediaServerService.play(device, record, callback); |
| | | mediaServerService.play(ardChannel, record, callback); |
| | | } catch (Exception e) { |
| | | log.error("[点播失败] {}({})", device.getDeviceName(), device.getId(), e); |
| | | log.error("[点播失败] {}({})", ardChannel.getName(), ardChannel.getId(), e); |
| | | callback.run(HttpStatus.ERROR, "播放失败", null); |
| | | } |
| | | } |