Posts: 17,154
Threads: 14
Likes Received: 1,899 in 3,036 posts
Likes Given: 52
Joined: Apr 2016
Tech Support (Parent and Student Access)/Broken video embeds
08-30-2017, 02:35 PM
I was going to wait until I had more info, but it turns out setting up MySQL is complicated.
I haven't ever seen a working YouTube embed on the forum, while Vimeo appears to work beautifully. As far as I can tell, this is only because the YouTube iframes are being requested as HTTP, which any modern browser (namely, Chrome (I didn't actually test Firefox)) blocks, leaving a gaping hole in the webpage.
According to the MyBB docs, it appears that providing an HTTPS YouTube URL should result in a secure widget. I think it somehow... doesn't.
I have no idea why they aren't working or if it's fixable, but that's what I can see from here. I haven't double checked Vimeo embeds, and I've never seen any others attempted. Hope that helps!
-Aidan
Aidan, Formerly Grammar Police #2
Your grammar is a reflection of your image. Good or bad, you have made an impression. And like all impressions, you are in total control.
--Jeffrey Gitomer
Posts: 7,561
Threads: 617
Likes Received: 15,762 in 7,988 posts
Likes Given: 2,493
Joined: Jul 2012
Tech Support (Parent and Student Access)/RE: Broken video embeds
08-30-2017, 03:34 PM
Does that mean that changing https to http would make them work?
"Our aim in Education is to give a Full Life." -- Mom to 4 AO Graduates, Grandma to 3
"Practically, nearly, almost and in all ways visible to normal mortals Invincible" (due to the diplomatic immunity of Admin.) ![[cheesy grin] [cheesy grin]](https://amblesideonline.org/forum/images/smilies/biggrin.gif)
Posts: 4,678
Threads: 584
Likes Received: 5,908 in 3,452 posts
Likes Given: 410
Joined: Jul 2012
Tech Support (Parent and Student Access)/RE: Broken video embeds
08-30-2017, 03:57 PM
I think we may just have embeds turned off in our settings. I would have to go looking to confirm that, though.
Posts: 17,154
Threads: 14
Likes Received: 1,899 in 3,036 posts
Likes Given: 52
Joined: Apr 2016
Tech Support (Parent and Student Access)/RE: Broken video embeds
08-30-2017, 11:04 PM
(This post was last modified: 08-30-2017, 11:16 PM by ARB.)
I don't think they're turned off, because when I use inspect element on one (ie, this:)
...there is an iframe, along with the YouTube URL and dimensions. However, the YouTube URL is HTTP, which is blocked. I think Vimeo embeds work, though.
Aidan, Formerly Grammar Police #2
Your grammar is a reflection of your image. Good or bad, you have made an impression. And like all impressions, you are in total control.
--Jeffrey Gitomer
Posts: 17,154
Threads: 14
Likes Received: 1,899 in 3,036 posts
Likes Given: 52
Joined: Apr 2016
Tech Support (Parent and Student Access)/RE: Broken video embeds
08-30-2017, 11:06 PM
(This post was last modified: 09-02-2017, 07:42 AM by ARB.)
Vimeo embed:
Vimeo link:
Dreams
Okay, so after posting that, I'm even more confused.
Apparently none of the embeds work, while normal links to Vimeos are turned into working (httpS) embeds. (This doesn't work for YouTube; I've tried.)
Code: Vimeo embed:<br />
<!-- start: video_vimeo_embed --><br />
<iframe src="http://player.vimeo.com/video/120105021" width="500" height="281" frameborder="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe><br />
<!-- end: video_vimeo_embed --><br />
Vimeo link:<br />
<iframe src="https://player.vimeo.com/video/120105021" width="500" height="300" frameborder="0"></iframe><br />
Oh, and do you think turning off videos would really just set the iframes to HTTP? When I add an S (in the developer tools) they work perfectly. That seems like an odd way to try to get rid of them. Also, in desktop Chrome, there's a shield with an x in the address bar on pages with embeds. When clicked, it says "This page is trying to load scripts from unauthenticated sources" along with a "load unsafe scripts" button. When THAT'S clicked, it reloads (with https in the address bar crossed out in red) and they work.
Developer tools on this thread:
Sidenote: They all show up in Tapatalk; that doesn't count.
Double sidenote: when manually changing the URL to http:// in the address bar, everything loads, as there is no mixed content.
Aidan, Formerly Grammar Police #2
Your grammar is a reflection of your image. Good or bad, you have made an impression. And like all impressions, you are in total control.
--Jeffrey Gitomer
|