UKBouldering.com

How to link to youtube without having it automatically play the video? (Read 5327 times)

Muenchener

Offline
  • *****
  • Trusted Users
  • forum hero
  • Posts: 2693
  • Karma: +117/-0

Will Hunt

Online
  • *****
  • forum hero
  • Superworm is super-long
  • Posts: 8005
  • Karma: +633/-115
    • Unknown Stones
Edit: I posted a solution but it didn't work!

slackline

Offline
  • *****
  • forum hero
  • Posts: 18863
  • Karma: +633/-26
    • Sheffield Boulder
Use a browser plugin to control this.

The YouTube High Definition browser add-on  forFirefox has the option to turn AutoPlay to AutoPause.

There are other alternatives for other browsers.

Muenchener

Offline
  • *****
  • Trusted Users
  • forum hero
  • Posts: 2693
  • Karma: +117/-0
Thanks, but what I wanted was to have it not autoplay for *anybody*

slackline

Offline
  • *****
  • forum hero
  • Posts: 18863
  • Karma: +633/-26
    • Sheffield Boulder
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, 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' 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...



« Last Edit: May 26, 2016, 09:57:47 pm by slackline »

SA Chris

Offline
  • *****
  • forum hero
  • Posts: 29244
  • Karma: +631/-11
    • http://groups.msn.com/ChrisClix
I use Chrome and IE, and it never plays automatically in either?

slackline

Offline
  • *****
  • forum hero
  • Posts: 18863
  • Karma: +633/-26
    • Sheffield Boulder
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?


Muenchener

Offline
  • *****
  • Trusted Users
  • forum hero
  • Posts: 2693
  • Karma: +117/-0
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.)

slackline

Offline
  • *****
  • forum hero
  • Posts: 18863
  • Karma: +633/-26
    • Sheffield Boulder
 :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 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

...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.

SA Chris

Offline
  • *****
  • forum hero
  • Posts: 29244
  • Karma: +631/-11
    • http://groups.msn.com/ChrisClix
The "too difficult" box is over there.

Muenchener

Offline
  • *****
  • Trusted Users
  • forum hero
  • Posts: 2693
  • Karma: +117/-0
URL shortener worked, thanks slackers.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal