Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ramonesmania

    (@ramonesmania)

    Is there any way to disable the plugin when the window is less than 768 pixels?

    I assume that i should add here the code for testing the window width

    function isMobile()
    {
    // Check the server headers to see if they're mobile friendly
        if (isset($_SERVER["HTTP_X_WAP_PROFILE"])) {
            return true;
        }
    // If the http_accept header supports wap then it's a mobile too
        if (preg_match("/wap.|.wap/i", $_SERVER["HTTP_ACCEPT"])) {
            return true;
        }
        if (preg_match("/iphone|ipad/i", $_SERVER["HTTP_USER_AGENT"])) {
            return true;
        }
    // None of the above? Then it's probably not a mobile device.
        return false;
    }

    can somebody help me with that?

    Plugin Author pupunzi

    (@pupunzi)

    Hi,
    The plug in check itself if it’s running on a mobile device and in that case it doesn’t render the video. you should test your page on a mobile, not on the desktop browser.

    If you want you can anyway initialize the plugin only if the device is not a mobile (working on the mbYTPlayer.php file if you are using the WordPress one).

    Bye,
    Matteo

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Responsive Menu not collapsing after expand’ is closed to new replies.