OnClick event on embedded stream video in iframe

%3CLINGO-SUB%20id%3D%22lingo-sub-2047420%22%20slang%3D%22en-US%22%3EOnClick%20event%20on%20embedded%20stream%20video%20in%20iframe%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2047420%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20all.%20Is%20there%20a%20way%20to%20trigger%20an%20onClick%20event%20when%20a%20stream%20video%20is%20embedded%20inside%20an%20iframe%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20a%20corporate%20page%20where%20video%20content%20is%20embedded%20via%20jquery%20inside%20iframe%20from%20the%20content%20in%20Stream.%20I%20want%20to%20trigger%20a%20javascript%20event%20when%20the%20user%20clicks%20play%20on%20the%20video.%20Ideally%2C%20I'd%20like%20a%20javascript%20trigger%20to%20occur%20when%20the%20user%20watches%2075%25%20of%20the%20video%20but%20I'm%20happy%20for%20the%20event%20to%20trigger%20simply%20when%20the%20video%20plays%20if%20%26nbsp%3Bgetting%20current%20play%20position%20is%20too%20difficult.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20tried%20to%20grab%20a%20handle%20of%20the%20azuremediaplayer%20instance%20using%20jQuery%20but%20without%20much%20success.%20Perhaps%20there%20is%20another%20way%20to%20easily%20grab%20current%20progress%20or%20commencement%20of%20a%20video%20playing%20using%20javascript%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ECan%20anyone%20provide%20any%20suggestions%20or%20had%20any%20similar%20experiences%3F%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
New Contributor

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? 

0 Replies