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

前端 未结 5 2248
渐次进展
渐次进展 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 22:55

    The solution was simple, although I do not know why. By removing the api from the modal it worked fine. Within the modal it wouldn't.

提交回复
热议问题