How to control the length of load when using tag <video> in Sarafi

In Sarafi,when i use tag <video> .it will request all .ts after loading the .m3u8.Its the waste.

How to control the Sarafi to request the next .ts until the customer watched the pre one.

Or how to control the buffer like the config in hls.js, maxBufferLength,maxBufferSize?

Replies

You must set tag that is like this.

<video preload="none" type="application/x-mpegURL"></video>

Mime type is needed.

  • didn't work either, still video player downloads all segments even when I click on pause in couple of seconds after playing.

Add a Comment

Any solution for this here? Same question I've posted at https://stackoverflow.com/questions/68394401/how-to-restrict-fetching-hls-segment-files-on-pause-in-safari-macos-and-ios