old mode 100644
new mode 100755
| | |
| | | package com.genersoft.iot.vmp.service; |
| | | |
| | | import com.alibaba.fastjson.JSONArray; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.genersoft.iot.vmp.common.StreamInfo; |
| | | import com.genersoft.iot.vmp.media.bean.ResultForOnPublish; |
| | | import com.genersoft.iot.vmp.media.bean.MediaServer; |
| | | |
| | | /** |
| | | * 媒体信息业务 |
| | |
| | | public interface IMediaService { |
| | | |
| | | /** |
| | | * 根据应用名和流ID获取播放地址, 通过zlm接口检查是否存在 |
| | | * @param app |
| | | * @param stream |
| | | * @return |
| | | * 播放鉴权 |
| | | */ |
| | | StreamInfo getStreamInfoByAppAndStreamWithCheck(String app, String stream); |
| | | boolean authenticatePlay(String app, String stream, String callId); |
| | | |
| | | /** |
| | | * 根据应用名和流ID获取播放地址, 只是地址拼接 |
| | | * @param app |
| | | * @param stream |
| | | * @return |
| | | */ |
| | | StreamInfo getStreamInfoByAppAndStream(String app, String stream, JSONArray tracks); |
| | | ResultForOnPublish authenticatePublish(MediaServer mediaServer, String app, String stream, String params); |
| | | |
| | | boolean closeStreamOnNoneReader(String mediaServerId, String app, String stream, String schema); |
| | | } |