Consider sniffing to detect m3u8 sent as content-type:text/plain, as Chrome seems to
Categories
(Core :: Audio/Video: Playback, defect, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox81 | --- | fixed |
People
(Reporter: twisniewski, Assigned: padenot)
References
Details
(Keywords: parity-chrome)
Attachments
(1 file)
Right now, Chrome is able to detect and play the m3u8 stream at https://g-o-group.com/movies/2553206a94505 (warning: NSFW) despite it being served as text/plain. Firefox fails, but if I compile a local build which treats text/plain as audio/x-mpegurl, then it too works fine (I tried using a web-extension to re-rewrite the content type of the request, but the related code in HTMLMediaElement.cpp doesn't seem to notice the overidden value).
Perhaps Chrome does some kind of simple content sniffing that we ought to match?
Updated•5 years ago
|
Reporter | ||
Updated•5 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Comment 1•4 years ago
|
||
Removing the URL as it's gone.
Assignee | ||
Comment 2•4 years ago
|
||
We should do this. On mobile, m3u8
is considered media, it can be played directly in HTMLMediaElement
.
Assignee | ||
Comment 3•4 years ago
|
||
We should also add this to https://mimesniff.spec.whatwg.org/#sniffing-in-an-audio-or-video-context
Assignee | ||
Comment 4•4 years ago
|
||
More spec references: https://html.spec.whatwg.org/#loading-the-media-resource:
To determine the format of the media resource, the user agent must use the rules for sniffing audio and video specifically.
but we need to add it to the sniffing rules.
Assignee | ||
Comment 5•4 years ago
|
||
(In reply to Paul Adenot (:padenot) from comment #3)
We should also add this to https://mimesniff.spec.whatwg.org/#sniffing-in-an-audio-or-video-context
Assignee | ||
Comment 6•4 years ago
•
|
||
a
Updated•4 years ago
|
Pushed by padenot@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0bed87941dc5 Sniff .m3u8 files as application/vnd.apple.mpegurl. r=jya
Comment 8•4 years ago
|
||
bugherder |
Description
•