1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package com.ruoyi.media.service;
 
import com.ruoyi.media.domain.*;
 
import java.util.List;
import java.util.Map;
 
public interface IMediaV2Service {
    /**
     * 增加路径
     * name 名称
     * rtspPath rtsp地址
     * mode 模式:gpu硬解码/cpu软解码
     * isCode 是否转码
     * 刘苏义
     * 2023/8/12 13:56:52
     */
    Map<String, String> addPath(String name, String sourceUrl, String mode, String isCode);
 
    /**
     * 修改路径
     * name 名称
     * rtspPath rtsp地址
     * mode 模式:实时/按需
     * isCode 是否转码
     * 刘苏义
     * 2023/8/12 13:56:52
     */
    Map<String, String> editPath(String name, String sourceUrl, String mode, String isCode);
 
    StreamInfo getPathInfo(String name);
 
    void removePath(String[] names);
 
    void removePath(String name);
 
    List<StreamInfo> paths();
 
    List<String> getNameList();
 
    boolean checkNameExist(String name);
 
    RtspSession getRtspSessionById(String sessionId);
 
    WebrtcSession getWebrtcSessionById(String sessionId);
 
    RtmpSession getRtmpSessionById(String sessionId);
 
    List<StreamInfo> getPushStreamList();
 
    List<StreamInfo> getPullStreamList();
 
    Boolean kickRtspSession(String sessionId);
 
    Boolean kickRtmpSession(String sessionId);
 
    Boolean kickWebrtcSession(String sessionId);
 
    /**
     * 配置流媒体参数
     * 刘苏义
     * 2023/10/13 15:17:57
     */
    public String setConfig(Config config);
}