WordPress.org

Ready to get started?Download WordPress

Forums

Cool Video Gallery
[resolved] Getting cool Video and IPAD - quick fix (6 posts)

  1. saibotny
    Member
    Posted 2 years ago #

    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'] . '">' ;
    }
    else
    {
        $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

    Thanks
    Regards
    George
    Saibotny.com

    http://wordpress.org/extend/plugins/cool-video-gallery/

  2. saibotny
    Member
    Posted 2 years ago #


  3. Praveen Rajan
    Member
    Plugin Author

    Posted 2 years ago #

    @saibotny

    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.

    Thank,
    Praveen Rajan

  4. saibotny
    Member
    Posted 2 years ago #

    I would love to beta test that :)

  5. samhaywood
    Member
    Posted 2 years ago #

    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

  6. phantasmix
    Member
    Posted 1 year ago #

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

    Thank you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic