how to get video's real size in html5 -


to play video in html5 correctly,i save videowidth , videoheight values of video when capturing loadedmetadata event.what surprised me both values 100 on android browse while 480*640 on iphone safari real size. find reason, i've tried other browsers such chrome,uc.i surprised find values of videowidth , videoheight wrong under various android browses.why?can help!

it appears issue metadata loading , when query size default 100x100. if specific check after durationchange event shows duration greater 1s see correct values videowidth , videoheight (i've found html5 video in android relying on before duration shows greater initial default of 1s problematic)


Comments

Popular posts from this blog

c++ - End of file on pipe magic during open -

basic authentication with http post params android -

data.table making a copy of table in R -