old mode 100644
new mode 100755
 |  |  | 
 |  |  |  | 
 |  |  | import com.genersoft.iot.vmp.common.StreamInfo; | 
 |  |  | import com.genersoft.iot.vmp.conf.exception.ControllerException; | 
 |  |  | import com.genersoft.iot.vmp.conf.security.JwtUtils; | 
 |  |  | import com.genersoft.iot.vmp.conf.security.SecurityUtils; | 
 |  |  | import com.genersoft.iot.vmp.conf.security.dto.LoginUser; | 
 |  |  | import com.genersoft.iot.vmp.media.zlm.dto.StreamAuthorityInfo; | 
 |  |  | 
 |  |  | import com.genersoft.iot.vmp.vmanager.bean.StreamContent; | 
 |  |  | import io.swagger.v3.oas.annotations.Operation; | 
 |  |  | import io.swagger.v3.oas.annotations.Parameter; | 
 |  |  | import io.swagger.v3.oas.annotations.security.SecurityRequirement; | 
 |  |  | import io.swagger.v3.oas.annotations.tags.Tag; | 
 |  |  | import org.slf4j.Logger; | 
 |  |  | import org.slf4j.LoggerFactory; | 
 |  |  | 
 |  |  |  | 
 |  |  | @Tag(name  = "媒体流相关") | 
 |  |  | @Controller | 
 |  |  | @CrossOrigin | 
 |  |  |  | 
 |  |  | @RequestMapping(value = "/api/media") | 
 |  |  | public class MediaController { | 
 |  |  |  | 
 |  |  | 
 |  |  |      * @param stream 流id | 
 |  |  |      * @return | 
 |  |  |      */ | 
 |  |  |     @Operation(summary = "根据应用名和流id获取播放地址") | 
 |  |  |     @Operation(summary = "根据应用名和流id获取播放地址", security = @SecurityRequirement(name = JwtUtils.HEADER)) | 
 |  |  |     @Parameter(name = "app", description = "应用名", required = true) | 
 |  |  |     @Parameter(name = "stream", description = "流id", required = true) | 
 |  |  |     @Parameter(name = "mediaServerId", description = "媒体服务器id") | 
 |  |  | 
 |  |  |                     && streamAuthorityInfo.getCallId().equals(callId)) { | 
 |  |  |                 authority = true; | 
 |  |  |             }else { | 
 |  |  |                 throw new ControllerException(ErrorCode.ERROR400); | 
 |  |  |                 throw new ControllerException(ErrorCode.ERROR400.getCode(), "获取播放地址鉴权失败"); | 
 |  |  |             } | 
 |  |  |         }else { | 
 |  |  |             // 是否登陆用户, 登陆用户返回完整信息 |