修复拉流代理播放
parent
73733ab13f
commit
426ea72d7f
|
@ -151,7 +151,7 @@ public class ZLMHttpHookListener {
|
||||||
logger.info("[ZLM HOOK] 播放鉴权 失败:{}->{}", param.getMediaServerId(), param);
|
logger.info("[ZLM HOOK] 播放鉴权 失败:{}->{}", param.getMediaServerId(), param);
|
||||||
return new HookResult(401, "Unauthorized");
|
return new HookResult(401, "Unauthorized");
|
||||||
}
|
}
|
||||||
logger.info("[ZLM HOOK] 播放鉴权 成功:{}->{}", param.getMediaServerId(), param);
|
logger.info("[ZLM HOOK] 播放鉴权 失败:{}->{}", param.getMediaServerId(), param);
|
||||||
return HookResult.SUCCESS();
|
return HookResult.SUCCESS();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -87,7 +87,10 @@ public class MediaServiceImpl implements IMediaService {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
StreamAuthorityInfo streamAuthorityInfo = redisCatchStorage.getStreamAuthorityInfo(app, stream);
|
StreamAuthorityInfo streamAuthorityInfo = redisCatchStorage.getStreamAuthorityInfo(app, stream);
|
||||||
return (streamAuthorityInfo != null && streamAuthorityInfo.getCallId() != null && streamAuthorityInfo.getCallId().equals(callId));
|
if (streamAuthorityInfo == null || streamAuthorityInfo.getCallId() == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return streamAuthorityInfo.getCallId().equals(callId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue