Pegasus Research Consortium

General Category => General Discussion Area => Topic started by: zorgon on August 14, 2016, 10:35:54 AM

Title: YOUTUBE EMBEDS NOT WORKING
Post by: zorgon on August 14, 2016, 10:35:54 AM
Looks like YOUTUBE embeds are down all across the web...

I just got most of the old codes replaced on the website (where I have hundreds of videos linked to change from the old "embed" and "object" format to the new "iframe" format which works ao all browsers

But I just checked today and none of the videos on the website and the forum are working

http://www.youtube.com/watch?v=l0sDIBPfbes



However it does seem to work using the html insert code


Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 14, 2016, 11:07:31 AM
They are working from what I can see....
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: SerpUkhovian on August 14, 2016, 11:50:55 AM
I was going to mention the problem with the Youtube videos, but I thought it was just my crummy computer.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 14, 2016, 12:41:11 PM
I can see the html embed and the "bb code" embed above.  Am I missing something?
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 14, 2016, 02:09:05 PM
Quote from: Pimander on August 14, 2016, 12:41:11 PM
I can see the html embed and the "bb code" embed above.  Am I missing something?
What browser are you using?

I'm starting to think this is related to the browser and to what YouTube sends to the browser, with some getting the Flash version and others getting the HTML5 version.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 14, 2016, 02:16:38 PM
I'm using Firefox 47.  It uses the Shockwave Flash 11.2 plugin for Flash.

How can we tell whether my browser is using html5 or flash for youtube?

Can anyone else see the videos?
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 14, 2016, 02:20:25 PM
ArMaP, do you think they are only sending html5 now?  If so good because Flash is rubbish and its time it was phased out.

ETA:  I just checked, my browser is using the html5 player to play youtube videos.  (it was obvious how to check but I'm clearly more tired than I should be)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 14, 2016, 04:52:45 PM
It looks like Firefox always gets the HTML version while all other browsers I tested (Opera, Maxthon, Chrome, IE and Edge) get the Flash version (that doesn't work) when embedded with the youtube tags.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 14, 2016, 05:25:47 PM
The Midori browser (which is nice and fast as its light on resources) also works with the html5 player.

For members who have an old computer that works too slowly with Firofox, I recommend trying Midori browser.

http://midori-browser.org/
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 14, 2016, 05:28:49 PM
I'm also on Linux, so I can't test Midori on Windows.

I tried to install Windows in a virtual machine but the product key I found didn't work so I gave up lol.   ;D
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 14, 2016, 06:10:30 PM
Quote from: Pimander on August 14, 2016, 05:25:47 PM
The Midori browser (which is nice and fast as its light on resources) also works with the html5 player.
That's the problem, all modern browsers work with the HTML5 player, but, for some reason, only Firefox shows that player when we use the youtube tags. Using the (admin only) html tags that allows the use of the embed link given by YouTube makes all browsers use the HTML5 player.

Zorgon's opening post shows that, in Firefox we can see both videos, in all other browsers we can only see the second video, the first appears as a black bar to the left.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 14, 2016, 07:14:52 PM
I mean that the Midori browser also works with the tags.  It shows both the videos in the opening post.  I'm interested to know whether Midori running on Windows still shows both videos.

I thought it might be that Firefox uses Gecko and the others use webkit but Midori is a Webkit browser.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 14, 2016, 10:20:06 PM
Quote from: Pimander on August 14, 2016, 07:14:52 PM
I mean that the Midori browser also works with the tags.  It shows both the videos in the opening post.  I'm interested to know whether Midori running on Windows still shows both videos.
Sorry, I didn't understood it.
I'm installing Midori this instant. :)

Edited to add that no, it doesn't show the first video.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 15, 2016, 10:06:52 AM
Quote from: ArMaP on August 14, 2016, 10:20:06 PM
I'm installing Midori this instant. :)

Edited to add that no, it doesn't show the first video.
Interesting.  It shows both videos on Linux.

Youtube appears to send Flash to Windows but html5 to Linux.  I suspect that is because many Linux users have historically only installed "free" software and Shockwave Flash is not under a free licence.

This mod appears to be a solution.  It is supposed to embed most videos automatically when a user adds a link to a video.

http://custom.simplemachines.org/mods/?mod=2681

Zorgon, are we allowed to install this mod?
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: thorfourwinds on August 15, 2016, 03:52:40 PM
We be on a tablet running Chrome and see both and both work.
Cannot get my mail because this tablet doesn't have the site.
Anyone have the company email addy?
Perhaps I can get back online after finishing moving.
Grrrrr😬
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 15, 2016, 03:57:54 PM
Quote from: thorfourwinds on August 15, 2016, 03:52:40 PM
We be on a tablet running Chrome and see both and both work.
That may well be because Android uses a modified Linux kernel.  It's based on Linux.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 15, 2016, 04:45:29 PM
Quote from: Pimander on August 15, 2016, 10:06:52 AM
Youtube appears to send Flash to Windows but html5 to Linux.
But Firefox on Windows shows both.

QuoteThis mod appears to be a solution.  It is supposed to embed most videos automatically when a user adds a link to a video.

http://custom.simplemachines.org/mods/?mod=2681
I will try that on my test system. :)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 15, 2016, 05:43:00 PM
Quote from: Pimander on August 15, 2016, 10:06:52 AM
This mod appears to be a solution.  It is supposed to embed most videos automatically when a user adds a link to a video.
It works, but although I didn't see it it supposedly has a copyright message that can be removed by paying 10$.

Edited to add that the copyright message appears at the bottom of the page, below the "SMF 2.0.11 | SMF © 2013, Simple Machines" line. That mod also allows embedding of Facebook videos, among many other sources.

As it replaces the links for the video with the video, all posts that have a link below the video will show the video instead of the link.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 15, 2016, 08:30:08 PM
Quote from: ArMaP on August 15, 2016, 05:43:00 PM
As it replaces the links for the video with the video, all posts that have a link below the video will show the video instead of the link.
Hmmmm....  That means lots of old threads will show the video twice.  I don't mind that.  How does everyone else feel about that?

It solves the problem but it's Zorgon's decision I guess.  What you sayin' Z?
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 15, 2016, 09:29:24 PM
Quote from: Pimander on August 15, 2016, 08:30:08 PM
Hmmmm....  That means lots of old threads will show the video twice.  I don't mind that.  How does everyone else feel about that?
It also means that old posts that had only the youtube tags will not work, as this is a workaround, not a solution to the current problem. As usual, I would prefer a real solution, but this alternative sounds good.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: funbox on August 15, 2016, 11:30:45 PM
Quote from: ArMaP on August 15, 2016, 09:29:24 PM
It also means that old posts that had only the youtube tags will not work, as this is a workaround, not a solution to the current problem. As usual, I would prefer a real solution, but this alternative sounds good.

haven't you fixed it yet ? :D I have a few Video's I know you're just gagging to watch :D

sneekview link

https://www.youtube.com/watch?v=GX2kZr0u630

synopsis* funwithmicrowaves*

funbox
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 16, 2016, 11:13:31 AM
Quote from: ArMaP on August 15, 2016, 09:29:24 PM
It also means that old posts that had only the youtube tags will not work,
Yes, it doesn't solve the problem completely.  We need a patch that changes the way the [youtube] script works.  I expect a SMF update will have one eventually.

If people stop using Windows it would help.  Free software is cool.   8) :)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 16, 2016, 12:14:00 PM
Quote from: Pimander on August 16, 2016, 11:13:31 AM
I expect a SMF update will have one eventually.
I don't, as that feature was a modification, and the people behind it stopped working on it some years ago.

QuoteIf people stop using Windows it would help.  Free software is cool.   8) :)
It would be cooler if Windows was free. ;D
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 16, 2016, 01:28:00 PM
If only we could find or create a mod that uses the same [youtube] code it would be easy to fix.  I guess you would have to find a way of getting Youtube to send the html5 player every time.  I don't know how to do it.

Quote from: ArMaP on August 16, 2016, 12:14:00 PM
It would be cooler if Windows was free. ;D
FOSS rules!  :)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 16, 2016, 01:56:05 PM
Quote from: Pimander on August 16, 2016, 01:28:00 PM
If only we could find or create a mod that uses the same [youtube] code it would be easy to fix.  I guess you would have to find a way of getting Youtube to send the html5 player every time.  I don't know how to do it.
After taking a look at what is stored in the database I could see that the method we have been using doesn't change a thing on the post, the youtube tags are still there, which means that what the modification does is change the contents of the post when it shows it on the page. That makes me think that maybe Firefox gets a different player because of the installed mod and not because of what YouTube sends to the browser.

The best solution (if possible) would be to change to code of the mod to make it post the HTML5 version instead of the Flash version.

I have to take a look at the code and see what I find. :)

QuoteFOSS rules!  :)
Yes, if the mod is FOSS then we can change the code and solve the problem. :)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 16, 2016, 02:11:53 PM
Quote from: ArMaP on August 16, 2016, 01:56:05 PM
I have to take a look at the code and see what I find. :)
Yes, if the mod is FOSS then we can change the code and solve the problem. :)
I just tried  Chromium in Linux and it is black lining the first video in the OP.

Yes, if you can work out how to get the [youtube] mod to always display the html5 browser then problem solved. (or the other mod)

It seems strange that Chrome in Android displays the html5 player, but Chromium in Linux and Chrome in Windows doesn't.  Epiphany in Linux shows the html5 player but not in Windows!  But Firefox always shows the html5 player.  :o

WTF!
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 16, 2016, 05:36:06 PM
Quote from: Pimander on August 16, 2016, 02:11:53 PM
But Firefox always shows the html5 player.  :o
That part I can explain now. :)

Firefox, since version 46, has a new feature that automatically converts embedded YouTube videos to the  HTML player.

That behaviour is controlled by the "rewrite_youtube_embeds" flag (or whatever they call it), as it defaults to "true" all embedded Youtube have the code changed to the new HTML5 player. Changing it to "false" shows the black stripe.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 16, 2016, 07:13:52 PM
After looking at the code of the modification that added the youtube tags I saw that the only difference in the code is when the browser is IE, as in that case the code puts the embed tags inside an object tag, but I found that, when the youtube tags are deactivated the code posts only the link, removing the tags.

So, to test it, I disabled the youtube tags on my test forum, added the Simple Audio Video Embedder modification and, as the disabled tags show only the links, the second modification replaces the links with the HTML5 player, so it looks like we only need to add this new modification to the forum and deactivate the youtube tags added by the first to have it working.

The only downside is that those posts that had both the player and the link now will show two videos, but I can live with that. :)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: zorgon on August 17, 2016, 09:43:34 AM
Just noticed today that the youtume embed code now uses THUIS url

https  ://www.youtube.com/embed/3lr7H7wm2tU

Before it used the standard one 

https    ://www.youtube.com/watch?v=3lr7H7wm2tU

I discovered that all the embeds on the website do actually still work It seem the ones I used to check were still the old code that i hand't fixed yet

Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: zorgon on August 17, 2016, 09:47:45 AM
Quote from: ArMaP on August 16, 2016, 07:13:52 PM
So, to test it, I disabled the youtube tags on my test forum, added the Simple Audio Video Embedder modification and, as the disabled tags show only the links, the second modification replaces the links with the HTML5 player, so it looks like we only need to add this new modification to the forum and deactivate the youtube tags added by the first to have it working.

The only downside is that those posts that had both the player and the link now will show two videos, but I can live with that. :)

Sounds good to me  How many people go back several weeks to look at old posts anyway? :P

So can you do this on the forum files?  You should have access to them all via the admin access
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 17, 2016, 12:04:38 PM
Quote from: zorgon on August 17, 2016, 09:47:45 AM
Sounds good to me  How many people go back several weeks to look at old posts anyway? :P

So can you do this on the forum files?  You should have access to them all via the admin access
I should be able to do it. I will try. :)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 17, 2016, 12:32:53 PM
Quote from: ArMaP on August 16, 2016, 07:13:52 PM
The only downside is that those posts that had both the player and the link now will show two videos, but I can live with that. :)
I can live with that too.

Great work ArMaP.  8)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 17, 2016, 01:59:55 PM
Done. :)

Is it working for everybody? It works for me.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: Pimander on August 17, 2016, 03:00:07 PM
Quote from: ArMaP on August 17, 2016, 01:59:55 PM
Is it working for everybody? It works for me.
Both videos are working in the opening post even using Chrome/Chromium now.  It looks like it works.  :)

We can have the "pleasure" of having to watch lots of hoax UFO videos that have already been debunked years ago on ATS when members start posting them.  Fantastic.  ;D  :P

ETA: I also checked a few in older posts and they all work now with Chromium browser.
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 17, 2016, 07:50:44 PM
https://www.youtube.com/watch?v=NmPhaG1ud38

:)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: funbox on August 17, 2016, 08:41:48 PM
Quote from: ArMaP on August 17, 2016, 01:59:55 PM
Done. :)

Is it working for everybody? It works for me.

does this mean we can just paste the link in ? I noticed the one I put up earlier had changed to embedded,,

funbox
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 17, 2016, 10:04:08 PM
Quote from: funbox on August 17, 2016, 08:41:48 PM
does this mean we can just paste the link in ? I noticed the one I put up earlier had changed to embedded,,
Yes, now we just have to paste the link for the video. :)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: funbox on August 17, 2016, 10:07:05 PM
Quote from: ArMaP on August 17, 2016, 10:04:08 PM
Yes, now we just have to paste the link for the video. :)

excellent stuff ArMaP treat yourself to parts2 and three

https://www.youtube.com/watch?v=JHld-5hr1X8

https://www.youtube.com/watch?v=G2_3NPHFSFY

enjoy :D

funbox
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 18, 2016, 01:17:41 AM
Thanks, but I'll pass. :)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: funbox on August 18, 2016, 01:21:50 AM
Quote from: ArMaP on August 18, 2016, 01:17:41 AM
Thanks, but I'll pass. :)

no problem, no doubt your basking in the deep Irony of it all anyhow, pleasure in a job done well. the continual perpetuation of trash/ornot video's that you'll never ever see.. yes deep irony

are you the devil ?

funbox
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: ArMaP on August 18, 2016, 01:28:09 AM
Quote from: funbox on August 18, 2016, 01:21:50 AM
are you the devil ?
Maybe. :)

(http://www.thelivingmoon.com/gallery/albums/userpics/10002/sp-studio.jpg)
Title: Re: YOUTUBE EMBEDS NOT WORKING
Post by: funbox on August 18, 2016, 01:35:19 AM
Quote from: ArMaP on August 18, 2016, 01:28:09 AM
Maybe. :)

(http://www.thelivingmoon.com/gallery/albums/userpics/10002/sp-studio.jpg)

very good , and not one of my bastardisation either .. who else thinks your the devil ? or are you the artist ? .. if so congratulations on a picture well made, heres a videos to enjoy :D

https://www.youtube.com/watch?v=rxBkpXxCJA0

funbox