Answer the question
In order to leave comments, you need to log in
How to determine if the browser can local video file in a given format?
The user uploads a video to the site. Selects a local video file from a computer / phone and wants to show it right away, if possible. On top there makes a preview of the "design" of this video, the user selects an option.
mp4 seems to show without problems, but .mov does not always. Sometimes there is sound and a black screen (in the browser).
How can browser/JS tools immediately determine whether a given file will play normally in a given environment? videoElement.canPlayType()
returns the encouraging "maybe" to video/mp4
both video/quicktime
. That does not add certainty.
Two files, both .mov - one plays fine, the other with a black screen. I want to feel the difference through JS.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question