|
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853 |
- {
- "info": {
- "_postman_id": "4626d766-16b5-4255-89ba-f7614de2398c",
- "name": "ZLMediaKit",
- "description": "媒体服务器",
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
- },
- "item": [
- {
- "name": "获取服务器api列表(getApiList)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getApiList?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getApiList"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取网络线程负载(getThreadsLoad)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getThreadsLoad?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getThreadsLoad"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取主要对象个数(getStatistic)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getStatistic?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getStatistic"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取后台线程负载(getWorkThreadsLoad)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getWorkThreadsLoad?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getWorkThreadsLoad"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取服务器配置(getServerConfig)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getServerConfig?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getServerConfig"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "设置服务器配置(setServerConfig)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/setServerConfig?secret={{ZLMediaKit_secret}}&api.apiDebug=0",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "setServerConfig"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "api.apiDebug",
- "value": "0",
- "description": "配置键与配置项值"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "重启服务器(restartServer)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/restartServer?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "restartServer"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取流列表(getMediaList)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getMediaList?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getMediaList"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "schema",
- "value": "rtmp",
- "description": "筛选协议,例如 rtsp或rtmp",
- "disabled": true
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "筛选虚拟主机,例如__defaultVhost__",
- "disabled": true
- },
- {
- "key": "app",
- "value": null,
- "description": "筛选应用名,例如 live",
- "disabled": true
- },
- {
- "key": "stream",
- "value": null,
- "description": "筛选流id,例如 test",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "关断单个流(close_stream)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/close_stream?secret={{ZLMediaKit_secret}}&schema=rtsp&vhost={{defaultVhost}}&app=live&stream=test",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "close_stream"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "schema",
- "value": "rtsp",
- "description": "协议,例如 rtsp或rtmp"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "test",
- "description": "流id,例如 test"
- },
- {
- "key": "force",
- "value": "1",
- "description": "是否强制关闭(有人在观看是否还关闭)",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "批量关断流(close_streams)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/close_streams?secret={{ZLMediaKit_secret}}&schema=rtsp&vhost={{defaultVhost}}&app=live&stream=test",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "close_streams"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "schema",
- "value": "rtsp",
- "description": "协议,例如 rtsp或rtmp"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "test",
- "description": "流id,例如 test"
- },
- {
- "key": "force",
- "value": "1",
- "description": "是否强制关闭(有人在观看是否还关闭)",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取Session列表(getAllSession)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getAllSession?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getAllSession"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "local_port",
- "value": "",
- "description": "筛选本机端口,例如筛选rtsp链接:554",
- "disabled": true
- },
- {
- "key": "peer_ip",
- "value": null,
- "description": "筛选客户端ip",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "断开tcp连接(kick_session)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/kick_session?secret={{ZLMediaKit_secret}}&id=123456",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "kick_session"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "id",
- "value": "123456",
- "description": "客户端唯一id,可以通过getAllSession接口获取"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "批量断开tcp连接(kick_sessions)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/kick_sessions?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "kick_sessions"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "local_port",
- "value": "",
- "description": "筛选本机端口,例如筛选rtsp链接:554",
- "disabled": true
- },
- {
- "key": "peer_ip",
- "value": null,
- "description": "筛选客户端ip",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "添加rtsp/rtmp/hls拉流代理(addStreamProxy)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/addStreamProxy?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=live&stream=test&url=rtmp://live.hkstv.hk.lxdns.com/live/hks2",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "addStreamProxy"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "添加的流的虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "添加的流的应用名,例如live"
- },
- {
- "key": "stream",
- "value": "test",
- "description": "添加的流的id名,例如test"
- },
- {
- "key": "url",
- "value": "rtmp://live.hkstv.hk.lxdns.com/live/hks2",
- "description": "拉流地址,例如rtmp://live.hkstv.hk.lxdns.com/live/hks2"
- },
- {
- "key": "rtp_type",
- "value": null,
- "description": "rtsp拉流时,拉流方式,0:tcp,1:udp,2:组播",
- "disabled": true
- },
- {
- "key": "timeout_sec",
- "value": "10",
- "description": "拉流超时时间,单位秒,float类型",
- "disabled": true
- },
- {
- "key": "retry_count",
- "value": "",
- "description": "拉流重试次数,不传此参数或传值<=0时,则无限重试",
- "disabled": true
- },
- {
- "key": "enable_hls",
- "value": null,
- "description": "是否转hls",
- "disabled": true
- },
- {
- "key": "enable_mp4",
- "value": null,
- "description": "是否mp4录制",
- "disabled": true
- },
- {
- "key": "enable_rtsp",
- "value": "1",
- "description": "是否转协议为rtsp/webrtc",
- "disabled": true
- },
- {
- "key": "enable_rtmp",
- "value": "1",
- "description": "是否转协议为rtmp/flv",
- "disabled": true
- },
- {
- "key": "enable_ts",
- "value": "1",
- "description": "是否转协议为http-ts/ws-ts",
- "disabled": true
- },
- {
- "key": "enable_fmp4",
- "value": "1",
- "description": "是否转协议为http-fmp4/ws-fmp4",
- "disabled": true
- },
- {
- "key": "enable_audio",
- "value": "1",
- "description": "转协议是否开启音频",
- "disabled": true
- },
- {
- "key": "add_mute_audio",
- "value": "1",
- "description": "转协议无音频时,是否添加静音aac音频",
- "disabled": true
- },
- {
- "key": "mp4_save_path",
- "value": null,
- "description": "mp4录制保存根目录,置空使用默认目录",
- "disabled": true
- },
- {
- "key": "mp4_max_second",
- "value": "1800",
- "description": "mp4录制切片大小,单位秒",
- "disabled": true
- },
- {
- "key": "hls_save_path",
- "value": null,
- "description": "hls保存根目录,置空使用默认目录",
- "disabled": true
- },
- {
- "key": "modify_stamp",
- "value": null,
- "description": "是否重新计算时间戳",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "关闭拉流代理(delStreamProxy)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/delStreamProxy?secret={{ZLMediaKit_secret}}&key=__defaultVhost__/live/1",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "delStreamProxy"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "key",
- "value": "__defaultVhost__/live/1",
- "description": "addStreamProxy接口返回的key"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "添加rtsp/rtmp推流(addStreamPusherProxy)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/addStreamPusherProxy?secret={{ZLMediaKit_secret}}&schema=rtmp&vhost={{defaultVhost}}&app=live&stream=test&dst_url=rtmp://127.0.0.1/live/push",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "addStreamPusherProxy"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "schema",
- "value": "rtmp",
- "description": "推流协议,支持rtsp、rtmp,大小写敏感"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "已注册流的虚拟主机,一般为__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "已注册流的应用名,例如live"
- },
- {
- "key": "stream",
- "value": "test",
- "description": "已注册流的id名,例如test"
- },
- {
- "key": "dst_url",
- "value": "rtmp://127.0.0.1/live/push",
- "description": "推流地址,需要与schema字段协议一致"
- },
- {
- "key": "rtp_type",
- "value": "0",
- "description": "rtsp推流时,推流方式,0:tcp,1:udp",
- "disabled": true
- },
- {
- "key": "timeout_sec",
- "value": "10",
- "description": "推流超时时间,单位秒,float类型",
- "disabled": true
- },
- {
- "key": "retry_count",
- "value": null,
- "description": "推流重试次数,不传此参数或传值<=0时,则无限重试",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "关闭推流(delStreamPusherProxy)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/delStreamPusherProxy?secret={{ZLMediaKit_secret}}&key=__defaultVhost__/live/test",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "delStreamPusherProxy"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "key",
- "value": "__defaultVhost__/live/test",
- "description": "addStreamPusherProxy接口返回的key"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "添加FFmpeg拉流代理(addFFmpegSource)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/addFFmpegSource?secret={{ZLMediaKit_secret}}&src_url=http://hefeng.live.tempsource.cjyun.org/videotmp/s10100-hftv.m3u8&dst_url=rtmp://127.0.0.1/live/hks2&timeout_ms=10000&enable_hls=0&enable_mp4=0",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "addFFmpegSource"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "src_url",
- "value": "http://hefeng.live.tempsource.cjyun.org/videotmp/s10100-hftv.m3u8",
- "description": "FFmpeg拉流地址,支持任意协议或格式(只要FFmpeg支持即可)"
- },
- {
- "key": "dst_url",
- "value": "rtmp://127.0.0.1/live/hks2",
- "description": "FFmpeg rtmp推流地址,一般都是推给自己,例如rtmp://127.0.0.1/live/stream_form_ffmpeg"
- },
- {
- "key": "timeout_ms",
- "value": "10000",
- "description": "FFmpeg推流成功超时时间,单位毫秒"
- },
- {
- "key": "enable_hls",
- "value": "0",
- "description": "是否开启hls录制"
- },
- {
- "key": "enable_mp4",
- "value": "0",
- "description": "是否开启mp4录制"
- },
- {
- "key": "ffmpeg_cmd_key",
- "value": "ffmpeg.cmd_hd",
- "description": "FFmpeg命名参数模板,置空则采用配置项:ffmpeg.cmd",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "关闭FFmpeg拉流代理(delFFmpegSource)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/delFFmpegSource?secret={{ZLMediaKit_secret}}&key=5f748d2ef9712e4b2f6f970c1d44d93a",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "delFFmpegSource"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "key",
- "value": "5f748d2ef9712e4b2f6f970c1d44d93a"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "流是否在线(isMediaOnline)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/isMediaOnline?secret={{ZLMediaKit_secret}}&schema=rtsp&vhost={{defaultVhost}}&app=proxy&stream=1",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "isMediaOnline"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "schema",
- "value": "rtsp",
- "description": "协议,例如 rtsp或rtmp"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "proxy",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "1",
- "description": "流id,例如 test"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取媒体流播放器列表(getMediaPlayerList)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getMediaPlayerList?secret={{ZLMediaKit_secret}}&schema=rtsp&vhost={{defaultVhost}}&app=proxy&stream=1",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getMediaPlayerList"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "schema",
- "value": "rtsp",
- "description": "协议,例如 rtsp或rtmp"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "proxy",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "1",
- "description": "流id,例如 test"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取流信息(getMediaInfo)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getMediaInfo?secret={{ZLMediaKit_secret}}&schema=rtsp&vhost={{defaultVhost}}&app=live&stream=mym9",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getMediaInfo"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "schema",
- "value": "rtsp",
- "description": "协议,例如 rtsp或rtmp"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "mym9",
- "description": "流id,例如 test"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取流信息(getMp4RecordFile)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getMp4RecordFile?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=proxy&stream=2&customized_path=/www&period=2020-05-26",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getMp4RecordFile"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "proxy",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "2",
- "description": "流id,例如 test"
- },
- {
- "key": "customized_path",
- "value": "/www",
- "description": "录像文件保存自定义根目录,为空则采用配置文件设置"
- },
- {
- "key": "period",
- "value": "2020-05-26",
- "description": "流的录像日期,格式为2020-02-01,如果不是完整的日期,那么是搜索录像文件夹列表,否则搜索对应日期下的mp4文件列表"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "删除录像文件夹(deleteRecordDirectory)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/deleteRecordDirectory?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=proxy&stream=2&period=2020-01-01",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "deleteRecordDirectory"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "proxy",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "2",
- "description": "流id,例如 test"
- },
- {
- "key": "period",
- "value": "2020-01-01",
- "description": "流的录像日期,格式为2020-01-01,如果不是完整的日期,那么会删除失败"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "开始录制(startRecord)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/startRecord?secret={{ZLMediaKit_secret}}&type=1&vhost={{defaultVhost}}&app=live&stream=obs",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "startRecord"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "type",
- "value": "1",
- "description": "0为hls,1为mp4"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "obs",
- "description": "流id,例如 obs"
- },
- {
- "key": "customized_path",
- "value": null,
- "description": "录像文件保存自定义根目录,为空则采用配置文件设置",
- "disabled": true
- },
- {
- "key": "max_second",
- "value": "1000",
- "description": "MP4录制的切片时间大小,单位秒",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "设置录像速度(setRecordSpeed)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/setRecordSpeed?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=live&stream=obs&speed=2.0",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "setRecordSpeed"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "obs",
- "description": "流id,例如 obs"
- },
- {
- "key": "speed",
- "value": "2.0",
- "description": "要设置的录像倍速"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "设置录像流播放位置(seekRecordStamp)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/seekRecordStamp?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=live&stream=obs&stamp",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "seekRecordStamp"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "obs",
- "description": "流id,例如 obs"
- },
- {
- "key": "stamp",
- "value": 1000,
- "description": "要设置的录像播放位置"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "停止录制(stopRecord)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/stopRecord?secret={{ZLMediaKit_secret}}&type=1&vhost={{defaultVhost}}&app=live&stream=obs",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "stopRecord"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "type",
- "value": "1",
- "description": "0为hls,1为mp4"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "obs",
- "description": "流id,例如 obs"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "是否正在录制(isRecording)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/isRecording?secret={{ZLMediaKit_secret}}&type=1&vhost={{defaultVhost}}&app=live&stream=obs",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "isRecording"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "type",
- "value": "1",
- "description": "0为hls,1为mp4"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "obs",
- "description": "流id,例如 obs"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取截图(getSnap)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getSnap?secret={{ZLMediaKit_secret}}&url=rtsp://www.mym9.com/101065?from=2019-06-28/01:12:13&timeout_sec=10&expire_sec=1",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getSnap"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "url",
- "value": "rtsp://www.mym9.com/101065?from=2019-06-28/01:12:13",
- "description": "需要截图的url,可以是本机的,也可以是远程主机的"
- },
- {
- "key": "timeout_sec",
- "value": "10",
- "description": "截图失败超时时间,防止FFmpeg一直等待截图"
- },
- {
- "key": "expire_sec",
- "value": "1",
- "description": "截图的过期时间,该时间内产生的截图都会作为缓存返回"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取rtp推流信息(getRtpInfo)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/getRtpInfo?secret={{ZLMediaKit_secret}}&stream_id=test",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "getRtpInfo"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "stream_id",
- "value": "test",
- "description": "流id"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "创建RTP服务器(openRtpServer)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/openRtpServer?secret={{ZLMediaKit_secret}}&port=0&enable_tcp=1&stream_id=test",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "openRtpServer"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "port",
- "value": "0",
- "description": "绑定的端口,0时为随机端口"
- },
- {
- "key": "tcp_mode",
- "value": "1",
- "description": "tcp模式,0时为不启用tcp监听,1时为启用tcp监听,2时为tcp主动连接模式"
- },
- {
- "key": "stream_id",
- "value": "test",
- "description": "该端口绑定的流id\n"
- },
- {
- "key": "re_use_port",
- "value": "0",
- "description": "是否重用端口,默认为0,非必选参数",
- "disabled": true
- },
- {
- "key": "ssrc",
- "value": "0",
- "description": "是否指定收流的rtp ssrc, 十进制数字,不指定或指定0时则不过滤rtp,非必选参数",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "连接RTP服务器(connectRtpServer)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/connectRtpServer?secret={{ZLMediaKit_secret}}&dst_url=127.0.0.1&dst_port=10000&stream_id=test",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "connectRtpServer"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "dst_url",
- "value": "0",
- "description": "tcp主动模式时服务端地址"
- },
- {
- "key": "dst_port",
- "value": "1",
- "description": "tcp主动模式时服务端端口"
- },
- {
- "key": "stream_id",
- "value": "test",
- "description": "OpenRtpServer时绑定的流id\n"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "关闭RTP服务器(closeRtpServer)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/closeRtpServer?secret={{ZLMediaKit_secret}}&stream_id=test",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "closeRtpServer"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "stream_id",
- "value": "test",
- "description": "该端口绑定的流id"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "暂停RTP超时检查(pauseRtpCheck)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/pauseRtpCheck?secret={{ZLMediaKit_secret}}&stream_id=test",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "pauseRtpCheck"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "stream_id",
- "value": "test",
- "description": "该端口绑定的流id"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "恢复RTP超时检查(resumeRtpCheck)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/resumeRtpCheck?secret={{ZLMediaKit_secret}}&stream_id=test",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "resumeRtpCheck"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "stream_id",
- "value": "test",
- "description": "该端口绑定的流id"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取RTP服务器列表(listRtpServer)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/listRtpServer?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "listRtpServer"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "开始发送rtp(startSendRtp)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/startSendRtp?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=live&stream=obs&ssrc=1&dst_url=127.0.0.1&dst_port=10000&is_udp=0",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "startSendRtp"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "obs",
- "description": "流id,例如 obs"
- },
- {
- "key": "ssrc",
- "value": "1",
- "description": "rtp推流的ssrc,ssrc不同时,可以推流到多个上级服务器"
- },
- {
- "key": "dst_url",
- "value": "127.0.0.1",
- "description": "目标ip或域名"
- },
- {
- "key": "dst_port",
- "value": "10000",
- "description": "目标端口"
- },
- {
- "key": "is_udp",
- "value": "0",
- "description": "是否为udp模式,否则为tcp模式"
- },
- {
- "key": "src_port",
- "value": "0",
- "description": "指定tcp/udp客户端使用的本地端口,0时为随机端口,该参数非必选参数,不传时为随机端口。",
- "disabled": true
- },
- {
- "key": "from_mp4",
- "value": "0",
- "description": "是否推送本地MP4录像,该参数非必选参数",
- "disabled": true
- },
- {
- "key": "use_ps",
- "value": "1",
- "description": "rtp打包采用ps还是es模式,默认采用ps模式,该参数非必选参数",
- "disabled": true
- },
- {
- "key": "pt",
- "value": "96",
- "description": "rtp payload type,默认96,该参数非必选参数",
- "disabled": true
- },
- {
- "key": "only_audio",
- "value": "1",
- "description": "rtp es方式打包时,是否只打包音频,该参数非必选参数",
- "disabled": true
- },
- {
- "key": "udp_rtcp_timeout",
- "value": "0",
- "description": "udp方式推流时,是否开启rtcp发送和rtcp接收超时判断,开启后(默认关闭),如果接收rr rtcp超时,将导致主动停止rtp发送",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "开始tcp passive被动发送rtp(startSendRtpPassive)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/startSendRtpPassive?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=live&stream=test&ssrc=1",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "startSendRtpPassive"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "test",
- "description": "流id,例如 obs"
- },
- {
- "key": "ssrc",
- "value": "1",
- "description": "rtp推流的ssrc,ssrc不同时,可以推流到多个上级服务器"
- },
- {
- "key": "src_port",
- "value": "0",
- "description": "指定tcp/udp客户端使用的本地端口,0时为随机端口,该参数非必选参数,不传时为随机端口。",
- "disabled": true
- },
- {
- "key": "from_mp4",
- "value": "0",
- "description": "是否推送本地MP4录像,该参数非必选参数",
- "disabled": true
- },
- {
- "key": "use_ps",
- "value": "1",
- "description": "rtp打包采用ps还是es模式,默认采用ps模式,该参数非必选参数",
- "disabled": true
- },
- {
- "key": "pt",
- "value": "96",
- "description": "rtp payload type,默认96,该参数非必选参数",
- "disabled": true
- },
- {
- "key": "only_audio",
- "value": "1",
- "description": "rtp es方式打包时,是否只打包音频,该参数非必选参数",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "停止 发送rtp(stopSendRtp)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/stopSendRtp?secret={{ZLMediaKit_secret}}&vhost={{defaultVhost}}&app=live&stream=obs",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "stopSendRtp"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}",
- "description": "api操作密钥(配置文件配置),如果操作ip是127.0.0.1,则不需要此参数"
- },
- {
- "key": "vhost",
- "value": "{{defaultVhost}}",
- "description": "虚拟主机,例如__defaultVhost__"
- },
- {
- "key": "app",
- "value": "live",
- "description": "应用名,例如 live"
- },
- {
- "key": "stream",
- "value": "obs",
- "description": "流id,例如 obs"
- },
- {
- "key": "ssrc",
- "value": "",
- "description": "根据ssrc关停某路rtp推流,不传时关闭所有推流",
- "disabled": true
- }
- ]
- }
- },
- "response": []
- },
- {
- "name": "获取版本信息(version)",
- "request": {
- "method": "GET",
- "header": [],
- "url": {
- "raw": "{{ZLMediaKit_URL}}/index/api/version?secret={{ZLMediaKit_secret}}",
- "host": [
- "{{ZLMediaKit_URL}}"
- ],
- "path": [
- "index",
- "api",
- "version"
- ],
- "query": [
- {
- "key": "secret",
- "value": "{{ZLMediaKit_secret}}"
- }
- ]
- }
- },
- "response": []
- }
- ],
- "event": [
- {
- "listen": "prerequest",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- },
- {
- "listen": "test",
- "script": {
- "type": "text/javascript",
- "exec": [
- ""
- ]
- }
- }
- ],
- "variable": [
- {
- "key": "ZLMediaKit_URL",
- "value": "zlmediakit.com:8880"
- },
- {
- "key": "ZLMediaKit_secret",
- "value": "035c73f7-bb6b-4889-a715-d9eb2d1925cc"
- },
- {
- "key": "defaultVhost",
- "value": "__defaultVhost__"
- }
- ]
- }
|