UKBouldering.com

the site => suggestions, requests, support => Topic started by: Muenchener on May 26, 2016, 11:42:08 am

Title: How to link to youtube without having it automatically play the video?
Post by: Muenchener on May 26, 2016, 11:42:08 am
...?
Title: Re: How to link to youtube without having it automatically play the video?
Post by: Will Hunt on May 26, 2016, 11:58:13 am
Edit: I posted a solution but it didn't work!
Title: Re: How to link to youtube without having it automatically play the video?
Post by: slackline on May 26, 2016, 08:59:52 pm
Use a browser plugin to control this.

The YouTube High Definition browser add-on  forFirefox (https://addons.mozilla.org/en-GB/firefox/addon/youtube-high-definition/) has the option to turn AutoPlay to AutoPause.

There are other alternatives for other browsers.
Title: Re: How to link to youtube without having it automatically play the video?
Post by: Muenchener on May 26, 2016, 09:13:38 pm
Thanks, but what I wanted was to have it not autoplay for *anybody*
Title: Re: How to link to youtube without having it automatically play the video?
Post by: slackline on May 26, 2016, 09:36:13 pm
In part it will depend on how the forum software (SimpleMachines) parses a URL and embeds it but...

Details of how to embed YouTube are described here (https://developers.google.com/youtube/player_parameters), but I've no idea whether SMF uses iFrame or object (I'm sure the SMF site details what the software does though if you wanted to check).

Reading through there is the option (under iFrame) to customise playback with options, and the most relevant will be 'autoplay' (https://developers.google.com/youtube/player_parameters#autoplay) which takes the values of 0 or 1 (binary switches to indicate whether or not to play).  You could try adding this as an option when you paste the URL by appending '&autoplay=0' to the URL because the options for video and playback are chained after the opening URL http://www.youtube.com/watch, although it states that '0' is the default so perhaps its the SMF parsing that switches it to '1'.

Code: [Select]
https://www.youtube.com/watch?v=K7mV75x0hc0&autoplay=0

No idea if this will work though, if the following doesn't start playing automatically when all other videos on the site do then I guess it does...

https://www.youtube.com/watch?v=K7mV75x0hc0&autoplay=0

Title: Re: How to link to youtube without having it automatically play the video?
Post by: SA Chris on May 27, 2016, 08:36:45 am
I use Chrome and IE, and it never plays automatically in either?
Title: Re: How to link to youtube without having it automatically play the video?
Post by: slackline on May 27, 2016, 08:56:04 am
A third option is that its a user setting on their YouTube account if you're logged into Google whilst surfing the net.  If you're not logged in then the default may well be not to auto-start.  I'd expect a users settings on their YouTube account to over-ride any options used when embedding.

How many others do you know who have videos autostart for them Muencher?  Are they logged in to their Google Accounts whilst browsing and if so what are their settings with regards to Autostart of YouTube videos?

Title: Re: How to link to youtube without having it automatically play the video?
Post by: Muenchener on May 27, 2016, 09:03:20 am
Thanks guys, but it looks like what I'm trying to achieve may not be possible. My current sig quote comes from a video of Jain Kim on youtube; I want the "Jain Kim" to display as a clickable link without loading & displaying the video in any form, autopalying or otherwise.

(At the risk of outing myself - again - as a middle aged white male heterosexual  lecher, I point out that I have nothing against pictures of Jain Kim per se. Quite the opposite.)
Title: Re: How to link to youtube without having it automatically play the video?
Post by: slackline on May 27, 2016, 10:22:41 am
 :slap: I misunderstood what you were trying to achieve*  :sorry:

This might be what you've been trying, which I don't think works...

Code: [Select]
[url=https://www.youtube.com/watch?v=K7mV75x0hc0&autoplay=0]video[/url]

...as the SMF software clocks its a YouTube URL and tries to automatically embed it.

To get round this use a URL shortener, but not YouTube's own one, something like bitly (https://bitly.com/) to shorten the URL of the YouTube page and then use that in the URL you use in your signature...

Code: [Select]
[url=http://bit.ly/1NmSESO]Jain Kim[/url]

Jain Kim (http://bit.ly/1NmSESO)

...which will (should?) prevent SMF from auto-embedding since it doesn't recognise the URL as YouTube, but when someone clicks on it, they'll be redirected to the YouTube page.

* I read your subject it literally, if it had said 'without automatically embedding' I'd have suggested the above first off.
Title: Re: How to link to youtube without having it automatically play the video?
Post by: SA Chris on May 27, 2016, 10:23:32 am
The "too difficult" box is over there.
Title: Re: How to link to youtube without having it automatically play the video?
Post by: Muenchener on May 28, 2016, 09:38:54 am
URL shortener worked, thanks slackers.
SimplePortal 2.3.7 © 2008-2024, SimplePortal