When I publish directly with stream.PublishData(msg.Type,msg.Buf.Bytes(),msg.Timestamp)
The rtmp stream is automatically closed just after the stream is accepted.
Simple steps to reproduce this : (I am doing it live by establishing a tcp socket and forwarding the packets, the same behavior is exhibited when I save to file and use the file to publish)
I am using
rtmp_player
to read a rtmp stream and publish it to anotherRTMP server
usingrtmp_publish
What to pass as argument to
stream.PublishData(tagHeader.TagType, data, deltaTimestamp)
?I receive the rtmp stream with Message struct from
OnReceived(rconn rtmp.Conn, message *rtmp.Message)
When I publish directly with
stream.PublishData(msg.Type,msg.Buf.Bytes(),msg.Timestamp)
The rtmp stream is automatically closed just after the stream is accepted.
Simple steps to reproduce this : (I am doing it live by establishing a tcp socket and forwarding the packets, the same behavior is exhibited when I save to file and use the file to publish)
./player -URL rtmp://188.138.17.8:1935/albuk -Stream albuk.stream -DumpFLV ./demo.flv
./publish -URL rtmp://myserver:1935/<path>/ -Stream <name> -FLV ./demo.flv
I get the following outputThere is no video stream running.