Skip to content
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

Byte-range requests are not in HTTP headers, so Safari can't play video files served by Eleventy Server #51

Closed
NathanBowers opened this issue Feb 3, 2023 · 1 comment · Fixed by #62
Labels
bug Something isn't working

Comments

@NathanBowers
Copy link

Byte-range requests are not in HTTP headers, so Safari can't play .mp4 or .webm files served from Eleventy Server.

Here's a bit of reference:

Reproduce:

  1. Create a simple page with two video elements, one which uses remote hosted video files and one that points to video files served from localhost
  2. You can use low bandwidth video sample files from https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
  3. Sample code
<!-- local media -->
<video controls width="350">
	<source src="/media/flower/flower.webm" type="video/webm">
	<source src="/media/flower/flower.mp4" type="video/mp4">
</video>
<!-- remote media -->
<video controls width="350">
	<source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm" type="video/webm">
	<source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.mp4" type="video/mp4">
</video>

My setup:

  1. MacOS 13.2
  2. Safari 16.3
  3. Eleventy 2.0.0-beta.3

Screenshot:

Screenshot 2023-02-02 at 6 44 16 PM

@zachleat zachleat added the bug Something isn't working label Feb 6, 2023
@zachleat zachleat added this to the Eleventy Dev Server v2.0.0 milestone Apr 19, 2024
@zachleat
Copy link
Member

Shipped with Dev Server v2.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants