Video Play Event Trigger (1 Viewer)

mightymike

New Member
December 28, 2008
1
0
Is there a way to use the event trigger for when a video is started? I would like to build a plugin that will dim my lights when a video is started.
 

fforde

Community Plugin Dev
June 7, 2007
2,667
1,702
43
Texas
Home Country
United States of America United States of America
You are looking for an Action, not an event. In your plug-in override the OnAction method and listen for the Action.ActionType.ACTION_MUSIC_PLAY action. Don't be misled by the name, it is called ACTION_PLAY_MUSIC but it is triggered for any sort of playback. Maybe a relic from the old days? I dunno.

You can see the implementation in Moving Pictures here. Your's will probably need to be a little different because I assume you're doing a process plug-in rather than a window plug-in. Never messed with the process stuff so maybe some method names are a little different, but generally that is what you want to do.

Good luck. ^^
 

Users who are viewing this thread


Write your reply...

Similar threads

Hello, I would like to use a media server to display various learning categories. I prefer not to use software like Kodi, as it requires extensive metadata scraping that I don't need. Is it possible to instantly access the video categories when landing on the page? I would like to display a single media page with the following...
Hello, I would like to use a media server to display various learning categories. I prefer not to use software like Kodi, as it...
Hello, I would like to use a media server to display various learning categories. I prefer not to use software like Kodi, as it...
Replies
0
Views
451
OK - Will care about ;)
OK - Will care about ;)
In version 1.36 (I think), technical specifications were added to the center panel of the movie info screen when 'Movie Info before...
Replies
3
Views
421
DOH.....another senior moment for me, as I've been here before some years ago! Thanks again :)
DOH.....another senior moment for me, as I've been here before some years ago! Thanks again :)
After some time working seamlessly....have run into a brick wall with this! Have tried switching from MadVr to EVR....and problem...
Replies
4
Views
958
Hi there, since I changed TV and HTPC's CPU, I'm wondering if this guide: Guide could be considered still good today, since it's been almost 13 years since then and it's still referring to a resolution of 1080p? I say this because I have a new Panasonic 4K HDR TV, and with that settings, even if I have an old Gygabyte GPU (bought...
Hi there, since I changed TV and HTPC's CPU, I'm wondering if this guide: Guide could be considered still good today, since it's...
Hi there, since I changed TV and HTPC's CPU, I'm wondering if this guide: Guide could be considered still good today, since it's...
Replies
0
Views
332
Hi mate, As usual, you are always first up with an offer of assistance, and I really appreciate it. So sorry I haven't replied. I'll send you a PM now. Cheers, Steve.
Hi mate, As usual, you are always first up with an offer of assistance, and I really appreciate it. So sorry I haven't replied...
It appears that MP somehow caches previously used subtitle files for subsequent use next time the same video is played. My problem...
Replies
2
Views
1K
Top Bottom