-
Notifications
You must be signed in to change notification settings - Fork 10
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
add support for standard <video>
and <audio>
formats
#1054
add support for standard <video>
and <audio>
formats
#1054
Conversation
<video>
and <audio>
formats
.gitattributes
Outdated
*.flv binary | ||
*.mp4 binary | ||
*.ts binary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, will this convert typescript files too? 🤔
|
||
return new Response(body, { | ||
headers: new Headers({ | ||
'Content-Type': `image/${contentType}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whoa... this is really wrong 😬
Wonder how it's still working though?? 🤨
27a2440
to
1e02188
Compare
25a277e
to
7e6604b
Compare
So maybe I have been over thinking this or misinterpreting some of the data I read, but it seems like .mp4 and .3pg are both video (container) formats, so maybe we don't need any of this generic container format handling.
This would just leave .ogg then, which does seem to be a container format and seems like we can just use a generic content type instead of trying to "sniff" it out
That said, the |
58b06c0
to
7157728
Compare
* add support for standard video formats * fix content type in video response * restore content length header for Safari support * remove standard .ts video format support * adding audio resource support and adding test cases * misc refactor * refactor audio and video files according to better understanding of container formats * clean up TODO comment
* add support for standard video formats * fix content type in video response * restore content length header for Safari support * remove standard .ts video format support * adding audio resource support and adding test cases * misc refactor * refactor audio and video files according to better understanding of container formats * clean up TODO comment
Related Issue
resolves #1038
Summary of Changes
<video>
and<audio>
formatsContent-Length
header which was needed by Safari (will make more robust as part handle merging additionalRequest
/Response
instance properties #1048)serve
commandTODO
<audio>
formatsbreak
on first come, first serve 🤔Accept
header?How to best handle Safari for generic media container formats?- solved through above solution?type=audio|video
?https://developer.apple.com/library/archive/documentation/AppleApplications/Reference/SafariWebContent/CreatingVideoforSafarioniPhone/CreatingVideoforSafarioniPhone.html#//apple_ref/doc/uid/TP40006514-SW6
Documentation / callout about asset handling on Safari- N / ARequest
/Response
instance properties #1048Error: read ECONNRESET at TCP.onStreamRead (node:internal/stream_base_commons:217:20)