panlinlin
2021-01-05 730a64be077b51add311b9d880bb23f5162253ec
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
package com.genersoft.iot.vmp.storager;
 
import com.genersoft.iot.vmp.common.StreamInfo;
import com.genersoft.iot.vmp.conf.MediaServerConfig;
 
import java.util.Map;
 
public interface IRedisCatchStorage {
 
    /**
     * 开始播放时将流存入
     *
     * @param stream 流信息
     * @return
     */
    boolean startPlay(StreamInfo stream);
 
 
    /**
     * 停止播放时删除
     *
     * @return
     */
    boolean stopPlay(StreamInfo streamInfo);
 
    /**
     * 查询播放列表
     * @return
     */
    StreamInfo queryPlay(StreamInfo streamInfo);
 
    StreamInfo queryPlayByStreamId(String steamId);
 
    StreamInfo queryPlaybackByStreamId(String steamId);
 
    StreamInfo queryPlayByDevice(String deviceId, String code);
 
    /**
     * 更新流媒体信息
     * @param mediaServerConfig
     * @return
     */
    boolean updateMediaInfo(MediaServerConfig mediaServerConfig);
 
    /**
     * 获取流媒体信息
     * @return
     */
    MediaServerConfig getMediaInfo();
 
    Map<String, StreamInfo> queryPlayByDeviceId(String deviceId);
 
    boolean startPlayback(StreamInfo stream);
 
    boolean stopPlayback(StreamInfo streamInfo);
 
    StreamInfo queryPlaybackByDevice(String deviceId, String code);
}