| | |
| | | package com.ruoyi.media.service; |
| | | import com.ruoyi.media.domain.Items; |
| | | import com.ruoyi.media.domain.RtspSession; |
| | | |
| | | import com.ruoyi.media.domain.*; |
| | | |
| | | 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); |
| | | public void removePath(String name); |
| | | public List<Items>paths(); |
| | | StreamInfo getPathInfo(String name); |
| | | |
| | | public void removePath(String[] names); |
| | | |
| | | public List<StreamInfo> paths(); |
| | | |
| | | public List<Items> rtspconns(); |
| | | |
| | | public List<Items> rtspsessions(); |
| | | |
| | | RtspSession getRtspSessionById(String sessionId); |
| | | List<RtspSession>getPushStreams(); |
| | | List<RtspSession>getPullStreams(); |
| | | WebrtcSession getWebrtcSessionById(String sessionId); |
| | | RtmpSession getRtmpSessionById(String sessionId); |
| | | List<RtspSession> getPushStreams(); |
| | | |
| | | List<RtspSession> getPullStreams(); |
| | | |
| | | List<StreamInfo> getPushStreamList(); |
| | | |
| | | List<StreamInfo> getPullStreamList(); |
| | | |
| | | Boolean kickRtspSession(String sessionId); |
| | | Boolean kickRtmpSession(String sessionId); |
| | | Boolean kickWebrtcSession(String sessionId); |
| | | } |