package com.ruoyi.media.service;
|
|
import com.dtflys.forest.annotation.Var;
|
import com.ruoyi.media.domain.*;
|
|
import java.lang.reflect.MalformedParameterizedTypeException;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IMediaService {
|
/**
|
* 增加路径
|
* 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();
|
|
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);
|
}
|