简体中文 | English
enable receive MpegPS stream
https://github.com/Monibuca/plugin-ps
import ( _ "m7s.live/plugin/ps/v4" )
ps:
http: # format refer to global config
publish: # format refer to global config
publish: # format refer to global config
relaymode: 1 # 0:relay only 1:protocol transfar only 2:relay and protocol transfar
/ps/api/receive?streamPath=xxx&ssrc=xxx&port=xxx&reuse=1&dump=xxx
dump means whether to dump to file, if dump to file, it will generate a folder named dump in current directory, the folder contains a file named by streamPath parameter, the file content is the data received from port [4byte content length][2byte relative time][content]
/ps/api/replay?streamPath=xxx&dump=xxx
ws://[host]/ps/[streamPath]
for example: ws://localhost:8080/ps/live/test
the data is raw PS data, without rtp header