we had a javascript code that adds Youtube player in our product.
It worked for a while and today it broke throwing this message:
TypeError:
'null' is not an object (evaluating 'a.a.contentWindow.postMessage')
This behavior is not consistent, and once in a while the player does work. On my test page, I haven't manage to recreate this issue, and it might be related to the complexity of my product.
Debugging a little shows that a.a.contentWindow is the content window of the iframe that the YT.Player creates, and is not defined yet when the player tries to access it.
Seems like the player tries to use the the iframe's contentWindow, before it is ready.
Anyone else encountered / solved such an issue?
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/pVFcEq1nyJYJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.
No comments:
Post a Comment