MyBB Community Forums
[Pushed] video codes may not be loaded correctly - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Pushed (https://community.mybb.com/forum-183.html)
+----- Thread: [Pushed] video codes may not be loaded correctly (/thread-167116.html)



video codes may not be loaded correctly - Jones H - 2015-02-15

Yahoo has two different url schemes:

http://{locale}.screen.yahoo.com/{title}-{id}.html
http://{locale}.screen.yahoo.com/{channel}/{title}-{id}.html

The first one is loaded correctly, however the second one uses the channel name as video id which results in a broken iframe (or may even result in a wrong video).


RE: Yahoo/vimeo video codes my not be loaded correctly - Jones H - 2015-02-15

Same for vimeo:

https://vimeo.com/59859181
vs
https://vimeo.com/channels/staffpicks/59859181


RE: video codes my not be loaded correctly - Jones H - 2015-02-15

And another one: myspace uses a new syntax

https://myspace.com/themahoganysessions/video/fink-this-is-the-thing-mahogany-session/109566653

Edit: the embed code has changed:
<iframe width="480" height="270" src="//media.myspace.com/play/video/fink-this-is-the-thing-mahogany-session-109566653-112248310" frameborder="0" allowtransparency="true" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe><p><a href="https://myspace.com/themahoganysessions/video/fink-this-is-the-thing-mahogany-session/109566653">Fink - This is the Thing // Mahogany Session</a> from <a href="https://myspace.com/theMahoganySessions">The Mahogany Sessions</a> on <a href="https://myspace.com">Myspace</a>.</p>

Edit2: New template:
<iframe width="480" height="270" src="//media.myspace.com/play/video/{$title}-{$id}" frameborder="0" allowtransparency="true" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>
The parser also needs to be edited to htmlspecialchar the title.


RE: video codes may not be loaded correctly - Jones H - 2015-02-15

And metacafe also updated their embed code (though the old one still works):
<iframe src="http://www.metacafe.com/embed/{$id}/" width="440" height="248" allowFullScreen frameborder=0></iframe>



RE: video codes may not be loaded correctly - Omar G. - 2015-02-15

MySpace still exists O.O?


RE: video codes may not be loaded correctly - Jones H - 2015-02-15

I didn't know about most of them and only discovered them while looking at the code Toungue but yes, it exists Wink


RE: video codes may not be loaded correctly - Leefish - 2015-02-16

MySpace is now owned by Justin Timberlake and is focused on musicians. Check it out - fancy fancy Smile


RE: video codes may not be loaded correctly - Jones H - 2015-07-02

Hi,

Thank you for your report. We have pushed this issue to our Github repository for further analysis where you can track our commits and progress with fixing this bug. Discussions regarding this bug may also take place there too.

Follow this link to visit the issue on Github: https://github.com/mybb/mybb/issues/2132

Thanks for contributing to MyBB!

Regards,
The MyBB Group