old mode 100644
new mode 100755
 |  |  | 
 |  |  | package com.genersoft.iot.vmp.media.zlm.dto; | 
 |  |  |  | 
 |  |  | import com.genersoft.iot.vmp.media.zlm.dto.hook.OnPublishHookParam; | 
 |  |  | import com.genersoft.iot.vmp.media.zlm.dto.hook.OnStreamChangedHookParam; | 
 |  |  |  | 
 |  |  | /** | 
 |  |  |  * 流的鉴权信息 | 
 |  |  |  * @author lin | 
 |  |  | 
 |  |  |         return streamAuthorityInfo; | 
 |  |  |     } | 
 |  |  |  | 
 |  |  |     public static StreamAuthorityInfo getInstanceByHook(MediaItem mediaItem) { | 
 |  |  |     public static StreamAuthorityInfo getInstanceByHook(OnStreamChangedHookParam onStreamChangedHookParam) { | 
 |  |  |         StreamAuthorityInfo streamAuthorityInfo = new StreamAuthorityInfo(); | 
 |  |  |         streamAuthorityInfo.setApp(mediaItem.getApp()); | 
 |  |  |         streamAuthorityInfo.setStream(mediaItem.getStream()); | 
 |  |  |         streamAuthorityInfo.setId(mediaItem.getMediaServerId()); | 
 |  |  |         streamAuthorityInfo.setOriginType(mediaItem.getOriginType()); | 
 |  |  |         streamAuthorityInfo.setOriginTypeStr(mediaItem.getOriginTypeStr()); | 
 |  |  |         streamAuthorityInfo.setApp(onStreamChangedHookParam.getApp()); | 
 |  |  |         streamAuthorityInfo.setStream(onStreamChangedHookParam.getStream()); | 
 |  |  |         streamAuthorityInfo.setId(onStreamChangedHookParam.getMediaServerId()); | 
 |  |  |         streamAuthorityInfo.setOriginType(onStreamChangedHookParam.getOriginType()); | 
 |  |  |         streamAuthorityInfo.setOriginTypeStr(onStreamChangedHookParam.getOriginTypeStr()); | 
 |  |  |         return streamAuthorityInfo; | 
 |  |  |     } | 
 |  |  | } |