WordPress.org

Forums

Cool Video Gallery
[resolved] Autoload/autoplay after page load (17 posts)

  1. smudboy
    Member
    Posted 4 years ago #

    I really like the popup video player, and I'm trying to get that to work on pageload.

    I'm trying to get the video I load (on a homepage) to play immediately after the page loads, as opposed to having the user click on the video. I hide the gallery in a div "display: none" tag.

    Is there anyway to do this? I'm currently just using the cvgSlideShowWidget(1) in a template.

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

  2. Praveen Rajan
    Member
    Plugin Author

    Posted 3 years ago #

    @smudboy

    You could trigger the click on the video link on document ready using jQuery functionalities.

    Thanks
    Praveen

  3. smudboy
    Member
    Posted 3 years ago #

    I'm not familiar with jQuery functionalities for loading a file into.

    I put it into the window.onload = function() event, which is the same place I call the video from vimeo.

    It goes like this:
    jQuery.prettyPhoto.open('http://vimeo.com/23856236','Title','Message');

    I tried doing this:
    jQuery.prettyPhoto.open('http://mydns.com/mydir/myvideo.flv?width=600&height=600','Title','Message');

    but no dice.

  4. Praveen Rajan
    Member
    Plugin Author

    Posted 3 years ago #

    @smudboy,

    May I know is this for activating Cool Video Gallery or any other plugin which you are using?

    You could use

    jQuery(document).ready(function(){
    });

    Thanks
    Praveen

  5. karenratte
    Member
    Posted 3 years ago #

    HI there, I like the plugin a lot. I need to create a buffer of 8 seconds or so, so the video may load before playing. I can do this in the normal JW Player for WordPress, but I am unfamiliar with how to do this with your great plugin. I am not a programmer and can only modify some code and follow instructions. thanks for your help and thanks for the plugin.

  6. smudboy
    Member
    Posted 3 years ago #

    I just want a solution that works.

    Previously, I was using

    <?php cvgShowCaseWidget(1); ?>
    and then
    <?php cvgSlideShowWidget(1); ?>

    Which successfully loaded the gallery. However, I hid that gallery. Now I'm trying to access the object (like, an id of the gallery) to run the video in a popup on page load, instead of having to click on it. I was thinking something like a getElementByID command.

  7. Praveen Rajan
    Member
    Plugin Author

    Posted 3 years ago #

    @karenratte

    Could you share how you are able to do the same with normal JW Player.

    Thanks
    Praveen

  8. Praveen Rajan
    Member
    Plugin Author

    Posted 3 years ago #

    @smudboy

    May I have a sample page hosted so that I can examine the structure of your HTML content.

    Thanks
    Praveen

  9. smudboy
    Member
    Posted 3 years ago #

  10. Praveen Rajan
    Member
    Plugin Author

    Posted 3 years ago #

    @smudboy

    I couldn't find anything related to cool video gallery that you are planning to integrate in the link provided.

  11. smudboy
    Member
    Posted 3 years ago #

  12. karenratte
    Member
    Posted 3 years ago #

    @Praveen
    thanks for answering..
    In the JW Player plugin for WordPress there are many options. Under Advanced Settings and Rendering there is a line that says Bufferlength. this is how the post looks when I add it manually.

    [jwplayer config="Home Page" mediaid="148" Bufferlength=8 Duration="2:13"]
    Does that answer your question?

  13. karenratte
    Member
    Posted 3 years ago #

    @praveen
    Perhaps what I am asking for is that there be somewhere to put shortcut codes? For us uninitiated into the world of actual coding?

  14. Howiej
    Member
    Posted 3 years ago #

    Hi,
    1st off thanks for a great plugin, it's very cool.

    Am wondering if smudboy found a resolution to his needs ?

    I too want to auto play on page load, you can see the demo site for the example on
    http://11w.co.uk

    Ideally I'd like the 1st vid (about us) to start .... any help is very much appreciated

    Thanks,

    Howiej

  15. smudboy
    Member
    Posted 3 years ago #

    @Howiej

    Not yet. I still don't know how to load a video and play it automatically on page load through jQuery in a template.

  16. harun666
    Member
    Posted 3 years ago #

    Hi smudboy, I can see you figured out how to do it on http://www.greengrocerinc.ca. I am looking to do exactly the same thing (i.e, autoplay a video the 1st time someone visits the site, although I am using prettyphoto.js not jwplayer)

    I would be eternally grateful if you could share your knowledge.

    Thanks in advance.

  17. Praveen Rajan
    Member
    Plugin Author

    Posted 3 years ago #

    @harun666

    Autoplay feature in the above mentioned link is done using jQuery.prettyPhoto and not cool video gallery.

    window.onload = function() {
     jQuery.prettyPhoto.open('url','Title','Description');
    };

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Cool Video Gallery
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic