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

前端 未结 5 2257
渐次进展
渐次进展 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:06

    In my Case "widget_referrer" was missing. If nothing works for you, try widget_referrer :window.location.href

    other possible properties one might miss are

    origin:window.location.href, enablejsapi:1,

提交回复
热议问题