Youtube API - Failed to execute 'postMessage' on 'DOMWindow'

前端 未结 5 2253
渐次进展
渐次进展 2020-12-16 22:36

I\'m trying to start a youtube video when a modal is opened and not progress to the next page until it is completed.

My script below works in Chrome but produces thi

5条回答
  •  误落风尘
    2020-12-16 23:13

    In my case (similar to the selected answer here Youtube API error - Failed to execute 'postMessage' on 'DOMWindow':) It came down the to the fact that the video was not visible on the page at the time Player was instantiated.

提交回复
热议问题