S
S
Sergey Sokolov2018-08-15 17:41:48
JavaScript
Sergey Sokolov, 2018-08-15 17:41:48

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/mp4both 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

1 answer(s)
A
Alexander Wolf, 2018-08-15
@mannaro

https://stackoverflow.com/questions/7451635/how-to...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question