Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Dustin Lammiman

    (@nosecreek)

    Once the video is playing, the default behaviour is for the controls to show on hover. Is this not happening for you? What browser are you using?

    Thread Starter Elise_

    (@elise_)

    Unfortunately no, the controls show only on click when the video is playing… It happens on every browser and computer tested, so I guess there must be a conflict with another plugin or javascript. I’m using the X Theme.

    Thread Starter Elise_

    (@elise_)

    Well I managed to make it work with a bit of simple custom JS, that’s all my simple brain could come up with ??

    jQuery(function($) {
        $('.video-wrapper').mouseover(function() {
            if (jQuery('div').hasClass("vjs-playing")) {
                jQuery('.vjs-control-bar').addClass("vjs-lock-showing");
            }
    
        });
    });
    
    jQuery(function($) {
        $('.video-wrapper').mouseout(function() {
            if (jQuery('div').hasClass("vjs-playing")) {
                jQuery('.vjs-control-bar').removeClass("vjs-lock-showing");
            }
        });
    });
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show controls on hover’ is closed to new replies.