Search…

X3 Photo Gallery Support Forums

Search…
 
steveman0018
Experienced
Topic Author
Posts: 31
Joined: 09 Apr 2012, 19:42

Question about making youtube video auto start

25 Jul 2012, 21:53

Hello,

sorry if this has been reposted. I am running latest version 2.8.1 downloaded 7-25-2012... I want to know if there is a way to make the youtube video i add into an image auto start. For example in my gallery of cars, i go through my images and when i hit the image that I add a lightbox youtube link to, i have to click the image to make the link open. Is there a line of code where I will automatically start the lightbox as soon as the image appears. My goal is to add my youtube video to my gallery and i will just put a video image up which would automatically load up the youtube video in lightbox. Similar to how the mp4 and flv loads. as soon as you get to a video in your gallery you added, it auto starts it
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Question about making youtube video auto start

26 Jul 2012, 00:20

Add to the Youtube video URL:
Code
&autoplay=1
For example:
http://www.youtube.com/embed/ZHLNS5m-aD ... autoplay=1[/b]
 
steveman0018
Experienced
Topic Author
Posts: 31
Joined: 09 Apr 2012, 19:42

Re: Question about making youtube video auto start

26 Jul 2012, 09:48

Hello and thanks for your help, however i knew about that. What I am looking for is for lightbox to automatically open the video link without clicking the image. Similar to how you upload an flv or mp4 video, once you get to it on your gallery, it automacally loads a lightbox window and video starts. Thats what I am looking for with video links
 
failax
Experienced
Posts: 84
Joined: 24 Apr 2012, 03:38

Re: Question about making youtube video auto start

26 Jul 2012, 12:57

mjau-mjau wrote:Add to the Youtube video URL:
Code
&autoplay=1
For example:
http://www.youtube.com/embed/ZHLNS5m-aD ... autoplay=1[/b]
I don't manage to make work this url..


http://www.youtube.com/embed/fa4BD5P_SEI

Thanks
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Question about making youtube video auto start

27 Jul 2012, 02:03

steveman0018 wrote:Hello and thanks for your help, however i knew about that. What I am looking for is for lightbox to automatically open the video link without clicking the image. Similar to how you upload an flv or mp4 video, once you get to it on your gallery, it automacally loads a lightbox window and video starts. Thats what I am looking for with video links
This is a bit difficult ... Basically you are asking "how to open the image without clicking the image". Please tell me, do you have only one files in your folder? If so, why use a thumbnail at all, why not just add the vide link to the menu???

If you have multiple files, then what, you want Imagevue to automatically opent the "first" video and start playing it?
 
steveman0018
Experienced
Topic Author
Posts: 31
Joined: 09 Apr 2012, 19:42

Re: Question about making youtube video auto start

27 Jul 2012, 22:37

I try and make it a little clearer. In my galleries for example, my dog and my car. I have videos on youtube that I would like to add into my gallery. Right now what i have to do it turn on links in attributes and then have to change click from next to link. I paste the code into an image under the link attribute. I upload an image that represents the youtube video that will show up in lightbox. When you get to this image, you need to click it in order for lightbox to open with the youtube video. What I am looking for is if there was a line of code that would instead of having to click the image, if it sees a link, it will automatically open the link in lightbox without having to click..
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Question about making youtube video auto start

28 Jul 2012, 03:27

The thing is, normally people use this feature for thumbnails. Eg. when you click a thumbnail, the video opens ... Why are you even having a full-size image representing the video in the first place, if you dont want the full-size image to display? I would suggest changing to thumbnails view for this folder, so that when the visitor clicks a thumbnail, the video starts and automatically plays.

I cant see how a visitor would like to click a folder, and then a video opens up and plays automatically. How do I know there are more videos? Its hardly a slideshow ... If you only want one video for a folder, then just add the video link directly to the menu. If you have multiple videos, then use thumbnails layout instead ... How can someone navigate between videos, or even know there are more videos if it opens directly on first video? ... when it closes, I would see an image, and then click next, and the video would start playing even before I know what the next file is? This is not logical ...

Sorry, the feature you are asking for is not possible currently in Imagevue. Instead I would recommend you consider the advice above.
 
failax
Experienced
Posts: 84
Joined: 24 Apr 2012, 03:38

Re: Question about making youtube video auto start

29 Jul 2012, 07:37

failax wrote:
mjau-mjau wrote:Add to the Youtube video URL:
Code
&autoplay=1
For example:
http://www.youtube.com/embed/ZHLNS5m-aD ... autoplay=1[/b]
I don't manage to make work this url..


http://www.youtube.com/embed/fa4BD5P_SEI

Thanks

I reply to myself telling that if you must add only a condition to the url you must write at the end of the url
Code
?autoplay=1
P.S. I wait for the mobile version fix..

If you want to see how it works thumbnails links to youtube you can go here

http://www.annamariapierangeli.com/inde ... e%20Clips/
Last edited by failax on 29 Jul 2012, 12:37, edited 1 time in total.
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Question about making youtube video auto start

29 Jul 2012, 12:05

failax wrote:I reply to myself telling that if you must add only a condition to the url you must write at the end of the url
Code
?autoplay=1
P.S. I wait for the mobile version fix..

If you want to see hot it works thumbnails links to youtube you can go here

http://www.annamariapierangeli.com/inde ... e%20Clips/
Yup ... looks good, and it working. Mobile fix for this is coming shortly ...
 
User avatar
paydayMARK
Experienced
Posts: 44
Joined: 09 Apr 2011, 01:36

Re: Question about making youtube video auto start

12 Jan 2013, 01:20

First of all:
YOUTUBE WAS A REALLY BIG ADDITION! THANK YOU!

Then:
it was simple. the code was >>> &autoplay=1 but in the javascript for the lightbox you need to change the "&" with "?" and you're done :)

Now:
I could even embed my entire channel! Here:
javascript:lightbox('http://www.youtube.com/embed/EuEoShDDxZ ... autoplay=1', {iframe:true, innerWidth:'640', innerHeight: '360'})

All I needed is to ad to the code
javascript:lightbox(' _YOURLINK_ ', {iframe:true, innerWidth:'640', innerHeight: '360'})
my "all videos" link
http://www.youtube.com/embed/EuEoShDDxZ ... autoplay=1 and remember: change the "&" with "?"
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13999
Joined: 30 Sep 2006, 03:37

Re: Question about making youtube video auto start

13 Jan 2013, 00:04

... nice 1 8)

Just a quick note about ? vs & ... They are used to add parameters to URLs. ? comes straight after the url, basically saying here comes parameters, while & represents consecutive parameters in the same URL. Usage depends slightly if there are multiple parameters, and in Youtube urls, there normally are. The general structure:
Code
url?param1=value1&param2=value2