jaryhe 67001cd674 new | 6 mesiacov pred | |
---|---|---|
.. | ||
mpegps | 6 mesiacov pred | |
.gitignore | 6 mesiacov pred | |
LICENSE | 6 mesiacov pred | |
README.en.md | 6 mesiacov pred | |
README.md | 6 mesiacov pred | |
go.mod | 6 mesiacov pred | |
go.sum | 6 mesiacov pred | |
main.go | 6 mesiacov pred | |
port.go | 6 mesiacov pred | |
publisher.go | 6 mesiacov pred | |
subscriber.go | 6 mesiacov pred | |
tcp-rtp.go | 6 mesiacov pred | |
track.go | 6 mesiacov pred |
简体中文 | 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