Closing iPhone Video Player using Javascript

后端 未结 1 1671
余生分开走
余生分开走 2021-02-10 07:59

I have a web page with several html5 tags, offering users a number of posters/thumbnails for videos they can choose to play. When a user touches one of the them the iPhone vide

1条回答
  •  心在旅途
    2021-02-10 08:49

    jQuery -

    $('video').get(0).webkitExitFullscreen();
    

    Uncertain what iOS version this was supported. See The correct method is webkitExitFullscreen. See https://developer.mozilla.org/en-US/docs/Web/Guide/API/DOM/Using_full_screen_mode for full support

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