![]() |
HTML5 issue. VB4 changing empty attributes.
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> Code:
<iframe width="640" height="385" src="http://www.youtube.com/v/xEXg0hw6uZk?rel=0&showinfo=0" frameborder="0" allowfullscreen=""/> Thank you! |
Quote:
Code:
src="{vb:var media.svcMovie}&fs=0" |
Quote:
If its not a valid attribute why does youtube puts it there by default? Default code for embedding a youtube video is: <iframe width="480" height="360" src="//www.youtube.com/embed/G7SqvJA79bk?rel=0" frameborder="0" allowfullscreen></iframe> Anyway, I've tried adding &fs=0 before (although fs=0 actually removes the fullscreen button :), fs=1 puts it back) and it makes the icon clickable, but nothing happens when you click on it. This is how it looks with the following src 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}&fs=1" frameborder="0"></iframe> Before click: https://vborg.vbsupport.ru/external/2013/10/50.png After click: https://vborg.vbsupport.ru/external/2013/10/51.png As you can see it simply greys out and is unclickable after 1 click and no fullscreen ofc. |
Quote:
|
Default code is:
HTML Code:
<iframe width="420" height="315" src="//www.youtube.com/embed/BpqNvskS_kM" frameborder="0" allowfullscreen></iframe> But yeah, your problem was probably that you were using v instead of embed. |
All times are GMT. The time now is 01:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|