Permalink
Browse files

Test for Opus support

  • Loading branch information...
1 parent eb0be9a commit e933050e3a800b105bb30318eb3aeaec452bfb79 Yves Van Goethem committed Oct 11, 2012
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
@@ -0,0 +1,8 @@
+({
+ name: 'support-format-opus',
+ description: 'Supports Opus format',
+ assert: function(finish) {
+ var audio = this.audio;
+ finish(/probably|maybe/.test(audio.canPlayType('audio/ogg; codecs="opus"')));
+ }
+})

0 comments on commit e933050

Please sign in to comment.