Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Pushed] Youtube bug (MyBB Bug confirmed same here)
#1
Youtube videos without the &t=Xs timestamp aren't showing.

Videos with the time parameter work but not those without.
Here is the test code:
Code:
[vid**=youtube]https://www.youtube.com/watch?v=woAHwpOLmyY[/video]
[vid**=youtube]https://www.youtube.com/watch?v=woAHwpOLmyY&t=0s[/video]

Link to my example testing

Testing without timestamp here:


With Timestamp added:


The difference is the one without the timestamp has this code:

Code:
<iframe width="560" height="315" src="//www.youtube.com/embed/woAHwpOLmyY&quot; target" frameborder="0" allowfullscreen=""></iframe>

And one with the timestamp uses this:

Code:
<iframe width="560" height="315" src="//www.youtube.com/embed/woAHwpOLmyY" frameborder="0" allowfullscreen=""></iframe>

Seems the timestamp element code may be back to front in the iframe as with the timestamp its showing the main video without the timestamp and one without has the '&quot; target' which is bugging things.

Instead of a straight iframe you guys should look into the YouTube API

Fixed using this parser change Shade- Fixed embedded videos not working after #2968 but no timestamp works they both start the video from the beginning.
So that needs to be fixed also.
Reply
#2
What's really weird is I could post a video in my forum (even before swapping the class_parser file) with Win 10 and Chrome - no other combination would work.

Win 8:1: no work.


Trying with iPad and opera the video below works.

[video=youtube]http:https://m.youtube.com/watch?v=Ib31-TDH05I//[/video]
Reply
#3
yes
same here, I have a lot of you tube videos that have stopped working.

If I am in edit mode, they work fine, when I save a new post or edited post they do not work.

If I copy the video url then they work.
Reply
#4
It is related to SCeditor probably...
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#5
(05-20-2018, 06:41 PM)newbietuesday Wrote: What's really weird is I could post a video in my forum (even before swapping the class_parser file) with Win 10 and Chrome - no other combination would work.

Win 8:1: no work.


Trying with iPad and opera the video below works.

I'm surprised that video is actually showing here as the url is malformed in the source.
Even on my site with the updated parser code it's still doing working.
So there is some other bugs it seems.

Code:
http:https://m.youtube.com/watch?v=Ib31-TDH05I//

Then again code for mobile m links may be working in the parser.

We know there is a bug and Shade has pushed a new parser that partially works around the issue but the disadvantage is that it strips the extra parameters off timestamps, playlists etc.

Update:
I have tested a bunch of codes on my own site and all seem working as a test here is Malformed Desktop HTTP on this site.
Wonder if it's the extra / at the end or the extra http in-front that's making that work lets test.

Very strange malformed desktop works here.
Code:
[vid**=youtube]http:https://youtube.com/watch?v=Ib31-TDH05I//[/video]
[video=youtube]http:https://youtube.com/watch?v=Ib31-TDH05I//[/video]

Someone try the malformed desktop here but replace the first http with https and lets see what happens.
Reply
#6
That's right, you can take the "m" out of the "m.youtube" and it still works.

I'm surprised there is no real fix for this. Confused

Only a few of my members using Win 10 and Chrome are able to post vid's the rest don't even bother. The music thread is basically dead.
Reply
#7
(05-24-2018, 05:23 AM)newbietuesday Wrote: That's right, you can take the "m" out of the "m.youtube" and it still works.

I'm surprised there is no real fix for this. Confused

Only a few of my members using Win 10 and Chrome are able to post vid's the rest don't even bother. The music thread is basically dead.


trying the h tt ps:h tt ps:


[video=youtube]https:https://youtube.com/watch?v=Ib31-TDH05I//[/video]
Reply
#8
Doing another test curious about that video earliest and formatting of the URL.
The m just means it's on their mobile subdomain.
Some sites have that have a separate website as m. for mobile users.

So now we know it's the double / at the end making this video work here.
It's a problem with the YouTube parameter tag as I mentioned above.

Code:
[vide**=youtube]https://youtube.com/watch?v=Ib31-TDH05I//[/video]

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)