Calguns.net  

Home My iTrader Join the NRA Donate to CGSSA Sponsors CGN Google Search
CA Semiauto Ban(AW)ID Flowchart CA Handgun Ban ID Flowchart CA Shotgun Ban ID Flowchart
Go Back   Calguns.net > GENERAL DISCUSSION > Technology and Internet
Register FAQ Members List Calendar Mark Forums Read

Technology and Internet Emerging and current tech related issues. Internet, DRM, IP, and other technology related discussions.

Reply
 
Thread Tools Display Modes
  #1  
Old 09-24-2021, 3:41 PM
axhoaxho's Avatar
axhoaxho axhoaxho is online now
Calguns Addict
 
Join Date: Jun 2009
Posts: 5,477
iTrader: 0 / 0%
Default Embedded Youtube videos displayed as blank spaces in Calguns posts?

Recently, my iMac automatically updated itself to the latest versions of macOS (Big Sur Version 11.6) and Safari (Version 15.0.)

After the update; when I viewed the Calguns posts, all the embedded Youtube videos were displayed as blank spaces...


For example, if you could see the Youtube video below, all I could see was just a blank space on my screen.

Any CG tech guru can shed some light on it? Thanks!


Reply With Quote
  #2  
Old 09-24-2021, 5:12 PM
Robotron2k84's Avatar
Robotron2k84 Robotron2k84 is offline
Senior Member
 
Join Date: Sep 2017
Posts: 1,533
iTrader: 2 / 100%
Default

iOS 15 seems to have done away with the non-html5 player widget (inside of iOS).

That means CGN has to upgrade their plugin to serve the html5 version of the player to iOS 15 (and above) devices.

Given the age of the forum software, this will have to be a hack into the old YT forum plugin.
Reply With Quote
  #3  
Old 09-24-2021, 9:50 PM
Librarian's Avatar
Librarian Librarian is offline
Administrator
CGN Contributor - Lifetime
 
Join Date: Oct 2005
Location: Cottage Grove, OR
Posts: 41,926
iTrader: 4 / 100%
Default

MacOS is not yet IOS.

It still may be true that Safari 15 does not like the youtube whatsit from Calguns, though.

axhoaxho, have you tried a different browser?

Last edited by Librarian; 09-24-2021 at 9:52 PM..
Reply With Quote
  #4  
Old 09-24-2021, 11:40 PM
Robotron2k84's Avatar
Robotron2k84 Robotron2k84 is offline
Senior Member
 
Join Date: Sep 2017
Posts: 1,533
iTrader: 2 / 100%
Default

Safari is the same across both products, though. And that’s where the player widget code lives on the client side, by default. The old-style Safari widget emulated Flash Video, and that’s been removed.

Here’s the doc on what needs fixing:

https://developers.google.com/youtube/player_parameters

The current plug-in generates the following for the above video:

Code:
<object width="425" height="350">
  <param name="movie" value="https://www.youtube.com/v/WzHG-ibZaKM">
  <embed src="https://www.youtube.com/v/WzHG-ibZaKM"
    type="application/x-shockwave-flash"
    width="425" height="350">
</object>
To use the html5 player the viewport needs to be in an iframe tag (probably best to uniquely ID the iframe with the video ID), and call the url as:

Code:
<iframe id="ytplayer_WzHG-ibZaKM" type="text/html" width="425" height="350"
  src="https://www.youtube.com/embed/WzHG-ibZaKM?autoplay=0&origin=https://calguns.net"
  frameborder="0"></iframe>
However, JS-based methods for operating on the iframe ID will still probably fail if the posts are quoted, as there will be multiple iframes with the same ID. So, the PHP that quotes the post should probably tie the iframe ID with the post ID in any quoted post.
Reply With Quote
  #5  
Old 09-25-2021, 12:22 AM
axhoaxho's Avatar
axhoaxho axhoaxho is online now
Calguns Addict
 
Join Date: Jun 2009
Posts: 5,477
iTrader: 0 / 0%
Default

Quote:
Originally Posted by Librarian View Post
MacOS is not yet IOS.

It still may be true that Safari 15 does not like the youtube whatsit from Calguns, though.

axhoaxho, have you tried a different browser?
Sorry I only have Safari on my iMac.

On my MacBook Pro it works okay (which still has the older versions of Big Sur Version 11.5.2 and Safari 14.1.2.) -- I can see the embedded Youtube videos in Calguns posts.
Reply With Quote
  #6  
Old 09-25-2021, 12:38 PM
Librarian's Avatar
Librarian Librarian is offline
Administrator
CGN Contributor - Lifetime
 
Join Date: Oct 2005
Location: Cottage Grove, OR
Posts: 41,926
iTrader: 4 / 100%
Default

Well, as Robotron2k84 suggests, the fix on Calguns' end is likely rather far in the future, so some work-around looks to be the answer. I'd expect the full migration to some other platform makes more sense than trying to patch this version of vBulletin.

I'm using Firefox 87 on my Macbook Pro; I found that Firefox 91 screwed up Calguns quite bit, so went to a backup and downgraded. Might be a similar implementation situation, though I did not happen to look at embedded youtube with 91.

Thanks for the research, Robotron2k84.
Reply With Quote
  #7  
Old 09-25-2021, 1:53 PM
Robotron2k84's Avatar
Robotron2k84 Robotron2k84 is offline
Senior Member
 
Join Date: Sep 2017
Posts: 1,533
iTrader: 2 / 100%
Default

Depending on how far back you wish to support for browser versions, site management could just make the change to serve every YT video with the new player and make a fairly small change in the couple of files that inject the player code.

You could also probably drop the iframe ID without consequence if you never intend to use DOM actions to alter them after the page loads.

Something to think about.
Reply With Quote
  #8  
Old 09-25-2021, 10:39 PM
the86d's Avatar
the86d the86d is online now
Calguns Addict
 
Join Date: Jul 2011
Location: TX, before 11/2/21
Posts: 9,359
iTrader: 5 / 100%
Default

Doesn't Firefox work on iPhruity devices?
__________________
Quote:
Originally Posted by the86d View Post
I sold most of our guns in a fortunate setting-sail [for TX] incidentÖ
Reply With Quote
  #9  
Old 09-26-2021, 12:49 AM
axhoaxho's Avatar
axhoaxho axhoaxho is online now
Calguns Addict
 
Join Date: Jun 2009
Posts: 5,477
iTrader: 0 / 0%
Default

What sucks to me is..... all I see is just a blank space in the post..... even if I right click it, it wouldn't show the URL of the embedded Youtube video..... so I have no way to watch the video even if I want to copy the URL to another tab.
Reply With Quote
  #10  
Old 09-26-2021, 5:55 AM
Marauder2003's Avatar
Marauder2003 Marauder2003 is offline
CGN/CGSSA Contributor
CGN Contributor
 
Join Date: Aug 2010
Location: NV
Posts: 1,524
iTrader: 0 / 0%
Default

Quote the message and you will see the URL. Copy then cancel quote.

Quote:
Originally Posted by axhoaxho View Post
What sucks to me is..... all I see is just a blank space in the post..... even if I right click it, it wouldn't show the URL of the embedded Youtube video..... so I have no way to watch the video even if I want to copy the URL to another tab.
__________________
#NotMyPresident
Reply With Quote
  #11  
Old 09-26-2021, 1:11 PM
axhoaxho's Avatar
axhoaxho axhoaxho is online now
Calguns Addict
 
Join Date: Jun 2009
Posts: 5,477
iTrader: 0 / 0%
Default

Quote:
Originally Posted by Marauder2003 View Post
Quote the message and you will see the URL. Copy then cancel quote.
Wow, brilliant! Thanks very much!

Reply With Quote
  #12  
Old 09-27-2021, 4:45 PM
the86d's Avatar
the86d the86d is online now
Calguns Addict
 
Join Date: Jul 2011
Location: TX, before 11/2/21
Posts: 9,359
iTrader: 5 / 100%
Default

Firefox has a problem for a few revs with I believe it was https and http on the same page, as I recall, where something similar would happen with embedded viudeo...
__________________
Quote:
Originally Posted by the86d View Post
I sold most of our guns in a fortunate setting-sail [for TX] incidentÖ
Reply With Quote
  #13  
Old 10-08-2021, 7:16 PM
Diabolus's Avatar
Diabolus Diabolus is online now
Veteran Member
 
Join Date: Mar 2006
Location: Southern California / Los Angeles
Posts: 4,650
iTrader: 41 / 100%
Default

Has anyone figured out a way to fix Safari so Youtube shows up?
Reply With Quote
  #14  
Old 10-09-2021, 12:39 AM
axhoaxho's Avatar
axhoaxho axhoaxho is online now
Calguns Addict
 
Join Date: Jun 2009
Posts: 5,477
iTrader: 0 / 0%
Default

Quote:
Originally Posted by Diabolus View Post
Has anyone figured out a way to fix Safari so Youtube shows up?
I haven't seen any real solution yet... I still cannot view Youtube in Safari 15.0... so far I just use the 'Quote-Copy-URL' trick that Marauder2003 suggested at above...
Reply With Quote
  #15  
Old 10-09-2021, 4:40 PM
Robotron2k84's Avatar
Robotron2k84 Robotron2k84 is offline
Senior Member
 
Join Date: Sep 2017
Posts: 1,533
iTrader: 2 / 100%
Default

The fix needs to happen from the Calguns side. Flash video (and flash itself) is dead, gone and buried. Embedding flash video format, even though YouTube is still serving it, is problematic as more browsers phase out flash support. Eventually YouTube will stop serving it, as well.

Content-wise, Adobe and Apple have stopped supporting encoding for flash video, and now only support web-capable versions of their codecs. The lowdown, is that this site needs to change the method of serving the video links, to bring functionality up to current standards.

Browsers, since 2016, have all supported html5 video and MP4/H.264, so it’s not asking that much to switch everyone over.

I provided the new format for the forum plug-in to serve. It’s now just up to site management if they want to make the change in the short-term, or upgrade to new forum software and jump ahead.
Reply With Quote
  #16  
Old 10-09-2021, 8:55 PM
Diabolus's Avatar
Diabolus Diabolus is online now
Veteran Member
 
Join Date: Mar 2006
Location: Southern California / Los Angeles
Posts: 4,650
iTrader: 41 / 100%
Default

Quote:
Originally Posted by Robotron2k84 View Post
The fix needs to happen from the Calguns side. Flash video (and flash itself) is dead, gone and buried. Embedding flash video format, even though YouTube is still serving it, is problematic as more browsers phase out flash support. Eventually YouTube will stop serving it, as well.

Content-wise, Adobe and Apple have stopped supporting encoding for flash video, and now only support web-capable versions of their codecs. The lowdown, is that this site needs to change the method of serving the video links, to bring functionality up to current standards.

Browsers, since 2016, have all supported html5 video and MP4/H.264, so itís not asking that much to switch everyone over.

I provided the new format for the forum plug-in to serve. Itís now just up to site management if they want to make the change in the short-term, or upgrade to new forum software and jump ahead.
Thanks for the explanation. I assume it's a lot of work, or risky, to upgrade software on a forum of this size?

is the plug-in easier, more complicated, what's the story?
Reply With Quote
  #17  
Old 10-09-2021, 9:34 PM
Librarian's Avatar
Librarian Librarian is offline
Administrator
CGN Contributor - Lifetime
 
Join Date: Oct 2005
Location: Cottage Grove, OR
Posts: 41,926
iTrader: 4 / 100%
Default

Quote:
Originally Posted by Diabolus View Post
Thanks for the explanation. I assume it's a lot of work, or risky, to upgrade software on a forum of this size?

is the plug-in easier, more complicated, what's the story?
For something as old as this, without official support, it's risky.

vB 3 came out in 2004; 3.8 before 2009 (can't easily find the actual release date).
Reply With Quote
  #18  
Old 10-10-2021, 7:09 AM
Diabolus's Avatar
Diabolus Diabolus is online now
Veteran Member
 
Join Date: Mar 2006
Location: Southern California / Los Angeles
Posts: 4,650
iTrader: 41 / 100%
Default

Quote:
Originally Posted by Librarian View Post
For something as old as this, without official support, it's risky.

vB 3 came out in 2004; 3.8 before 2009 (can't easily find the actual release date).
Yikes, that's going way back. Definitely risky.
Reply With Quote
  #19  
Old 10-10-2021, 9:14 AM
Robotron2k84's Avatar
Robotron2k84 Robotron2k84 is offline
Senior Member
 
Join Date: Sep 2017
Posts: 1,533
iTrader: 2 / 100%
Default

For a PHP-fluent dev, itís a five minute edit to a couple of files that templatize the player code.

I donít believe that anything more than the video ID is stored in the database (with the post text), so the PHP file(s) that construct and inject the player HTML code are all that this change would entail.
Reply With Quote
  #20  
Old 10-10-2021, 9:58 AM
Librarian's Avatar
Librarian Librarian is offline
Administrator
CGN Contributor - Lifetime
 
Join Date: Oct 2005
Location: Cottage Grove, OR
Posts: 41,926
iTrader: 4 / 100%
Default

Quote:
Originally Posted by Robotron2k84 View Post
For a PHP-fluent dev, it’s a five minute edit to a couple of files that templatize the player code.
Side note: I used to supervise programmers making fixes - 'it's just a five minute fix' is about as terrifying a thing to say as I can imagine in that context.
__________________
When a Long Train of Abuses and Usurpations, Pursuing Invariably the Same Object, Evinces a Design to Reduce Them [I.E. the People] Under Absolute Despotism, It Is Their Right, It Is Their Duty, to Throw off Such Government, and to Provide New Guards for Their Future Security.Ē
Ė Declaration of Independence, July 4th, 1776
"The object of life is not to be on the side of the majority, but to escape finding oneself in the ranks of the insane."

- Marcus Aurelius
Consider Samizdat; consider some reading material, such as this and that.

Not a lawyer, just Some Guy On The Interwebs.



Reply With Quote
  #21  
Old 10-10-2021, 10:58 AM
Robotron2k84's Avatar
Robotron2k84 Robotron2k84 is offline
Senior Member
 
Join Date: Sep 2017
Posts: 1,533
iTrader: 2 / 100%
Default

^ LOL. I know what you are saying.

However, the scope of this change is genuinely pretty small and can be reverted easily.
Reply With Quote
  #22  
Old 10-10-2021, 1:45 PM
gcvt's Avatar
gcvt gcvt is online now
Let's Go Brandon!
CGN Contributor
 
Join Date: Apr 2008
Location: Las Vegas, NV since 3/1/20
Posts: 10,704
iTrader: 18 / 100%
Default

Quote:
Originally Posted by Librarian View Post
Side note: I used to supervise programmers making fixes - 'it's just a five minute fix' is about as terrifying a thing to say as I can imagine in that context.
Another favorite is: "All you gotta do is..."
__________________
FOR SALE: MacBook Pro 15"

Quote:
Originally Posted by Kestryll View Post
I want to be Princess Anastasia today because I feel pretty
Quote:
Originally Posted by QuarterBoreGunner View Post
Kes is really just an errand boy
Quote:
Originally Posted by Kestryll View Post
I am NOT...anything other than a schmuck...
Reply With Quote
  #23  
Old 10-10-2021, 9:53 PM
Robotron2k84's Avatar
Robotron2k84 Robotron2k84 is offline
Senior Member
 
Join Date: Sep 2017
Posts: 1,533
iTrader: 2 / 100%
Default

Researching this a little more, admin can do the following (example):

Navigate to:

Admin CP -> Custom BB Codes -> Add New BB Code

Title - YouTubeHTML5
Tag - youtube5

replacement:

Code:
<iframe id="ytplayer_{param}" type="text/html" width="425" height="350"
  src="https://www.youtube.com/embed/{param}?autoplay=0&origin=https://www.calguns.net"
  frameborder="0"></iframe>
That would create a new BB tag [youtube5][/youtube5] that would invoke the html5 player.
Reply With Quote
  #24  
Old 10-15-2021, 9:05 AM
Marauder2003's Avatar
Marauder2003 Marauder2003 is offline
CGN/CGSSA Contributor
CGN Contributor
 
Join Date: Aug 2010
Location: NV
Posts: 1,524
iTrader: 0 / 0%
Default

Letís get this done. I have upgraded my iPad to 15.0.2 and it is now affecting me.

Quote:
Originally Posted by Robotron2k84 View Post
Researching this a little more, admin can do the following (example):

Navigate to:

Admin CP -> Custom BB Codes -> Add New BB Code

Title - YouTubeHTML5
Tag - youtube5

replacement:

Code:
<iframe id="ytplayer_{param}" type="text/html" width="425" height="350"
  src="https://www.youtube.com/embed/{param}?autoplay=0&origin=https://www.calguns.net"
  frameborder="0"></iframe>
That would create a new BB tag [youtube5][/youtube5] that would invoke the html5 player.
__________________
#NotMyPresident
Reply With Quote
  #25  
Old 10-17-2021, 2:13 AM
axhoaxho's Avatar
axhoaxho axhoaxho is online now
Calguns Addict
 
Join Date: Jun 2009
Posts: 5,477
iTrader: 0 / 0%
Default

Quote:
Originally Posted by Marauder2003 View Post
Letís get this done. I have upgraded my iPad to 15.0.2 and it is now affecting me.

Same here. Pretty please.
Reply With Quote
  #26  
Old 10-17-2021, 9:29 AM
gcvt's Avatar
gcvt gcvt is online now
Let's Go Brandon!
CGN Contributor
 
Join Date: Apr 2008
Location: Las Vegas, NV since 3/1/20
Posts: 10,704
iTrader: 18 / 100%
Default

Yes, if we can get this fixed me love you long time.
__________________
FOR SALE: MacBook Pro 15"

Quote:
Originally Posted by Kestryll View Post
I want to be Princess Anastasia today because I feel pretty
Quote:
Originally Posted by QuarterBoreGunner View Post
Kes is really just an errand boy
Quote:
Originally Posted by Kestryll View Post
I am NOT...anything other than a schmuck...
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



All times are GMT -8. The time now is 6:17 PM.




Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.
Proudly hosted by GeoVario the Premier 2A host.
Calguns.net, the 'Calguns' name and all associated variants and logos are ® Trademark and © Copyright 2002-2021, Calguns.net an Incorporated Company All Rights Reserved.
All opinions, statements and remarks made by Calguns.net on this web site and elsewhere are solely attributable to Calguns.net.



Seams2SewBySusy

Tactical Pants Tactical Boots Military Boots 5.11 Tactical