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