YouTube video auto start

fonz's Avatar

fonz

03 Sep, 2012 08:35 PM

I am trying to setup a slideshow showing a youthbe video autoplayed at the beginning and then slideshow images. I have started by playing around with http://thebizservices.net/beta/templates2/video-gallery/index1.html

A few questions issues that hopefully you can help me with:

1) I can't seemed to figure out how to autplay the first vide.
2) If I play the first video and then jump to the second video, I still hear the first video play. What do we need to do to have it stop when the second video or image is loaded?

Thanks.

  1. Support Staff 1 Posted by Dmytro Semenov on 05 Sep, 2012 05:18 AM

    Dmytro Semenov's Avatar

    Hi,

    You can't autoplay videos automatically. To do this you'll have to call playVideo() public method after slider initialization.

    What browser are you using? Do you have same issue with playing videos on examples online?

    Dmitry

  2. 2 Posted by fonz on 05 Sep, 2012 05:33 AM

    fonz's Avatar

    Do you have an example of autoplay working with your software? I am using IE9. Although it should work with any browser. I have seen video autoplay before on my briowser, just not with Royalslider.

  3. Support Staff 3 Posted by Dmytro Semenov on 07 Sep, 2012 04:50 AM

    Dmytro Semenov's Avatar

    Have you added play video public method after initialization? You may even delay it.

    Like this

        setTimeout(function() {
            $('.royalSlider').royalSlider('playVideo');
        }, 200);
    

    Dmitry

  4. 4 Posted by yvette on 29 Nov, 2012 10:32 PM

    yvette's Avatar

    I have implemented this method to the code and now I get a very small box playing the vid on top of the original one.
    Please take a look:
    http://www.myfitlyf.com/homepage.php#/running

  5. Support Staff 5 Posted by Dmytro Semenov on 30 Nov, 2012 02:25 PM

    Dmytro Semenov's Avatar

    @yvette I see only landing page on that link and no slider.

    Dmitry

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac