Youtube iframe API 无法加载或提示播放列表

问题描述 投票:0回答:2

我使用 Youtube Iframe API,当我尝试使用

player.loadPlaylist({list: 'PLAYLIST_ID'});
player.cuePlaylist({list: 'PLAYLIST_ID'});
时,方法从昨天开始返回错误
Uncaught TypeError: Cannot read property 'tg' of null

几天前,方法

cuePlaylist
停止触发“视频提示事件”,正如Youtube Iframe API文档中所解释的那样

有人可以帮助我吗?

javascript youtube youtube-api youtube-iframe-api
2个回答
2
投票

我刚刚通过电话修复了它

player.playVideoAt(0);

打电话后

loadPlayList(...)


0
投票

我有同样的问题,播放列表已加载但视频未启动,对我来说player.playVideoAt(0) 不起作用,有什么想法吗?

© www.soinside.com 2019 - 2024. All rights reserved.