ion-sfu
ion-sfu copied to clipboard
[Need Suggestion] What's the ideal way to record video?
Currently ion-sfu polling packet from UpTrack and writing to DownTrack in
func (w *WebRTCReceiver) writeRTP(layer int) {
...
}
I want to record the UpTrack into a mp4 file, should I add my code in this function, or add a new callback in pkg/buffer/buffer.go? Are there other alternatives?
Hello, how did you solve this issue?
@reg2005, I haven't tried it yet. I'm thinking of doing it in another process, might be simple and less intrutive.