-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Media streaming issues with Chrome #55
Comments
Ahh interesting.. I don't have many projects that serve media so I haven't come across it. Happy to take a look though! I wonder if just adding |
Yeah same, that's why I've only just noticed! So the To reproduce, just create an |
I managed to hack it to work using this as a guide. The main changes I've found are that it needs the |
Well, that sounds doable! Do you have it working in a fork of servor? If so I'd love to see a PR. |
I have a modified version of it - I just threw the main file up here for you to check! |
Thanks 🙇 this will speed things up a lot but not 100% sure exactly when I will get around to implementing. Will leave this issue open in case anyone else wants to tackle it! |
Hey mate, I've been running into a couple issues with how Chrome handles media (audio/video):
Without the response header
Content-Length
, checkingmedia.duration
returnsInfinity
.Without serving the requested chunk (
Content-Range
), changingmedia.currentTime
just makes the file play from the beginning (as the whole file is returned).In comparison, Firefox has neither issue.
I recall reading about this a long time ago, and found it weird how Chrome kept re-downloading the video assets with experiences that involve changing the currentTime, but I'm not sure how best to work streaming into Servor. Any ideas/thoughts?
Cheers.
The text was updated successfully, but these errors were encountered: