Closed jbeach closed 2 years ago
Either set it to 0 or even better make the tracking wait until it is defined.
I want to redact this request. I was able to make it work by registering the API ("Enabling YouTube playback tracking") on the iframe.onload event when the iframe.src value is loaded dynamically.
Thanks for this wonderful video tracking plugin.
Great to hear that it works for you! (And so sorry for the super-late reply.)
Hi,
Great Launch extension (swoon)!
I have an issue though in that many of our site's YouTube videos have dynamically loaded iframe src attribute and the video plays tracking is failing due to this YouTube constructor issue mentioned here: https://stackoverflow.com/a/47415537
I was wondering if you could update the extension to fail more gracefully in this case? e.g. as suggested in the Stack Overflow, set it to 0 or something when player.getCurrentTime() is undefined?
Thanks in advance, Julia