liusuyi
2026-05-30 f4f4fc53260eb67483dce406a963628273786a61
ard-modules/ard-modules-zlm/src/main/java/com/ard/zlm/service/impl/SourcePlayServiceImpl.java
@@ -2,6 +2,7 @@
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;
@@ -26,11 +27,11 @@
    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);
        }
    }