一个嵌入式Youtube视频赢得了't全屏显示

An embedded Youtube video won't fullscreen

本文关键字:显示 一个 嵌入式 视频 Youtube      更新时间:2023-09-26

我已经通过drupal模块将youtube视频嵌入到网站中(我不确定这是否相关)。一切都很好,我可以通过javascript与视频交互,做我需要的一切,然而,全屏不再工作。

这是我用来嵌入视频的字符串:

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);

尝试将第2行更改为

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