geekhack

Site Announcements and Feedback => Announcements/Feedback/Suggestions => Topic started by: notsonerd on Thu, 23 October 2014, 06:26:54

Title: Can't Embed YouTube Video
Post by: notsonerd on Thu, 23 October 2014, 06:26:54
I don't know why but I can't seem to do it on this forum. I've tried several methods and searched for some fixes on GH to no avail. Is it just me or does nobody see the videos I'm posting?

Examples:




<iframe width="1280" height="750" src="//www.youtube.com/embed/nY7GnAq6Znw" frameborder="0" allowfullscreen></iframe>
Title: Re: Can't Embed YouTube Video
Post by: CPTBadAss on Thu, 23 October 2014, 06:28:17
Instead of http use https. In other words, use this code to embed videos:

Code: [Select]
[youtube]http://www.youtube.com/watch?v=nY7GnAq6Znw[/youtube]

Title: Re: Can't Embed YouTube Video
Post by: notsonerd on Thu, 23 October 2014, 06:45:00
Instead of http use https. In other words, use this code to embed videos:

Code: [Select]
[youtube]http://www.youtube.com/watch?v=nY7GnAq6Znw[/youtube]



Wow, that's silly. Thanks for the fix, CPTBadass.
Title: Re: Can't Embed YouTube Video
Post by: Puddsy on Thu, 23 October 2014, 06:45:18
It only works worb a full HTTP link NOT an HTTPS link.
Title: Re: Can't Embed YouTube Video
Post by: notsonerd on Thu, 23 October 2014, 06:46:52
It only works worb a full HTTP link NOT an HTTPS link.

Is there a reason why it's restricted to that? All my YouTube links turn up https by default. I feel like it'd be pretty annoying to have to edit out the "S" every time I want to post a video.
Title: Re: Can't Embed YouTube Video
Post by: CPTBadAss on Thu, 23 October 2014, 06:46:54
Agreed that it's silly... Dunno why that is. Something to do with the backend probably.
Title: Re: Can't Embed YouTube Video
Post by: Puddsy on Thu, 23 October 2014, 15:21:09
Agreed that it's silly... Dunno why that is. Something to do with the backend probably.

winner

it's a backend thing with how HTTPS works with similar embed codes, as well as how the [/youtube] tag works
Title: Re: Can't Embed YouTube Video
Post by: Karura on Sun, 26 October 2014, 08:35:51
Just randomly curious, does Simple Machines support Soundcloud embedding?
Title: Re: Can't Embed YouTube Video
Post by: Puddsy on Sun, 26 October 2014, 09:50:21
Just randomly curious, does Simple Machines support Soundcloud embedding?

Not as far as I know. I know that it's not enabled if it exists, though.

Spotify support definitely exists, though. I've seen it on other SMH forums.