mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-07-06 11:38:11 +08:00
Updated MediaServer支持的HTTP HOOK API (markdown)
@@ -64,6 +64,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"app" : "live",
|
||||
"duration" : 6,
|
||||
"params" : "token=1677193e-1244-49f2-8868-13b3fcc31b17",
|
||||
@@ -135,6 +136,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"header.Accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",
|
||||
"header.Accept-Encoding" : "gzip, deflate",
|
||||
"header.Accept-Language" : "en-US,en;q=0.5",
|
||||
@@ -219,6 +221,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"app" : "live",
|
||||
"id" : "140574554588960",
|
||||
"ip" : "10.0.17.132",
|
||||
@@ -291,6 +294,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"app" : "live",
|
||||
"id" : "140186529001776",
|
||||
"ip" : "10.0.17.132",
|
||||
@@ -369,6 +373,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"app" : "live",
|
||||
"file_name" : "15-53-02.mp4",
|
||||
"file_path" : "/root/zlmediakit/httpRoot/__defaultVhost__/record/live/obs/2019-09-20/15-53-02.mp4",
|
||||
@@ -439,6 +444,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"app" : "live",
|
||||
"id" : "140553560034336",
|
||||
"ip" : "10.0.17.132",
|
||||
@@ -511,6 +517,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"app" : "live",
|
||||
"id" : "140553560034336",
|
||||
"ip" : "10.0.17.132",
|
||||
@@ -594,6 +601,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"id" : "140227419332496",
|
||||
"ip" : "10.0.17.132",
|
||||
"passwd" : "111111",
|
||||
@@ -659,6 +667,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"app" : "live",
|
||||
"regist" : true,
|
||||
"schema" : "rtsp",
|
||||
@@ -717,6 +726,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"app" : "live",
|
||||
"schema" : "rtmp",
|
||||
"stream" : "obs",
|
||||
@@ -780,6 +790,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
|
||||
|
||||
{
|
||||
"mediaServerId" : "your_server_id",
|
||||
"app" : "live",
|
||||
"id" : "140183261486112",
|
||||
"ip" : "10.0.17.132",
|
||||
@@ -848,6 +859,7 @@ on_server_started=https://127.0.0.1/index/hook/on_server_started
|
||||
"ffmpeg.bin" : "/usr/local/bin/ffmpeg",
|
||||
"ffmpeg.cmd" : "%s -re -i %s -c:a aac -strict -2 -ar 44100 -ab 48k -c:v libx264 -f flv %s",
|
||||
"ffmpeg.log" : "./ffmpeg/ffmpeg.log",
|
||||
"general.mediaServerId" : "your_server_id",
|
||||
"general.addMuteAudio" : "1",
|
||||
"general.enableVhost" : "1",
|
||||
"general.flowThreshold" : "1024",
|
||||
|
||||
Reference in New Issue
Block a user