d2jsp
Log InRegister
d2jsp Forums > d2jsp > General Help > Site Suggestions > .gifv Extension Is Not A Valid Media Type
Closed New Topic New Poll
Member
Posts: 24,488
Joined: Jul 11 2011
Gold: 1,272.50
Aug 21 2015 03:56pm
Quote
Use the new URL tag. It supports mp4, ogg, webm, and gifv extensions. Not all browsers support all of these, nor every encoding.


The .gifv extension is not a valid HTML 5 video property. No browser supports the .gifv extension as a valid HTML 5 media type. Run this on any browser: https://jsfiddle.net/Lb1ndj4L/


For example, this url: http://i.imgur.com/kfrpYVc.gifv

The parser will match the .gifv extension and it will become unsupported:



Code
<video width="560" height="315" controls="" src="http://i.imgur.com/kfrpYV5c.gifv"></video>


Some solutions:
1) Replace the .gifv extension to .webm while parsing.
2) Don't match the .gifv as a valid media type extension

This post was edited by HighschoolTurd on Aug 21 2015 04:01pm
Go Back To Site Suggestions Topic List
Closed New Topic New Poll