old mode 100644
new mode 100755
 |  |  | 
 |  |  | import com.genersoft.iot.vmp.storager.IRedisCatchStorage; | 
 |  |  | import com.genersoft.iot.vmp.vmanager.bean.ErrorCode; | 
 |  |  | import com.genersoft.iot.vmp.vmanager.bean.StreamContent; | 
 |  |  | import com.genersoft.iot.vmp.vmanager.bean.WVPResult; | 
 |  |  | import io.swagger.v3.oas.annotations.Operation; | 
 |  |  | import io.swagger.v3.oas.annotations.Parameter; | 
 |  |  | import io.swagger.v3.oas.annotations.tags.Tag; | 
 |  |  | 
 |  |  |  | 
 |  |  | @Tag(name  = "媒体流相关") | 
 |  |  | @Controller | 
 |  |  | @CrossOrigin | 
 |  |  |  | 
 |  |  | @RequestMapping(value = "/api/media") | 
 |  |  | public class MediaController { | 
 |  |  |  | 
 |  |  | 
 |  |  |                     && streamAuthorityInfo.getCallId().equals(callId)) { | 
 |  |  |                 authority = true; | 
 |  |  |             }else { | 
 |  |  |                 throw new ControllerException(ErrorCode.ERROR400); | 
 |  |  |                 throw new ControllerException(ErrorCode.ERROR400.getCode(), "获取播放地址鉴权失败"); | 
 |  |  |             } | 
 |  |  |         }else { | 
 |  |  |             // 是否登陆用户, 登陆用户返回完整信息 | 
 |  |  | 
 |  |  |             streamInfo = mediaService.getStreamInfoByAppAndStreamWithCheck(app, stream, mediaServerId, authority); | 
 |  |  |         } | 
 |  |  |  | 
 |  |  |         WVPResult<StreamInfo> result = new WVPResult<>(); | 
 |  |  |         if (streamInfo != null){ | 
 |  |  |             return  new StreamContent(streamInfo); | 
 |  |  |         }else { |