Tag: youtube iframe api

Browserify打破了YouTube的iFrame API

当我浏览获取和应用Youtube iFrame API的脚本时, onYoutubeIframeAPIReady()不会运行,并且不会加载请求的video。 有没有解决的办法? 难道我做错了什么? 这是我的脚本: var Command = require('../model/command.js'); var Control = require('../model/control.js'); var User = require('../model/user.js'); var socket = io(); var executions = {}; executions[1] = function() { player.playVideo(); }; executions[2] = function() { player.pauseVideo(); }; var control = Control(); var now = function() { return new Date().getTime() / 1000; }; var […]