优化对讲逻辑

This commit is contained in:
648540858
2022-07-03 22:27:04 +08:00
parent 7609d7836c
commit 5364db2982
2 changed files with 2 additions and 1 deletions

View File

@@ -280,7 +280,7 @@ public class ZLMRTPServerFactory {
*/
public Boolean isStreamReady(MediaServerItem mediaServerItem, String app, String streamId) {
JSONObject mediaInfo = zlmresTfulUtils.getMediaInfo(mediaServerItem, app, "rtsp", streamId);
return (mediaInfo.getInteger("code") == 0 && mediaInfo.getBoolean("online"));
return (mediaInfo.getInteger("code") == 0 && mediaInfo.getBoolean("online") != null && mediaInfo.getBoolean("online"));
}
/**