jaryhe 67001cd674 new | пре 6 месеци | |
---|---|---|
.. | ||
mpegps | пре 6 месеци | |
.gitignore | пре 6 месеци | |
LICENSE | пре 6 месеци | |
README.en.md | пре 6 месеци | |
README.md | пре 6 месеци | |
go.mod | пре 6 месеци | |
go.sum | пре 6 месеци | |
main.go | пре 6 месеци | |
port.go | пре 6 месеци | |
publisher.go | пре 6 месеци | |
subscriber.go | пре 6 месеци | |
tcp-rtp.go | пре 6 месеци | |
track.go | пре 6 месеци |
简体中文 | 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