Forum Discussion
PeterNeg
Jan 11, 2021Copper Contributor
OnClick event on embedded stream video in iframe
Hello all. Is there a way to trigger an onClick event when a stream video is embedded inside an iframe?
I have a corporate page where video content is embedded via jquery inside iframe from the content in Stream. I want to trigger a javascript event when the user clicks play on the video. Ideally, I'd like a javascript trigger to occur when the user watches 75% of the video but I'm happy for the event to trigger simply when the video plays if getting current play position is too difficult.
I tried to grab a handle of the azuremediaplayer instance using jQuery but without much success. Perhaps there is another way to easily grab current progress or commencement of a video playing using javascript?
Can anyone provide any suggestions or had any similar experiences?
No RepliesBe the first to reply