Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

html5 seek issue in chrome

An application that plays back video stream in a browser pop up window does not allow seeking in chrome but works in firefox and edge. This issue has been brought up a few times here and I found that the following response more fits my situation:

html 5 seek issue

Here the OP mentions the relation of the jetty server and its lack of support for http code 206 partial content retrieval. My question is whether a simple upgrade to the latest jetty version will fix this? Or has someone found a workaround to resolve this as we are restricted to the use of chrome for this application.

like image 353
vbNewbie Avatar asked Dec 31 '25 08:12

vbNewbie


1 Answers

I resolved my situation by ensuring the response had the proper range headers and that the actual content-length was specified for playback.

Accept-Ranges: bytes
Content-Range: bytes 0-1025/905357
Content-Length: 905357

EDIT: this works so far for short videos and audio files but fails with jetty.EofException on large files

like image 179
vbNewbie Avatar answered Jan 03 '26 02:01

vbNewbie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!