Quote:
Originally Posted by axelfx07
Hey guys,
I am using 8WR Media LIbrary on my forum. I wanted HTML5 Youtube player, so I updated the cod to use <iframe> and all works fine. However, VB is changing empty allowfullscreen attribute to allowfullscreen="", which disables fullscreen.
I tried almost everything, including adding webkitallowfullscreen="true" mozallowfullscreen="true" allowfullscreen="true" and adding ?fs=0 to the link, but nothing works.
Here is the code:
Code:
<iframe width="<vb:if condition="$media['embed_stream']">100%<vb:else />{vb:var media.svcWidth}</vb:if>" height="{vb:var media.svcHeight}" src="{vb:var media.svcMovie}" frameborder="0" allowfullscreen></iframe>
it turns into:
Code:
<iframe width="640" height="385" src="http://www.youtube.com/v/xEXg0hw6uZk?rel=0&showinfo=0" frameborder="0" allowfullscreen=""/>
Any way to fix this?
Thank you!
|
The attribute allowfullscreen is not a valid attribute for an iframe tag in xhtml, much less html5, further valid xhtml/html5 requires that all attributes have a value, hence why you see the ="". To fix you'll probably need to append the fs=0 to the src for the iframe like:
Code:
src="{vb:var media.svcMovie}&fs=0"