开发者

How can Safari on iPhone automatically close a played video [duplicate]

开发者 https://www.devze.com 2023-02-11 22:37 出处:网络
This question already has answers here: HTML5 video player behavior on iPhone and iPod in Safari Web Apps
This question already has answers here: HTML5 video player behavior on iPhone and iPod in Safari Web Apps (2 answers) Closed 8 years ago.

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!

0

精彩评论

暂无评论...
验证码 换一张
取 消