| | |
| | | package com.genersoft.iot.vmp.gb28181.session;
|
| | |
|
| | | import com.genersoft.iot.vmp.common.InviteSessionType;
|
| | | import com.genersoft.iot.vmp.common.VideoManagerConstants;
|
| | | import com.genersoft.iot.vmp.conf.UserSetting;
|
| | | import com.genersoft.iot.vmp.gb28181.bean.SipTransactionInfo;
|
| | |
| | | @Autowired
|
| | | private RedisTemplate<Object, Object> redisTemplate;
|
| | |
|
| | | public enum SessionType {
|
| | | play,
|
| | | playback,
|
| | | download
|
| | | }
|
| | |
|
| | | /**
|
| | | * 添加一个点播/回放的事务信息
|
| | | * 后续可以通过流Id/callID
|
| | |
| | | * @param mediaServerId 所使用的流媒体ID
|
| | | * @param response 回复
|
| | | */
|
| | | public void put(String deviceId, String channelId, String callId, String stream, String ssrc, String mediaServerId, SIPResponse response, SessionType type){
|
| | | public void put(String deviceId, String channelId, String callId, String stream, String ssrc, String mediaServerId, SIPResponse response, InviteSessionType type){
|
| | | SsrcTransaction ssrcTransaction = new SsrcTransaction();
|
| | | ssrcTransaction.setDeviceId(deviceId);
|
| | | ssrcTransaction.setChannelId(channelId);
|