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
Post a Comment