zzxxpp1011239740 / webp

Automatically exported from code.google.com/p/webp
0 stars 0 forks source link

webp browser detect #67

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
How do you detect a browser can view webp?
html5 video has
media.canPlayType(type)
If images are a valid media type, then it would be something like
 var support = imageElement.canPlayType('image/webp;codecs="vp8,vp9"');

Original issue reported on code.google.com by fbarch...@google.com on 5 Apr 2011 at 9:35

GoogleCodeExporter commented 9 years ago
An example of detecting WebP using data: URIs is in the weppy library:

http://antimatter15.github.com/weppy/weppy.js

Search for "WebPTest".

Original comment by thecybershadow on 3 May 2011 at 9:56

GoogleCodeExporter commented 9 years ago
Another example was posted recently:
https://groups.google.com/a/webmproject.org/group/webp-discuss/browse_thread/thr
ead/b8d7aed7208a5294#

Original comment by jz...@google.com on 18 Oct 2011 at 1:50

GoogleCodeExporter commented 9 years ago
This isn't a bug with libwebp, it deals more with implementation than anything. 
webp-discuss@ is a better place for things like this.

Original comment by jz...@google.com on 3 Aug 2012 at 8:36