Hi Ritika,
Please have a look at the JW player widget.
https://appstore.home.mendix.com/link/app/2578/
It has some events handling build in.
Though it is not perfect i might suite your needs
Cheers,
Andries