panlinlin
2021-04-14 cb5849d8a14f55241c44bdf6724b18de7950564d
src/main/java/com/genersoft/iot/vmp/gb28181/transmit/request/impl/ByeRequestProcessor.java
@@ -17,8 +17,6 @@
import com.genersoft.iot.vmp.media.zlm.ZLMRTPServerFactory;
import com.genersoft.iot.vmp.storager.IRedisCatchStorage;
import org.apache.log4j.Logger;
import java.text.ParseException;
import java.util.HashMap;
import java.util.Map;
@@ -53,12 +51,12 @@
            String streamId = sendRtpItem.getStreamId();
            Map<String, Object> param = new HashMap<>();
            param.put("vhost","__defaultVhost__");
            param.put("app","rtp");
            param.put("app",sendRtpItem.getApp());
            param.put("stream",streamId);
            System.out.println("停止向上级推流:" + streamId);
            zlmrtpServerFactory.stopSendRtpStream(param);
            redisCatchStorage.deleteSendRTPServer(platformGbId, channelId);
            if (zlmrtpServerFactory.totalReaderCount(streamId) == 0) {
            if (zlmrtpServerFactory.totalReaderCount(sendRtpItem.getApp(), streamId) == 0) {
               System.out.println(streamId + "无其它观看者,通知设备停止推流");
               cmder.streamByeCmd(streamId);
            }