NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 23 24 25 26 27 … 93 Next »
Responding to keypress events while a video is playing

 
  • 0 Vote(s) - 0 Average
Responding to keypress events while a video is playing
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#1
2009-05-09, 11:00 PM
So! Two questions. First the easy one (I hope).

Is it possible to get key event notifications while a video is playing?

GBPVR.Public.IMenuTask.OnKeyDown does not seem to fire once the video starts. (Maybe because there is no way to differentiate which plugin to send the keypress to?)

I do note, though, that there is an IVideoPlayer that can be retrieved via getActiveVideoPlayer, and it has an onKeyDown. Can I use this to... somehow... respond to keypresses while a video is running?

Or any other hints?

(The other question can wait...)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,785
Threads: 769
Joined: Nov 2003
#2
2009-05-09, 11:08 PM
Ommina Wrote:Is it possible to get key event notifications while a video is playing?
Sorry, no its not. Plugins do not receive notifications of key presses while video is playing.

Quote:GBPVR.Public.IMenuTask.OnKeyDown does not seem to fire once the video starts. (Maybe because there is no way to differentiate which plugin to send the keypress to?)
Key presses are only set to the active plugin. The plugin is not active when video is playing. Instead an internal component is the active player.

Quote:I do note, though, that there is an IVideoPlayer that can be retrieved via getActiveVideoPlayer, and it has an onKeyDown. Can I use this to... somehow... respond to keypresses while a video is running?
That interface is used by the internal player, and the onKeyDown() method is the mechanism the app uses to pass keystrokes to the player.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#3
2009-05-09, 11:28 PM
sub Wrote:Sorry, no its not. Plugins do not receive notifications of key presses while video is playing.

I was worried this might be the case. My dreams of subtitle switching crushed once again!

At any rate, thank you, as always, for the quick reply. I'll stop wasting my time trying to make it go. I can still achieve what I want by indicating which streams to play before starting playback, but switching during playback would have had a nice feel to it.

Thanks again!
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#4
2009-05-13, 02:39 AM
sub are videoplugins available in pvrx2 (plugins that can run when videos are playing back, they were in gbpvr.exe)?

if so ommina you could write one of those, that in the activated method of the plugin automatically switch the subtitle track (this might be tricky but if you could manipulate vobsub or something to switch subtitles, its possible).

i really hope this is possible, because it would be nice to switch audio/subtitles tracks from within gbpvr (i have lots of mkvs with lots of subtitles/audio tracks and no way to change these in gbpvr atm)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,785
Threads: 769
Joined: Nov 2003
#5
2009-05-13, 09:45 AM
reven Wrote:sub are videoplugins available in pvrx2 (plugins that can run when videos are playing back, they were in gbpvr.exe)?
No they're not. Quite a bit of work went into getting them working in gbpvr.exe, and they werent really used, so given all the other stuff there was to do, it was hard to just redoing it with pvrx2.exe.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#6
2009-05-13, 10:11 AM
ok then it comes down to whats easier, adding video overlay plugins, or making the ability to switch audio/subtitle/video streams available natively from within gbpvr?

of course its entirely up to you, and you probably have to much on your plate as is to do either Smile (but would be nice to see the switching of streams in gbpvr)
Snarky
Offline

Junior Member

Posts: 43
Threads: 7
Joined: Oct 2005
#7
2009-06-26, 10:27 PM
I and others built a pretty elaborate "social television" system using the video plugin feature of GBPVR. It eventually allowed people to see their buddy list and what each buddy was watching, to text chat, use smileys, send each other recommendations, and even have VOIP conference calls through the TV. The work got published at several conferences, and most recently in a book. (You can see slides from one presentation at Slideshare.net, though that version of the system didn't have the complete set of features.)

We decided to develop this research prototype in GBPVR because it was the only media center software with powerful enough video plugin functionality. It'd be a real shame if this unique advantage wasn't carried forward.

(With video plugin support restored, it wouldn't be particularly difficult for anyone to build an integrated IM client that shared what you were viewing as part of your presence.)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,785
Threads: 769
Joined: Nov 2003
#8
2009-06-27, 12:48 AM
Sorry, but as I said above, a lot of effort went in to developing this the first time around in GBPVR.exe, and it was never a popular, and very few people ever used it. With so many other things to do, there is just no way I can justify the time to redo that effort in PVRX2.exe with the expectation that is probably not going to be used.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Video streaming URL and parameters? cncb 1 1,910 2021-10-22, 06:58 PM
Last Post: sub
  Extras device - using hardware video encoder gdogg371 6 3,345 2021-03-09, 12:18 AM
Last Post: gdogg371
  Extra Events jcole998 1 1,515 2021-03-08, 02:48 PM
Last Post: mvallevand
  Loading Local Video Files Syler 25 6,864 2021-03-07, 09:20 PM
Last Post: Syler
  Resuming a video imilne 28 14,972 2016-10-30, 09:27 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,352 2015-09-29, 08:07 PM
Last Post: cncb
  VIdeo playback from plugin mvallevand 5 3,582 2015-08-06, 10:43 PM
Last Post: sub
  Inset Video - Stop mvallevand 2 2,115 2013-08-07, 09:57 PM
Last Post: mvallevand
  Video Library Fanart Transparency tieke 7 4,009 2013-01-09, 08:23 AM
Last Post: tieke
  List of "IEventNotification" events? reven 8 3,500 2012-11-01, 10:56 PM
Last Post: reven

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

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

Linear Mode
Threaded Mode