Open Bug 1039871 Opened 7 years ago Updated 4 months ago
Add support to HTML media element for determining the mimetype of a loaded media file
The second screen features really wants to know the mimetype of a video file/stream so we know what second screen devices would support playing the video file/stream. I didn't find an existing way to get the mimetype. Right now we guess at the mimetype by looking for a file extension on the <video src> or video.currentSrc property. Many video sites don't bother to use a file extension - they don't need to. We also look for child <source> elements, which do support a "type", but many video sites don't bother to use <source> children. Once a person starts to play a <video>, we should be able to definitively know the media file format and we can decide which second screen devices are capable of playing the video. Maybe add video.mozMimeType ?
Let me know if this becomes important.
Webcompat Priority: --- → ?
You need to log in before you can comment on or make changes to this bug.