Support » Plugin: Featured Video Plus » Hover instead of Click for play

  • Hampus

    (@hampus)


    Hi and thanks for this fantastic plugin.

    I’m using it to show off videos in my videographer portfolio. I get them to play beautifully but since I need people to be able to click on the videos to see the full film I would like to change the play command from on.click to when mouse is over the clip.

    I’m trying to use this code but to no success.

    var figure = $(".wp-video-shortcode").hover( hoverVideo, hideVideo );
    
    function hoverVideo(e) {  
        $('video', this).get(0).play(); 
    }
    
    function hideVideo(e) {
        $('video', this).get(0).pause(); 
    }

    So in short. How to make the play command hover instead of click? So I films can become clickable and link into the portfolio item.

    Many thanks.

    The page I need help with: [log in to see the link]

  • You must be logged in to reply to this topic.