2012-01-23 162 views
2

我已經通過drupal模塊將YouTube視頻嵌入網站(我不確定這是否與此相關)。一切工作正常,我能夠通過JavaScript與視頻進行交互,並盡我所需,但全屏不再有效。嵌入的Youtube視頻不會全屏

這裏是我使用嵌入視頻的字符串:

orientation.start_id = $('#orientation-player').attr('data-youtube_id'); 
var params = {allowScriptAccess: 'always'}; 
var atts = {id: 'orientation-player', wmode: 'opaque'}; 
swfobject.embedSWF('http://www.youtube.com/v/'+orientation.start_id+'?version=3&enablejsapi=1&playerapiid=orientation-player', 
    'orientation-player', '854', '480', '8', null, null, params, atts); 

回答

6

嘗試改變線2,

var params = {allowScriptAccess: 'always', allowfullscreen: 'true'};