When I use a custom appsrc, the client receives a sample quickly. But when videotestsrc is used, it takes several minutes. I wonder what the cause could be.
Server
pipeline_str = g_strdup_printf("videotestsrc ! " //
"queue ! " //
"videoconvert ! " //
"video/x-raw,format=NV12 ! " //
"queue ! " //
"x264enc tune=zerolatency ! " //
"video/x-h264,profile=baseline ! " //
"queue ! " //
"h264parse ! " //
"rtph264pay config-interval=1 ! " //
"application/x-rtp,payload=96 ! " //
"tee name=%s allow-not-linked=true",
WEBRTC_TEE_NAME);
// No webrtc bin yet until later!
Client
ws_state.pipeline = gst_parse_launch(
"webrtcbin name=webrtc bundle-policy=max-bundle ! "
"rtph264depay ! "
"h264parse ! "
"avdec_h264 ! " // sudo apt install gstreamer1.0-libav
"autovideosink",
&error);