javascript - iOS Youtube iframe bug -
i playing embedded youtube video (iframe) on ios. want manipulate iframe's size dynamically javascript. noticed when change frame's size javascript, video not playing (not clickable) on ios (on pc/android ok).
i simulated here. if remove javascript video playing again!
i think related change on youtube's code, because old code used work until somewhere last week.
any ideas?
thanks!
the code:
<iframe id="aa" src="http://www.youtube.com/embed/54vtxri32mq" frameborder="0" allowfullscreen></iframe>
js:
$('iframe').css({'height' : '250px'}); $('iframe').css({'width' : '400px'});
apparently google's bug (#10, #11). #14's workaround solved problem!
Comments
Post a Comment