Support » Plugin: Cool Video Gallery » [Plugin: Cool Video Gallery] Getting cool Video and IPAD – quick fix

  • Resolved saibotny


    Hello Folks,

    First of all, the cool video gallery plugin is excellent, hats off to Praveen for the hard work. Plugin development is not easy , the open source community thanks you.

    I ran into an issue getting the videos to work on my ipad / iphone devices , I searched around for solutions and found none that were easy to implement for a “non techie” I finally came up with a simple solution to get he gallery to work with these devices. I added an iphone detector into the php code where the video output is displayed. Here is what i did;

    1 – open cool-video-gallery.php in the plugin folder
    2- go to around line 655 and replace this line of code

    $output .=  '<a href="' . $video['filename'] . '" title="' . $video['title'] . '" rel="shadowbox[' . $video['name'] . '];height=' . $player_height .';width=' . $player_width . '">' ;

    with this block of code

    if(strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad'))
       $output .=  '</a><a href="' . $video['filename'] . '" title="' . $video['title'] . '">' ;
        $output .=  '</a><a href="' . $video['filename'] . '" title="' . $video['title'] . '" rel="shadowbox[' . $video['name'] . '];height=' . $player_height .';width=' . $player_width . '">' ;

    its not fancy but it gets the job done. hope this helps somone


Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Praveen Rajan



    Great workaround 🙂

    I will be releasing another version which supports video playback in iOS devices also. In the meantime, anyone can move ahead with the solution provided.

    Praveen Rajan

    I would love to beta test that 🙂

    Hello, I just uploaded a couple of galleries to my website using Cool Video Gallery and it looked great. When I discovered it didn’t work on the ipad, I tried replacing the code as you suggest, but when I altered the cool-video-player.php file, my whole site ceased to work. I then tried editing using the WordPress editor, but each time the plugin was disabled due to a fatal error. I’d be very grateful for any suggestions you might have. I am using the Unsigned Wootheme. Thanks, Sam

    Hi there,
    while the video plays on iPad, it seems to take 3 clicks to get the video to play. Any ideas?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Cool Video Gallery] Getting cool Video and IPAD – quick fix’ is closed to new replies.