Created
June 17, 2019 19:43
-
-
Save vitaliy-bobrov/15e463273f7a441272a0c465439fc6a5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const audio = document.createElement('audio'); | |
console.log(audio.canPlayType('audio/wav')); // "maybe" | |
if (!audio.canPlayType('audio/wav')) { | |
console.log('The format is not supported!'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment