on_publish 新增支持enable_hls_fmp4

夏楚
2023-07-08 21:45:31 +08:00
parent b71e462fb7
commit c2b9bfe624

@@ -345,6 +345,7 @@ on_rtp_server_timeout=https://127.0.0.1/index/hook/on_rtp_server_timeout
"enable_audio" : true, "enable_audio" : true,
"enable_fmp4" : true, "enable_fmp4" : true,
"enable_hls" : true, "enable_hls" : true,
"enable_hls_fmp4" : false,
"enable_mp4" : false, "enable_mp4" : false,
"enable_rtmp" : true, "enable_rtmp" : true,
"enable_rtsp" : true, "enable_rtsp" : true,
@@ -366,7 +367,8 @@ on_rtp_server_timeout=https://127.0.0.1/index/hook/on_rtp_server_timeout
| :--------------: | :------: | :---------------------------------: | :------: | | :--------------: | :------: | :---------------------------------: | :------: |
| `code` | `int` | 错误代码0代表允许推流 | Y | | `code` | `int` | 错误代码0代表允许推流 | Y |
| `msg` | `string` | 不允许推流时的错误提示 | Y | | `msg` | `string` | 不允许推流时的错误提示 | Y |
| `enable_hls` | `bool` | 是否转换成hls协议 | N | | `enable_hls` | `bool` | 是否转换成hls-mpegts协议 | N |
| `enable_hls_fmp4` | `bool` | 是否转换成hls-fmp4协议 | N |
| `enable_mp4` | `bool` | 是否允许mp4录制 | N | | `enable_mp4` | `bool` | 是否允许mp4录制 | N |
| `enable_rtsp` | `bool` | 是否转rtsp协议 | N | | `enable_rtsp` | `bool` | 是否转rtsp协议 | N |
| `enable_rtmp` | `bool` | 是否转rtmp/flv协议 | N | | `enable_rtmp` | `bool` | 是否转rtmp/flv协议 | N |