Closed caweidmann closed 4 years ago
+1 would like to be able to trigger a Google Analytics event when the video is clicked on! @caweidmann has detailed the events pretty well!
@caweidmann, What about <iframe />
load event: #20. What about thumbnail: you can listen to thumbnail events through thumbnailListeners
prop.
@caweidmann, @enkota, Can we close the issue, or should we discuss more type of events developer might need to hook into?
@caweidmann, @enkota, Thanks for creating the issue 🙏 .
I haven't looked at thumbnailListeners
, but if it's possible to catch a load event there then we can close this from my side.
@caweidmann, Yeah, this is possible. You can take a close look here.
Hi there
Would it be possible to add events to the plugin that one can hook into? I'm thinking of two specifically that can be very useful:
@thumbnailLoaded
(or something along those lines) which triggers after the thumbnail has fully loaded in the DOM.@ready
which triggers when the iframe has been injected into the DOM and has loaded. This would be useful for mobile whenautoplay
doesn't work so one can manually trigger the video to play after the "ready" event.