Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Custom HTML5 play/pause button

  • This topic is empty.
Viewing 3 posts - 16 through 18 (of 18 total)
  • Author
    Posts
  • #262133
    Shikkediel
    Participant

    Older versions of iOS seem to be quite restrictive with video elements…

    https://webkit.org/blog/6784/new-video-policies-for-ios/

    #262182
    grimski
    Participant

    I’m going to go through that now and give everything a good check.

    Just wondering, if I wanted to wrap the buttons in a div like .controls would I just swap the javascript that refers to $(this).siblings('video'); for just $('.controls');.

    #262183
    Shikkediel
    Participant

    I think the scrolling effect will likely not work on early iOS but the buttons themselves should.

    The line you mentioned would become this:

    $(this).parent().siblings('video');
    

    Plus a few other small changes, which I’ve added already:

    codepen.io/Shikkediel/pen/qVBOPo

Viewing 3 posts - 16 through 18 (of 18 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.