Browse Source

RTMP已停止时返回成功

develop
YAO 1 year ago
parent
commit
709093348f
4 changed files with 2 additions and 6 deletions
  1. BIN
      EasyRTMPLive(bin)20230316.zip
  2. BIN
      dist/airportMedia.zip
  3. +1
    -3
      router/easy_rtmp_router.py
  4. +1
    -3
      service/MqttDisService.py

BIN
EasyRTMPLive(bin)20230316.zip View File


BIN
dist/airportMedia.zip View File


+ 1
- 3
router/easy_rtmp_router.py View File

@@ -99,9 +99,7 @@ async def stopPushStream():
msg=EasyExceptionType.EASY_TASK_LIMIT.value[1])
channel = channelList[0]
if channel["enable"] == "false":
logger.error("EasyRtmpLive任务已停止")
return JsonResult.error(code=EasyExceptionType.TASK_NOT_EXISTS.value[0],
msg=EasyExceptionType.TASK_NOT_EXISTS.value[1])
logger.info("EasyRtmpLive任务已停止")
channel["enable"] = "false"
channel["srcURL"] = '"%s"' % channel["srcURL"]
req_param = 'indexCode=%s&name=%s&srcURL=%s&connectType=%s&timeout=5&mediaType=%s&dstURL=%s&dstFormat=%s&enable=%s' % \

+ 1
- 3
service/MqttDisService.py View File

@@ -141,9 +141,7 @@ def handle_rtmp(msg, task, fb_queue, service_config):
channel["enable"] = "true"
if 'stop' == command:
if channel["enable"] == "false":
logger.error("任务停止失败, 任务已停止!")
raise ServiceException(EasyExceptionType.TASK_NOT_EXISTS.value[0],
EasyExceptionType.TASK_NOT_EXISTS.value[1])
logger.info("EasyRtmpLive任务已停止!")
channel["enable"] = "false"
channel["srcURL"] = '"%s"' % channel["srcURL"]
req_param = 'indexCode=%s&name=%s&srcURL=%s&connectType=%s&timeout=5&mediaType=%s&dstURL=%s&dstFormat=%s&enable=%s' % \

Loading…
Cancel
Save