The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
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! |
#2
|
||||
|
||||
Quote:
Code:
src="{vb:var media.svcMovie}&fs=0" |
#3
|
|||
|
|||
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: After click: As you can see it simply greys out and is unclickable after 1 click and no fullscreen ofc. |
#4
|
||||
|
||||
Quote:
|
Благодарность от: | ||
tbworld |
#5
|
||||
|
||||
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. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|