liusuyi
2026-06-02 f652169cc5d6501511eece5df57b7b396fd7a7ab
ard-modules/ard-modules-zlm/src/main/java/com/ard/zlm/service/IMediaServerService.java
@@ -1,8 +1,8 @@
package com.ard.zlm.service;
import com.ard.gb28181.api.domain.Device;
import com.ard.gb28181.api.domain.GbChannelDTO;
import com.ard.qs.api.domain.QsDevice;
import com.ard.zlm.domain.StreamChannel;
import com.ard.zlm.domain.StreamChannel;
import com.ard.work.api.domian.ArdChannel;
import com.ard.zlm.api.domain.*;
import com.ard.zlm.common.InviteSessionType;
@@ -336,11 +336,11 @@
    /**
     * gb28181 播放
     *
     * @param qsDevice
     * @param streamChannel
     * @param gbDevice
     * @param callback
     */
    void startGb28181Play(QsDevice qsDevice, Device gbDevice, ErrorCallback<StreamInfo> callback);
    void startGb28181Play(StreamChannel streamChannel, Device gbDevice, ErrorCallback<StreamInfo> callback);
    /**
     * 连接rtp服务
@@ -357,19 +357,34 @@
     * gb28181 停止点播
     *
     * @param type
     * @param qsDevice
     * @param streamChannel
     * @param device
     * @param stream
     */
    void stopGb28181Play(InviteSessionType type, QsDevice qsDevice, Device device, String stream);
    void stopGb28181Play(InviteSessionType type, StreamChannel streamChannel, Device device, String stream);
    /**
     * gb28181 播放(基于GbChannel,不依赖QS)
     */
    void startGb28181PlayByGbChannel(GbChannelDTO gbChannelDTO, Device gbDevice, ErrorCallback<StreamInfo> callback);
    void startGb28181PlayByGbChannel(StreamChannel streamChannel, Device gbDevice, ErrorCallback<StreamInfo> callback);
    /**
     * gb28181 停止点播(基于GbChannel,不依赖QS)
     */
    void stopGb28181PlayByGbChannel(InviteSessionType type, GbChannelDTO gbChannelDTO, Device device, String stream);
    void stopGb28181PlayByGbChannel(InviteSessionType type, StreamChannel streamChannel, Device device, String stream);
    /**
     * 通过通道ID拉流代理(简化传参,自动根据通道类型确定app/url等参数)
     *
     * @param channelId 通道ID
     * @param callback  回调
     */
    void streamPullPlayByChannelId(String channelId, ErrorCallback<StreamInfo> callback);
    /**
     * 通过通道ID停止拉流代理
     *
     * @param channelId 通道ID
     */
    void stopStreamPullPlayByChannelId(String channelId);
}