cc_load_policy没有在youtube ifram api中运行视频“RXH1ol5qp4I”

时间:2016-12-20 11:59:39

标签: youtube-iframe-api

function onYouTubeIframeAPIReady() {
            player = new YT.Player('player', {
                height: '100%',
                width: '100%',
                videoId: videoId,
                playerVars: {
                    'cc_load_policy': 1,
                    'controls': 0,
                    'showinfo': 0
                },
                events: {
                    'onReady': onPlayerReady,
                    'onStateChange': onPlayerStateChange
                }
            });
}

0 个答案:

没有答案