修复拉流代理播放

pull/1411/head
648540858 2024-04-01 15:46:36 +08:00
parent 73733ab13f
commit 426ea72d7f
2 changed files with 5 additions and 2 deletions

View File

@ -151,7 +151,7 @@ public class ZLMHttpHookListener {
logger.info("[ZLM HOOK] 播放鉴权 失败:{}->{}", param.getMediaServerId(), param);
return new HookResult(401, "Unauthorized");
}
logger.info("[ZLM HOOK] 播放鉴权 成功{}->{}", param.getMediaServerId(), param);
logger.info("[ZLM HOOK] 播放鉴权 失败{}->{}", param.getMediaServerId(), param);
return HookResult.SUCCESS();
}

View File

@ -87,7 +87,10 @@ public class MediaServiceImpl implements IMediaService {
return true;
}
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