Youtube iframe api onReady没有在Ipad上开火? [英] Youtube iframe api onReady not firing on Ipad?

查看:224
本文介绍了Youtube iframe api onReady没有在Ipad上开火?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我读过你无法自动播放视频,但我注意到我的onReady功能没有在iPad上调用。它适用于所有其他浏览器。这是另一个知道的问题吗?

I've read that you cannot autoplay videos, but I'm noticing that my onReady function is not being called on iPad. It works on all other browsers. Is this another know issues?

这是我的加载代码:

player = new YT.Player('videoDiv', {
    events: {
        'onReady': onPlayerReady,
        'onStateChange': youtubePlayer.onPlayerStateChange
    }
});

onPlayerReady有一个警告,它不会出现在iPad上,它会出现在所有其他broswers上。此外,玩家变量似乎不是我所期待的。我得到一个[Object object]但是执行player.playVideo或者player.queVideoById()都会导致错误。这些也是已知的错误吗?

onPlayerReady has an alert which does not show up on iPad, it does on all other broswers. Also it seems the player variable is not what I'm expecting. I get an [Object object] but doing player.playVideo or player.queVideoById() both cause errors. Are these also known bugs?

在iPad上有什么用?

What does work on iPad?

谢谢!

推荐答案

这是一个旧的错误,此时应该修复。一旦调用onReady事件,您期望的播放器变量将只具有playVideo和cueVideoById等功能。

This is an old bug and it should be fixed at this time. The player variable that you're expecting will only have functions like playVideo and cueVideoById once the onReady event is called.

这篇关于Youtube iframe api onReady没有在Ipad上开火?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆