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

前端 未结 1 586
死守一世寂寞
死守一世寂寞 2020-12-14 11:55

This is an extension of this question

According to my research, for a video element on an iPhone/iPad, pressing both \"Done\" and \"Pause\" triggers a \"pause\" even

1条回答
  •  悲&欢浪女
    2020-12-14 12:10

    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

    0 讨论(0)
提交回复
热议问题