Forums

This topic contains 1 reply, has 2 voices, and was last updated by  dhruvang 6 months, 1 week ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #266963

    Michael Smith
    Participant

    I would like to make a custom play / pause button like the one featured here, but with Wistia:

    Play and Pause Buttons for YouTube and Vimeo Videos (via Their APIs)

    However, I am not a developer. I would be more then happy to compensate someone for their time.
    Thank you,
    – Mike

    #274059

    dhruvang
    Participant

    Replace <VIDEO> with your wistia Video ID

    This will works

    <a href="//fast.wistia.com/assets/external/E-v1.js">//fast.wistia.com/assets/external/E-v1.js</a>
    &lt;div class=&quot;wistia_embed wistia_async_<VIDEO>" style="width:640px;height:360px;"&gt;</div>
    <button id="play">Play</button>
    <button id="pause">Pause</button>
    
        window._wq = window._wq || [];
        _wq.push({
            id: "<VIDEO>", onReady: function (video) {
                console.log("I got a handle to the video!", video);
            }
        });
        $("#play").click(function () {
            _wq.push({
                id: "<VIDEO>", onReady: function (video) {
                    video.play();
                }
            });
        })
        $("#pause").click(function () {
            _wq.push({
                id: "<VIDEO>", onReady: function (video) {
                    video.pause();
                }
            });
        })
    
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

icon-link icon-logo-star icon-search icon-star