mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-26 06:57:50 +08:00
优化对讲逻辑
This commit is contained in:
parent
7609d7836c
commit
5364db2982
@ -280,7 +280,7 @@ public class ZLMRTPServerFactory {
|
|||||||
*/
|
*/
|
||||||
public Boolean isStreamReady(MediaServerItem mediaServerItem, String app, String streamId) {
|
public Boolean isStreamReady(MediaServerItem mediaServerItem, String app, String streamId) {
|
||||||
JSONObject mediaInfo = zlmresTfulUtils.getMediaInfo(mediaServerItem, app, "rtsp", 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"));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@ -937,6 +937,7 @@ export default {
|
|||||||
}).then( (res)=> {
|
}).then( (res)=> {
|
||||||
if (res.data.code == 0) {
|
if (res.data.code == 0) {
|
||||||
// this.broadcastStatus = -1;
|
// this.broadcastStatus = -1;
|
||||||
|
// this.broadcastRtc.close()
|
||||||
}else {
|
}else {
|
||||||
this.$message({
|
this.$message({
|
||||||
showClose: true,
|
showClose: true,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user