YouTube embed
Permalink
When embedding a video from YouTube with the YouTube block, concrete5 uses the following code:
Why doesn't concrete5 use the new iframe method to embed videos?
Like this:
If I understand correctly, the new embed method also supports HTML5 so the video would also work in devices without Flash.
More information:
http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos....
<div id="youtube244" class="youtubeBlock"><div id="youtube244_video">Asenna Adobe Flash nähdäksesi tämä sisältö.</div></div> <script type="text/javascript"> //<![CDATA[ params = { wmode: "transparent" }; flashvars = {}; swfobject.embedSWF('http://www.youtube.com/v/yQdnCQ4dmSg&hl=en', 'youtube244_video', '425', '344', '8.0.0', false, flashvars, params); //]]> </script>
Why doesn't concrete5 use the new iframe method to embed videos?
Like this:
<iframe width="480" height="360" src="//www.youtube.com/embed/yQdnCQ4dmSg" frameborder="0" allowfullscreen></iframe>
If I understand correctly, the new embed method also supports HTML5 so the video would also work in devices without Flash.
More information:
http://apiblog.youtube.com/2010/07/new-way-to-embed-youtube-videos....
it supports both ways? See attachment
So it does...
I think the Finnish language file is affecting the overlay window because there are scrollbars and the option for that is not completely visible at first.
Also I think the iframe method could be used as default. :)
When new users add a video, I don't think they realise the difference between those two and I think the iframe method should be preferred.
But thanks for the tip... Should double check first before posting.
I think the Finnish language file is affecting the overlay window because there are scrollbars and the option for that is not completely visible at first.
Also I think the iframe method could be used as default. :)
When new users add a video, I don't think they realise the difference between those two and I think the iframe method should be preferred.
But thanks for the tip... Should double check first before posting.
then let's see if we can change the default behaviour ;-)
https://github.com/concrete5/concrete5/pull/1458...
https://github.com/concrete5/concrete5/pull/1458...
Good job. :)