Setting video start time with the YouTube API - “start” playerVars option used to work, but now does not?

社会主义新天地 提交于 2019-12-01 14:06:07

The start parameter still works. The problem is, that you compute a wrong value for it: wrong type. Maybe it has been changed: Supplying a valid INTEGER value works. (If fractions are allowed, then not all are valid.)

For example, if you want a value between 0 and 200 then use:

  var maxVal = 200;
  var startVal = Math.ceil((Math.random() * maxVal));
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!