Player对象只有很少的功能

时间:2013-12-17 01:25:33

标签: youtube-api

当我在event.target上从playerStateChange检索一个玩家对象时,它缺少必要的功能;它有函数addEventListener, destroy, getIframe, getOption, getOptions, getVideoEmbedCode,但它没有其他函数,如playVIdeo()或stopVideo()。作为一种解决方法,我将播放器对象存储在jQuery数据中,但我想知道为什么我无法从event.target检索完整的播放器对象。有没有人有想法?

这也发布在Google Youtube API论坛上:link

0 个答案:

没有答案