浏览代码

RTMP已停止时返回成功

develop
YAO 1年前
父节点
当前提交
709093348f
共有 4 个文件被更改,包括 2 次插入6 次删除
  1. 二进制
      EasyRTMPLive(bin)20230316.zip
  2. 二进制
      dist/airportMedia.zip
  3. +1
    -3
      router/easy_rtmp_router.py
  4. +1
    -3
      service/MqttDisService.py

二进制
EasyRTMPLive(bin)20230316.zip 查看文件


二进制
dist/airportMedia.zip 查看文件


+ 1
- 3
router/easy_rtmp_router.py 查看文件

@@ -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 查看文件

@@ -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' % \

正在加载...
取消
保存