Skip to content

Commit

Permalink
Test for Opus support
Browse files Browse the repository at this point in the history
  • Loading branch information
Yves Van Goethem committed Oct 11, 2012
1 parent eb0be9a commit e933050
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
Binary file added public/sounds/acid.opus
Binary file not shown.
Binary file added public/sounds/long.opus
Binary file not shown.
Binary file added public/sounds/mini.opus
Binary file not shown.
Binary file added public/sounds/short.opus
Binary file not shown.
8 changes: 8 additions & 0 deletions public/tests/support-format-opus.js
Original file line number Diff line number Diff line change
@@ -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.