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