OvenPlayer icon indicating copy to clipboard operation
OvenPlayer copied to clipboard

Playing HLS protocol with ovenplayer has for me a delay of approximately 20 seconds, is it possible to reduce it to less than 10 seconds?

Open Mariano245 opened this issue 3 years ago • 3 comments

Mariano245 avatar Jan 05 '22 23:01 Mariano245

You can modify the Server.xml, such as:

<SegmentDuration>2</SegmentDuration>
<SegmentCount>3</SegmentCount>
<CrossDomains>
	  <Url>*</Url>
</CrossDomains>

</HLS>`

The SegmentDuration is 5s by default, so you have about 20s delay

nxtreaming avatar Jan 06 '22 03:01 nxtreaming

I'd suggest only using such "short" `SegmentDuration" if you either use a http1.1+ supporting reverse proxy like Nginx in front of OvenMediaEngine, or if all your customers are within the same country / geographic region of your server location.

Otherwise, only 5 or 6 seconds as segment size will suffice for tcp slow start to catch up for each segment and then still have enough time to download the rest of the file, even if there is a bit of packet loss.

basisbit avatar Jan 06 '22 19:01 basisbit

Thank you very much for answering, I think that the default value of the duration of the segment should be optimal, but I will try to lower it to 3 and evaluate the results. Greetings

Mariano245 avatar Jan 07 '22 17:01 Mariano245

Also you can try hls Manage Latency options you can find in our demo page (demo.ovenplayer.com)

And we are closing the issue due to a long period of inactivity. If further discussion is needed, please open a new issue.

SangwonOh avatar Jan 12 '24 07:01 SangwonOh