javascript - HTML5: Video on the iPad - Custom Zoom Control -
i've created smaller uiwebview on ipad, , i've written own html5 controllers video. when maximize video it's showing pure black screen (rather actual video). sound still working , can still pause , hit play, have black video. (also when go minimized mode video isn't there more).
this of course works fine in web browser, not on ipad.
here maximize code:
function fullscreenon(){ videoisfullscreen = true; videoorigwidth = video.offsetwidth; videoorigheight = video.offsetheight; video.style.width = window.innerwidth + "px"; video.style.height = window.innerheight + "px"; video.style.position = "fixed"; video.style.left = 0; video.style.top = 0; controls.style.position = "fixed"; positioncontroller(); fullscreencontrol.classname = "fs-active control"; } function fullscreenoff(){ videoisfullscreen = false; video.style.width = videoorigwidth + "px"; video.style.height = videoorigheight + "px"; video.style.position = "static"; controls.style.position = "absolute"; positioncontroller(); fullscreencontrol.classname = "control"; }
the video variable container.
if entertains you.. screenshot:
cheers
i'm working on similar, , i've found setting position = 'absolute' on video element causes stop displaying video.
Comments
Post a Comment