Replies: 1 comment
-
Hello, in my opinion you can avoid the 1st client (not the 2nd one) by hooking into the source server's OnFrame: func (sh *serverHandler) OnFrame(ctx *gortsplib.ServerHandlerOnFrameCtx) {
if thisSessionIsPublishing {
// send frames from this server to the destination server
clientThatIsPublishing.WriteFrame(ctx.TrackID, ctx.StreamType, ctx.Payload)
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to push a published stream from one RTSP server to another, without invoking a client ReadFrame from localhost.
In my current Server setup, during OnRecord callback, I am invoking 2 clients,
This doesn't seems like an optimal way, but I couldn't figure out anything else.
@aler9 Could you please suggest a better way to handle this?
Beta Was this translation helpful? Give feedback.
All reactions