Page 1 of 3

YouTube embedded videos "black bar" picture problem

Posted: Fri Aug 12, 2016 12:58 pm
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

Re: YouTube embedded videos "black bar" picture problem

Posted: Fri Aug 12, 2016 1:11 pm
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.

Re: YouTube embedded videos "black bar" picture problem

Posted: Fri Aug 12, 2016 1:20 pm
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?

Re: YouTube embedded videos "black bar" picture problem

Posted: Sat Aug 13, 2016 7:31 am
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?

Re: YouTube embedded videos "black bar" picture problem

Posted: Sat Aug 13, 2016 7:45 am
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.

Re: YouTube embedded videos "black bar" picture problem

Posted: Sat Aug 13, 2016 9:03 am
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.

Re: YouTube embedded videos "black bar" picture problem

Posted: Sat Aug 13, 2016 9:53 am
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.

Re: YouTube embedded videos "black bar" picture problem

Posted: Sat Aug 13, 2016 2:14 pm
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/

Re: YouTube embedded videos "black bar" picture problem

Posted: Sat Aug 13, 2016 2:42 pm
by JuhleeK
Brillant!

Worked for me, as well.

Phew!

Re: YouTube embedded videos "black bar" picture problem

Posted: Sat Aug 13, 2016 9:17 pm
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?

Re: YouTube embedded videos "black bar" picture problem

Posted: Sun Aug 14, 2016 1:54 am
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

Re: YouTube embedded videos "black bar" picture problem

Posted: Sun Aug 14, 2016 12:38 pm
by baller1234
use STK to reparse your topics.

Re: YouTube embedded videos "black bar" picture problem

Posted: Sun Aug 14, 2016 9:21 pm
by Darloup
Hello baller1234,
baller1234 wrote:use STK to reparse your topics.
I still will need a valid BBCode to display youtube videos.

Re: YouTube embedded videos "black bar" picture problem

Posted: Sun Aug 14, 2016 9:37 pm
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>

Re: YouTube embedded videos "black bar" picture problem

Posted: Sun Aug 14, 2016 10:13 pm
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