This repository is a mirror of the component module yields/canplaytype. It has been modified to work with NPM+Browserify. You can install it using the command npm install npmcomponent/yields-canplaytype
. Please do not open issues or send pull requests against this repo. If you have issues with this repo, report it to npmcomponent.
Audio canplaytype douchebaggery removed
$ component install yields/canplaytype
the type is defaulted to audio/mpeg;
.
canplaytype();
// > maybe
// no window.Audio
canplaytype();
// > false
// cannot play the given type
canplaytype('foo');
// > false
MIT