Is there a way to have an NPAPI plugin generate an event on the host page side? i.e. the page that contains the <embed> tag instantiating the plugin.
Disclaimer: I am an NPAPI newbie.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Found a way: on the plugin side, expose an “addEventListener” method and have the JS side use this API to register “listeners”.
When an event occurs on the plugin side, iterate through the “listeners”.