I'm trying to detect if a local file (or blob), that I don't know the type, can be play by the browser...
I can actually do this :
- By using a setTimeout and onload, but we never now when the onload funtion will be fired...
- By Using the file.type but it only uses the file name...
- By using the readArrayBuffer, no way with big file...
Is there any way to detect if a file from the input file button can be play or not ?