// OnFrame implements path.Reader.
OnFrame implements path.Reader.
// OnFrame implements path . Reader .
func (c *Converter) OnFrame(trackID int, streamType gortsplib.StreamType, payload []byte) {
	if streamType == gortsplib.StreamTypeRTP {
		c.ringBuffer.Push(trackIDPayloadPair{trackID, payload})
	}
}
func ( c * Converter ) OnFrame ( trackID int , streamType gortsplib . StreamType , payload [ ] byte ) { if streamType == gortsplib . StreamTypeRTP { c . ringBuffer . Push ( trackIDPayloadPair { trackID , payload } ) } }
OnFrame implements path.Reader.
OnFrame implements path . Reader .