How to seek in AppSink or create customsink with seek capability?

Hi,
My pipeline is this,
splitmuxsrc->demux->h264parse->mp4mux (fragmented mp4)->appsink

from app sink i get the raw data and send it tomy http streams. I’m unable to seek as either i get ‘segment->format == format’ failed or downstream which is appsink doesnt support seek.

Can someone guide me how I can create a custom app sink which can revecive data at the same time can send seek to upstreams in rust,C/C++

I can do seek like this gst-launch-1.0 splitmuxsrc location=1.mp4 next-location=2.mp4 ! decodebin ! videoconvert ! navseek ! autovideosink

how navseek does it?
Thanks
Aswin

What happens if you call Element.gst_element_seek on the pipeline containing the AppSink? Depending on how the pipeline is set up, that should just travel upstream through the pipeline until it either hits something that can handle the seek, or it doesn’t - in which case seeking through conventional means is not possible.

getting format error assertion segment->format !=format. I guess mp4mux is byte and appsink/customsink is time format