Cloudflare Buffering and delay issues

Hello, i am using a tool to stream to Cloudflare and I have two major problems… 1 I have a 30 second delay which is huge and 2 there is always buffering. The problem is not the internet connection because because if i watch the recording that makes, there are no glitches. So there seems to the a problem with Cloudflare delivery.

Also tested wpstream on the same site and it works totally fine. So it neither my internet connection nor the site.

How can I fix the buffering?

Hi, I have had buffering issue constantly for a month or so. I solved the issue by changing the keyframe interval to 4 seconds instead of 2 seconds. I hope it helps.