With an HTML5 video element on the iphone, how can I detect the difference between “pause” and “done”?

☆樱花仙子☆ 提交于 2019-11-28 20:48:37
Brenton

This is the event your looking for:

player.addEventListener('webkitendfullscreen', onVideoEndsFullScreen, false);

This event does indeed fire when the user presses the 'done' button. (iPhone/iTouch)

Was answered in this question, How to figure out when a HTML5 video player enters the full screen mode on iOS / iPads?

This just leaves the home button event...for which there seems to be no reliable event for (see bottom 2 posts) https://discussions.apple.com/thread/4182660?start=0&tstart=0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!