Open Bug 1039871 Opened 6 years ago Updated 4 months ago

Add support to HTML media element for determining the mimetype of a loaded media file

Categories

(Core :: Audio/Video: Playback, defect)

x86
macOS
defect
Not set
normal

Tracking

()

Webcompat Priority revisit
Tracking Status
firefox66 --- affected

People

(Reporter: mfinkle, Unassigned)

References

Details

(Whiteboard: [webcompat])

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 ?
Component: Audio/Video → Audio/Video: Playback
Let me know if this becomes important.
Flags: webcompat?
Whiteboard: [webcompat]

On https://webcompat.com/issues/22931

<video
  class=""
  playsinline="true"
  webkit-playsinline="true"
  tabindex="2"
  mediatype="video"
>
  <source
    class=""
    src="//v1-tt.ixigua.com/1c7d1a96016216c96d1dfebe8f06201b/5c4e5b38/video/m/2206106dcae230b4fee9c985c343dd6221d115d8d8900004aeeb9c9120c/?rc=M2RpbDo7OjdlaDMzPDczM0ApQHRAbzQ0NjM2MzQzMzc1MzUzNDVvQGgzdSlAZjN1KWRzcmd5a3VyZ3lybHh3Zjo1QG4wLy5mbmxtcF8tLTQtL3NzLW8jbyMzLTMvNDItLjAvNTUuNi06I28jOmEtcSM6YHZpXGJmK2BeYmYrXnFsOiMuLl4%3D&amp;vfrom=xgplayer"
    type=""
  />
  <source
    class=""
    src="//v3-tt.ixigua.com/ad2630868ef71024b378ba3d1eb17604/5c4e5b38/video/m/2206106dcae230b4fee9c985c343dd6221d115d8d8900004aeeb9c9120c/?rc=M2RpbDo7OjdlaDMzPDczM0ApQHRAbzQ0NjM2MzQzMzc1MzUzNDVvQGgzdSlAZjN1KWRzcmd5a3VyZ3lybHh3Zjo1QG4wLy5mbmxtcF8tLTQtL3NzLW8jbyMzLTMvNDItLjAvNTUuNi06I28jOmEtcSM6YHZpXGJmK2BeYmYrXnFsOiMuLl4%3D&amp;vfrom=xgplayer"
    type=""
  />
</video>

Migrating Webcompat whiteboard priorities to project flags. See bug 1547409.

Webcompat Priority: --- → ?

See bug 1547409. Migrating whiteboard priority tags to program flags.

Webcompat Priority: ? → revisit
You need to log in before you can comment on or make changes to this bug.