‘liusuyi’
2023-08-12 e82cfae81d016a5171224f1358eba663d2f60c68
ard-work/src/main/java/com/ruoyi/media/service/IMediaService.java
@@ -1,4 +1,5 @@
package com.ruoyi.media.service;
import com.ruoyi.media.domain.Items;
import com.ruoyi.media.domain.RtspSession;
import com.ruoyi.media.domain.StreamInfo;
@@ -6,21 +7,36 @@
import java.util.List;
public interface IMediaService {
    /**
     * 增加路径
     * name 名称
     * rtspPath rtsp地址
     * mode 模式:实时/按需
     * isCode 是否转码
     * 刘苏义
     * 2023/8/12 13:56:52
     */
    public String addPath(String name, String rtspPath, String mode, String isCode);
    public String addPath(String name, String rtspPath,String mode);
    StreamInfo getPathInfo(String name);
    public void removePath(String[] names);
    public List<StreamInfo>paths();
    public List<StreamInfo> paths();
    public List<Items> rtspconns();
    public List<Items> rtspsessions();
    RtspSession getRtspSessionById(String sessionId);
    List<RtspSession>getPushStreams();
    List<RtspSession>getPullStreams();
    List<RtspSession> getPushStreams();
    List<StreamInfo>getPushStreamList();
    List<StreamInfo>getPullStreamList();
    List<RtspSession> getPullStreams();
    List<StreamInfo> getPushStreamList();
    List<StreamInfo> getPullStreamList();
    Boolean kickRtspSession(String sessionId);