YouTube embedded videos "black bar" picture problem

Get help developing custom BBCodes or request one.
JuhleeK
Registered User
Posts: 10
Joined: Fri Aug 12, 2016 12:45 pm

YouTube embedded videos "black bar" picture problem

Post by JuhleeK »

Not sure what's going on, but I just posted here and, upon refreshing, my post were gone and my account deleted.

Uh… anyway… just wanted to chime in and state that I, too, am having this same issue; a thick, vertical, left aligned, black bar (centimetre and a half—two) appears, seemingly the height of the embedded video, and nothing else.

Would love if someone could lend some insight, here, as it appears to be a problem at least a few are suffering.

Is anyone NOT having this issue?

Regards,
Julique
Last edited by Mick on Fri Aug 12, 2016 1:09 pm, edited 1 time in total.
Reason: Moved from [3.0] support
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26870
Joined: Fri Aug 29, 2008 9:49 am

Re: YouTube embedded videos "black bar" picture problem

Post by Mick »

If it 'just happened' something has changed, did you or your host do anything like editing, changing servers etc? I suspect from what has already been said that YouTube has changed something.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
JuhleeK
Registered User
Posts: 10
Joined: Fri Aug 12, 2016 12:45 pm

Re: YouTube embedded videos "black bar" picture problem

Post by JuhleeK »

No changes on our end; woke up, and went to post something, only to find the aforementioned bbcode issue.

I suspect you're right re: YouTube having, themselves, made some changes.

Any ideas?
WWu777
Registered User
Posts: 812
Joined: Tue Aug 14, 2007 12:40 pm

Re: YouTube embedded videos "black bar" picture problem

Post by WWu777 »

I'm having the same problem too. For years my YouTube BBcode worked fine. Suddenly today it stopped working and all the videos in my forum now show up as a vertical black bar. What happened? I didn't do anything to cause this change. Can anyone tell me what's wrong?

Here are the BBCodes I use.

BBCode usage:

Code: Select all

[youtube]http://www.youtube.com/watch?v={SIMPLETEXT}[/youtube]
HTML Replacement

Code: Select all

<object width="425" height="350"><param name="movie" value="https://www.youtube.com/v/{SIMPLETEXT}"></param><param name="wmode" value="transparent"></param><embed src="https://www.youtube.com/v/{SIMPLETEXT}" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>
If YouTube changed something, does that mean we should use a different BBCode? What about the iframe version? Should we try that? If so, what's the iframe code?
WWu777
Registered User
Posts: 812
Joined: Tue Aug 14, 2007 12:40 pm

Re: YouTube embedded videos "black bar" picture problem

Post by WWu777 »

OP,
I found some other alternate YouTube embed codes. Can you try them and see if it fixes the problem?

Here is an iframe code I found in another support thread:

viewtopic.php?p=13704306#p13704306

This thread contains codes that allegedly will work for both http and https versions of YouTube code.

viewtopic.php?f=46&t=2182570

Let me know which ones work to fix this problem.
WWu777
Registered User
Posts: 812
Joined: Tue Aug 14, 2007 12:40 pm

Re: YouTube embedded videos "black bar" picture problem

Post by WWu777 »

Update:

To OP and Support Staff:

Ok I got my YouTube videos working again, by using another BBCode using iframes. This one:

viewtopic.php?p=13704306#p13704306

Field 1:

Code: Select all

[youtube]{TEXT1}youtube.com/watch?v={IDENTIFIER}{TEXT2}[/youtube]
Field 2:

Code: Select all

<iframe width="560" height="315" src="//www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
But there's a BIG PROBLEM! Only NEWLY submitted videos are embedded properly. All the other countless thousands of videos in my forum are NOT! It doesn't automatically apply to all the other videos wrapped around the same BBCode. The only way to make them show is to edit and resubmit the posts, but even I do that, I have to change something, such as one letter of text, before it will embed the videos properly. If I change nothing and simply resubmit the post, it won't embed!

So what can I do? Is there a way to run a database command to have all the other embedded YouTube videos automatically embed properly, using the new BBCode? If so, can you show me how to do that please? I don't want to have thousands of videos in my forum only showing text.
JuhleeK
Registered User
Posts: 10
Joined: Fri Aug 12, 2016 12:45 pm

Re: YouTube embedded videos "black bar" picture problem

Post by JuhleeK »

Huge thanks for your troubleshooting efforts, WWu777.

I will hold off, until we hear, again, from a member of the support staff on completing the solution you've found.

Cheers.
GandalfleGris
Registered User
Posts: 4
Joined: Fri Aug 12, 2016 12:01 pm

Re: YouTube embedded videos "black bar" picture problem

Post by GandalfleGris »

My solution :

BEFORE :

Code: Select all

[youtube]{IDENTIFIER}[/youtube]

Code: Select all

<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{IDENTIFIER}" width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}" />
<param name="wmode" value="transparent" />
</object>
AFTER :

Code: Select all

[youtube]{IDENTIFIER}[/youtube]
(same)

Code: Select all

<iframe width="560" height="315" src="https://www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
On my forum, it works for old AND new embedded videos. \o/
JuhleeK
Registered User
Posts: 10
Joined: Fri Aug 12, 2016 12:45 pm

Re: YouTube embedded videos "black bar" picture problem

Post by JuhleeK »

Brillant!

Worked for me, as well.

Phew!
WWu777
Registered User
Posts: 812
Joined: Tue Aug 14, 2007 12:40 pm

Re: YouTube embedded videos "black bar" picture problem

Post by WWu777 »

GandalfleGris wrote:My solution :

BEFORE :

Code: Select all

[youtube]{IDENTIFIER}[/youtube]

Code: Select all

<object type="application/x-shockwave-flash" data="http://www.youtube.com/v/{IDENTIFIER}" width="425" height="350">
<param name="movie" value="http://www.youtube.com/v/{IDENTIFIER}" />
<param name="wmode" value="transparent" />
</object>
AFTER :

Code: Select all

[youtube]{IDENTIFIER}[/youtube]
(same)

Code: Select all

<iframe width="560" height="315" src="https://www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
On my forum, it works for old AND new embedded videos. \o/
That didn't work for me. My videos still don't embed or show up. Only newly posted ones do. Is there any other way? Can a database command do it?
User avatar
Darloup
Registered User
Posts: 368
Joined: Sun Jun 27, 2010 8:59 pm
Location: Barranquilla (Colombia)
Name: Henry

Re: YouTube embedded videos "black bar" picture problem

Post by Darloup »

Hello,

Same problem here - all my youtube videos now show a black rectangle (where the video is supposed to show).

My problem is some of the links to my videos are using http://www.youtube.com whilst others are using http[b][color=#FF0000]s[/color][/b]://www.youtube.com so I really need a BBCode which can handle for formats of URLs.

What do you suggest? My old BBcode was:

Code: Select all

BBCode usage: [video]{TEXT}[/video]
HTML replacement: <script type="text/javascript" src="video.php?link={TEXT}"></script>
Many anticipated thanks!

Henry

P.S.: @ GandalfLeGris: I have created your BBCode, but it doesn't work. This is what I get for a new video:

Image
baller1234
Registered User
Posts: 129
Joined: Sat May 29, 2010 9:43 am

Re: YouTube embedded videos "black bar" picture problem

Post by baller1234 »

use STK to reparse your topics.
User avatar
Darloup
Registered User
Posts: 368
Joined: Sun Jun 27, 2010 8:59 pm
Location: Barranquilla (Colombia)
Name: Henry

Re: YouTube embedded videos "black bar" picture problem

Post by Darloup »

Hello baller1234,
baller1234 wrote:use STK to reparse your topics.
I still will need a valid BBCode to display youtube videos.
User avatar
JoshyPHP
Code Contributor
Posts: 1291
Joined: Mon Jul 11, 2011 12:28 am

Re: YouTube embedded videos "black bar" picture problem

Post by JoshyPHP »

That one.

Code: Select all

[youtube]{IDENTIFIER}[/youtube]

Code: Select all

<iframe width="640" height="360" src="https://www.youtube.com/embed/{IDENTIFIER}" frameborder="0" allowfullscreen></iframe>
I wrote the library that handles markup in phpBB 3.2+.
User avatar
Darloup
Registered User
Posts: 368
Joined: Sun Jun 27, 2010 8:59 pm
Location: Barranquilla (Colombia)
Name: Henry

Re: YouTube embedded videos "black bar" picture problem

Post by Darloup »

Thanks JoshyPHP, but your BBCode does not work on my forum. I get this:

Image

as you can check here: http://www.darloup.com/forum/viewtopic.php?f=11&t=2383

Return to “Custom BBCode Development and Requests”