Click to open network menu
Join or Log In
Mobafire logo

Join the leading League of Legends community. Create and share Champion Guides and Builds.

Create an MFN Account






Or

's Forum Avatar

YouTube embedding using <iframe>

Creator: Latest Legend February 16, 2015 9:37am
Latest Legend
<Member>
Latest Legend's Forum Avatar
Show more awards
Posts:
3039
Joined:
Dec 7th, 2012
Permalink | Quote | PM | +Rep February 16, 2015 9:37am | Report
Hi,

Whether Adobe Flash is dying or not, more and more people are dropping the Flash plugin and start using YouTube's HTML5 player, and there are also environments that simply can't run Adobe Flash. Without Flash Player, it's impossible to watch YouTube videos embedded in the forum posts on MOBAFire.

YouTube has a new way of embedding videos, using an iframe, which enables the user to watch the video using both Flash and HTML5 (depending on preference and/or lack of one of the methods). This shouldn't make a difference for Flash users, but it will enable people without Flash to watch videos directly from this website too.

You can read more about this "new" standard here:
http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos.html
https://developers.google.com/youtube/iframe_api_reference

Note: according to Google this method won't work in IE version 7 and below. I don't know what your statistics say, but all Windows XP users should be using IE8 by now, and I don't see LoL running on Windows 98.

The current method for me to watch videos consists of quoting all messages containing videos and copying the urls from the embed tags. I would very much appreciate if the [youtube] tag could be altered or if a new tag would be added so that I can watch the videos directly. It wouldn't only benefit people like me but also visitors using a mobile device. Therefore I hope you will consider implementing this.

Have a nice day
********'s a pretty good fertilizer
Janitsu
<Moderator>
Janitsu's Forum Avatar
Show more awards
Posts:
8829
Joined:
Jul 3rd, 2011
Permalink | Quote | PM | +Rep February 16, 2015 9:41am | Report
I like the "hi" at the beginning


adds a personal touch to this post :D
PsiGuard
<Retired Admin>
PsiGuard's Forum Avatar
Show more awards
Posts:
10290
Joined:
Jun 26th, 2011
Permalink | Quote | PM | +Rep February 17, 2015 7:09am | Report
Interesting suggestion. I will ask the MOBAFire techie people what they can do and get back to you.
Thanks to Nyoike for the sig!
Latest Legend
<Member>
Latest Legend's Forum Avatar
Show more awards
Posts:
3039
Joined:
Dec 7th, 2012
Permalink | Quote | PM | +Rep October 22, 2015 1:18pm | Report
Today I tried embedding a video and I realized that iframes are now in use when using the [embed] tags! Huge thanks to the devs for implementing this!

One remark, the width and height attributes are both set to 540, which isn't in the right aspect ratio for YouTube videos. Something like 420 by 315 is (the default if you choose Share -> Embed on a YouTube page).

For example, this currently looks rectangular, not everything of the video is visible (you can easily spot this by the Vevo logo: the first V is not entirely visible):
There should be black borders around the video as is with the video on the YouTube page:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
********'s a pretty good fertilizer
[deleted]
<Editor>
oxide110's Forum Avatar
Show more awards
Posts:
1512
Joined:
Nov 16th, 2011
Permalink | Quote | PM | +Rep October 22, 2015 2:05pm | Report
Today I tried embedding a video and I realized that iframes are now in use when using the [embed] tags! Huge thanks to the devs for implementing this!

One remark, the width and height attributes are both set to 540, which isn't in the right aspect ratio for YouTube videos. Something like 420 by 315 is (the default if you choose Share -> Embed on a YouTube page).

For example, this currently looks rectangular, not everything of the video is visible (you can easily spot this by the Vevo logo: the first V is not entirely visible):
There should be black borders around the video as is with the video on the YouTube page:
https://www.youtube.com/watch?v=dQw4w9WgXcQ
(unknown embed type)

London is one hour ahead of the rest of England -Luther3000
Latest Legend
<Member>
Latest Legend's Forum Avatar
Show more awards
Posts:
3039
Joined:
Dec 7th, 2012
Permalink | Quote | PM | +Rep October 22, 2015 3:42pm | Report
Strange, it loads for me on Firefox, Chromium and WebKit2. What browser are you using? Can you watch YouTube using the HTML5 player? I don't have Flash installed, maybe that has to do with it.

EDIT: Mistook the error as a comment. Not sure what you're trying to say and I'm not looking it up either :^)
********'s a pretty good fertilizer

You need to log in before commenting.

League of Legends Champions:

Teamfight Tactics Guide