NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 49 50 51 52 53 … 93 Next »
Plugin in top of video (VideoPlugin) Question

 
  • 0 Vote(s) - 0 Average
Plugin in top of video (VideoPlugin) Question
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#11
2006-04-30, 09:24 PM
I've been playing with McbainUK's Volume OSD plugin and am pretty happy with it except for one thing. I'd like to avoid the [up to] one second delay that it takes for the plugin to appear.

I've considered being "always on" and rendering transparent until the volume changed but I too considered this misbehaved.

I've found that the volume osd can appear "instantly" if the keyboard shortcut 5 F11 is sent by my remote software following volume changes (my volume plugin is VideoPlugin5). This is abusive use of the "activate plugin" shortcut and also sometimes switches to channel 5.

Is there any way the plugin can receive keyboard events even while it is deactivated? If not, could a "two plugin in one" strategy be used? A parallel plugin would always spy on the keyboard events but do nothing. When a +/- (volume change) keypress was noticed, and the volume plugin was not currently active, it would push 5 F11 keyboard events.

Ideally the IVideoPlugin api could be told that needsToBeShown() should be called on keyboard events. Something like usesKeyboardActivation(true).

Any suggestions, pointers would be greatly appreciated.
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#12
2006-05-03, 12:01 AM
Any suggestions on avoiding the 1 second delay for a video plugin? Wild guesses? Any vague idea of a solution would be great. Thanks.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,686
Threads: 767
Joined: Nov 2003
#13
2006-05-03, 12:42 AM
The delay could be up to a second, which is how often it is polled. There isnt currently anyway to avoid this. I'll see if I can add a mechanism in future to help with this.
Snarky
Offline

Junior Member

Posts: 43
Threads: 7
Joined: Oct 2005
#14
2006-05-03, 12:46 AM
Have you tried sending keypresses other than F11+5? (Sounds like you have, but just wanted to make sure.) I wonder if any keypress will trigger immediate calls to NeedsToBeShown etc.

I don't think a plugin "spying" on the keyboard events would work, because any active video plugin "eats" keypresses: GBPVR assumes the plugin handles them, and does nothing more with them (so no changing channels, etc). This may actually be a bug, since the "handled" return value has no effect.
fla
Offline

Posting Freak

Posts: 880
Threads: 46
Joined: Mar 2006
#15
2006-05-03, 01:39 AM
Yes I tried other keys. With my hauppauge remote, the volume changes themselves are + and - keys. Pressing + and - on the keyboard also has the up to 1 second delay.

I guess I'll wait for the api to have a way to do this.

Thanks for the replies!
Snarky
Offline

Junior Member

Posts: 43
Threads: 7
Joined: Oct 2005
#16
2006-10-03, 11:21 PM
An odd thing is happening to my video plugin. If the video plugin is active, needsToBeShown() still gets called every second. That's fine, and I usually just return true for as long as I want to be active.

However, if I return false in needsToBeShown(), my plugin sometimes disappears, or becomes invisible. If I move the mouse, it appears again. It's not deactivated, it just stops being rendered to the screen.

This is actually pretty neat, and I'm trying to use it as a workaround for the "9962 renders" bug. But it's not entirely reproduceable. Sometimes it takes a while before the plugin disappears, and I'm not sure exactly why. Has this happened to anyone else?
Snarky
Offline

Junior Member

Posts: 43
Threads: 7
Joined: Oct 2005
#17
2006-10-07, 02:56 AM
Wow, this is even stranger than I thought at first. The plugin doesn't disappear because needsToBeShown() returns false. It disappears because it wasn't activated by returning true in needsToBeShown() in the first place.

Video plugins behave differently depending on how they are activated!

If a plugin is activated by pressing [number]-F11, or by calling SwitchToVideoPlugin(), it becomes invisible after about 3 minutes, and its render() method is no longer called. But if you move the mouse, it becomes visible again, for a few seconds.

However, if a plugin is activated by returning true when needsToBeShown() is called, it never becomes invisible, and render() is called every second while it's active.

(Also, if the plugin is activated by calling SwitchToVideoPlugin(), its actual Activate() method never gets called.)

Bizarre. Well, it took me days to figure this out, so hopefully others don't have to go through the same work, now.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 2,825 2022-10-17, 12:44 AM
Last Post: sgilani
  Video streaming URL and parameters? cncb 1 1,813 2021-10-22, 06:58 PM
Last Post: sub
  Web API only_new Question Gazavant 6 2,654 2021-04-04, 06:54 PM
Last Post: sub
  Extras device - using hardware video encoder gdogg371 6 3,249 2021-03-09, 12:18 AM
Last Post: gdogg371
  Loading Local Video Files Syler 25 6,518 2021-03-07, 09:20 PM
Last Post: Syler
  New Systems Plugin kirschey 10 3,351 2020-11-14, 08:01 PM
Last Post: sub
  Another Artwork question scJohn 15 8,131 2019-09-10, 05:33 PM
Last Post: nonob
  WEB API GuidService/Listing question(s) scJohn 6 4,261 2017-08-09, 02:18 PM
Last Post: scJohn
  Resuming a video imilne 28 14,529 2016-10-30, 09:27 PM
Last Post: mvallevand
  skin question pBS 2 3,336 2016-06-18, 07:03 PM
Last Post: pBS

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode