Revolution Slider - Issues with Vimeo Auto Play for Background

Hey there. I’m using Revolution Slider to create 3 slides. All slides are using background images instead of adding the content to the slide stage itself (for slide transition purposes).

The third slide is a video. Even though I have set:

title=0&byline=0&portrait=0&api=1**&autoplay=0**

It still auto plays…and refreshing the page it shows my &autoplay=0 being removed.

Is there something I need to be doing in order to STOP the video from auto playing (again, this is a background image vs a layer?

Thanks!!!

You can see the working example here: https://stable.stable-demos.com/cora/ about 3/4 of the way down the page by the element that has 3 dots like a Mac Safari Browser :slight_smile:

main-bg|673x500

At a guess and if I’m looking at the right thing you have set autoplay to zero and then later on to to true which I assume will equal 1.

<!-- BACKGROUND VIDEO LAYER -->
		<div class="rs-background-video-layer" 
			data-volume="100" 
			data-vimeoid="285129141" 
			data-videoattributes="title=0&byline=0&portrait=0&api=1&autoplay=0" 
			data-videowidth="100%" 
			data-videoheight="100%" 
			data-videocontrols="none" 
			data-videoloop="none" 
			data-forceCover="1" 
			data-aspectratio="16:9" 
			data-autoplay="true" 
			data-autoplayonlyfirsttime="false" 
></div>

i.e.

data-videoattributes="title=0&byline=0&portrait=0&api=1&autoplay=0" 
data-autoplay="true"

The generated iframe is showing 2 autoplays so I guess you are adding it twice as mentioned above.

<iframe src="https://player.vimeo.com/video/285129141?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=0&amp;player_id=iframe78576?autoplay=1&amp;autopause=0&amp;muted=1&amp;background=1&amp;playsinline=1" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" width="100%" height="100%" style="opacity: 1;visibility: inherit;width: 124.444%;height: 100%;position: absolute;top: 0px;left: -12.2222%;display: block;" id="iframe78576" data-ready="true" class="resizelistener"></iframe>

i.e.
autoplay=0&amp;player_id=iframe78576?autoplay=1

Ah, very kind of you. Unfortunately, using Revolution Slider, I don’t believe we have access to that depth of code. There are only a few parameter options that you can chance - I was hoping to find the answer to where these options are within the Revolution Slider interface.

Thank you!

How is this html generated?

<!-- BACKGROUND VIDEO LAYER -->
		<div class="rs-background-video-layer" 
			data-volume="100" 
			data-vimeoid="285129141" 
			data-videoattributes="title=0&byline=0&portrait=0&api=1" 
			data-videowidth="100%" 
			data-videoheight="100%" 
			data-videocontrols="none" 
			data-videoloop="none" 
			data-forceCover="1" 
			data-aspectratio="16:9" 
			data-autoplay="true" 
			data-autoplayonlyfirsttime="false" 
></div>

is that added automatically by the revolution slider code or by you?

It’s generated by Revolution slider. I’m assuming based on the information set on the slide (ie: the settings I can’t find! :stuck_out_tongue: )

Does this link help?

I know that If i manually change autoplay to false here then your slider doesn;t play.


		<!-- BACKGROUND VIDEO LAYER -->
		<div class="rs-background-video-layer" 
			data-volume="100" 
			data-vimeoid="285129141" 
			data-videoattributes="title=0&byline=0&portrait=0&api=1" 
			data-videowidth="100%" 
			data-videoheight="100%" 
			data-videocontrols="none" 
			data-videoloop="none" 
			data-forceCover="1" 
			data-aspectratio="16:9" 
			data-autoplay="false" 
			data-autoplayonlyfirsttime="false" 
></div>

Yup, unfortunately, it’s dynamically generated so I wouldn’t be able to change it via the code, since Rev Slider will just overwrite it :confused: Truly, there has to be an option somewhere…I’ll keep searching. Thanks for looking into it either way, Paul!

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.