How do you get safari on iphone to automatically close a video and return to web page?
I guess it is some javascript but cant figure out what - I would probably use
myVideo.addEventListener('ended',handleEvent,false);
But not too sure what to do onc开发者_运维技巧e the event is fired
Someone has asked the same question before, and please check it here: Closing iPhone Video Player using Javascript
jQuery -
$('video').get(0).webkitExitFullScreen();
Uncertain what iOS version this was supported.
Hope above helps!
精彩评论