Commit 5364db2982fb3dfff22659d535344d3df82e838a

Authored by 648540858
1 parent 7609d783

优化对讲逻辑

src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRTPServerFactory.java
... ... @@ -280,7 +280,7 @@ public class ZLMRTPServerFactory {
280 280 */
281 281 public Boolean isStreamReady(MediaServerItem mediaServerItem, String app, String streamId) {
282 282 JSONObject mediaInfo = zlmresTfulUtils.getMediaInfo(mediaServerItem, app, "rtsp", streamId);
283   - return (mediaInfo.getInteger("code") == 0 && mediaInfo.getBoolean("online"));
  283 + return (mediaInfo.getInteger("code") == 0 && mediaInfo.getBoolean("online") != null && mediaInfo.getBoolean("online"));
284 284 }
285 285  
286 286 /**
... ...
web_src/src/components/dialog/devicePlayer.vue
... ... @@ -937,6 +937,7 @@ export default {
937 937 }).then( (res)=> {
938 938 if (res.data.code == 0) {
939 939 // this.broadcastStatus = -1;
  940 + // this.broadcastRtc.close()
940 941 }else {
941 942 this.$message({
942 943 showClose: true,
... ...