mediaelement/mediaelement-plugins

Help in Ads plugin to run on specific event

Ahmed-Elrayes opened this issue · 10 comments

Hello, at first i wanna say that i'm not so good in javascript.
the thing i'm asking for is, i wanna run a specific function on event such as run function when the ad started playing and run a function when the ad is being clicked on.
Hope someone can show me an example of it.
Thanks in advance

You can use the mejsprerollstarted and mejsprerolladsclicked to see when a ad has been played or been clicked

And then execute the function you want

so i would use them the same way we use success function, right?

Yes

i see, thanks a lot, i will try it later and give you my feedback

seems like it's not working, i tried to run the function and make a console.log to check it, but nothing appears..
check the image below
Image 1

Is there anything you can help me with?

hey again, hope you can help me when you're here

@jaapmarcus hey, can you help me in this? :)

any body here can help?

since the support in here is kinda bad unfortunately i had to buy ultimate video player on code canyon, Thanks i will close this issue now.