NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 32 33 34 35 36 … 93 Next »
video inset in plugins

 
  • 0 Vote(s) - 0 Average
video inset in plugins
betlit
Offline

Senior Member

Posts: 449
Threads: 17
Joined: Feb 2005
#1
2007-04-19, 09:25 PM
errm.. is there an code example about how to display the video inset in a plugins 'sub menu'?

thanks

daniel
AMD 1600mHz, 512 M RAM, 20+160 GB drive, Hauppauge PVR-350 + PVR-150 + PVR-150MCE, Win XP Pro SP3, using software decoding.


There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.

There is another theory which states that this has already happened.

(The Restaurant at the End of the Universe)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2007-04-19, 09:39 PM
Sorry, I dont have any code sample for you, but it should just be a matter of calling PluginHelperFactory.getPluginHelper().ShowInsetAtLocation(rect) when activate is called. If nothing is playing, this call will do nothing, otherwise it'll show the visualisation or video rect in that location.

I cant remember, but you may also need to call HideInset() in the deactivate() method.
betlit
Offline

Senior Member

Posts: 449
Threads: 17
Joined: Feb 2005
#3
2007-04-19, 09:41 PM
cool. thanks
AMD 1600mHz, 512 M RAM, 20+160 GB drive, Hauppauge PVR-350 + PVR-150 + PVR-150MCE, Win XP Pro SP3, using software decoding.


There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.

There is another theory which states that this has already happened.

(The Restaurant at the End of the Universe)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#4
2007-04-19, 09:59 PM
If doesnt work for you, let me know and I'll double check.
betlit
Offline

Senior Member

Posts: 449
Threads: 17
Joined: Feb 2005
#5
2007-04-19, 10:03 PM
it does not i'm afraid... still get
VERBOSE [1] videoInsetVisible = false
in the log...
AMD 1600mHz, 512 M RAM, 20+160 GB drive, Hauppauge PVR-350 + PVR-150 + PVR-150MCE, Win XP Pro SP3, using software decoding.


There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.

There is another theory which states that this has already happened.

(The Restaurant at the End of the Universe)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#6
2007-04-19, 11:18 PM
hmm, can you try the following:

Add a member variable:
Code:
private bool forceInsetUpdate = false;

Set to 'true' in activate() function
Code:
forceInsetUpdate = true;

Add this as the very last thing in the render() function:
Code:
if (forceInsetUpdate)
                {
                    forceInsetUpdate = false;
                    PluginHelperFactory.getPluginHelper().ShowInsetAtLocation(insetRect);
                }
betlit
Offline

Senior Member

Posts: 449
Threads: 17
Joined: Feb 2005
#7
2007-04-20, 07:14 AM
that did the trick. thanks a lot Smile
AMD 1600mHz, 512 M RAM, 20+160 GB drive, Hauppauge PVR-350 + PVR-150 + PVR-150MCE, Win XP Pro SP3, using software decoding.


There is a theory which states that if ever anyone discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.

There is another theory which states that this has already happened.

(The Restaurant at the End of the Universe)
FarNorthSAT
Offline

Member

Posts: 51
Threads: 5
Joined: Aug 2007
#8
2008-04-12, 12:55 AM
sub Wrote:hmm, can you try the following:

Add a member variable:
Code:
private bool forceInsetUpdate = false;

Set to 'true' in activate() function
Code:
forceInsetUpdate = true;

Add this as the very last thing in the render() function:
Code:
if (forceInsetUpdate)
                {
                    forceInsetUpdate = false;
                    PluginHelperFactory.getPluginHelper().ShowInsetAtLocation(insetRect);
                }

Hi Sub,

How would I get the size of the screen so as to place the inset at the bottom left hand corner?

obviously everyones screens are different sizes so I was wondering if gbpvr has this as a property?

thanks
GBPVR v1.3.11

Intel Core 2 Quad Q6600
2 GB RAM, 50GB system drive
1 TB recording drive (Raid 0)
2 x Hauppauge NOVA-S plus
Geforce 8800 GT
Windows XP Pro (Home network -Domain)

sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#9
2008-04-12, 01:33 AM
To PVRX2 the screen size is always 0,0 - 100,100. It doesnt really matter what resolution the user is running.

If you look at the exist skin files, you'll see the fixed rectangle PVRX2 always uses for the lower-left inset window:

Quote: <Placement name="InsetRect" loc="3.5,72" size="22,22"/>
FarNorthSAT
Offline

Member

Posts: 51
Threads: 5
Joined: Aug 2007
#10
2008-04-12, 01:59 AM
Thanks Sub,

I have it now but as allways there are follow up questions....when I have a popup box execute with my plugin the inset video starts stuttering or freezes...I see in the recordings I can get up a popup box and the video keeps running without any hitches...do you have anyideas why this is

Thanks again for your help
GBPVR v1.3.11

Intel Core 2 Quad Q6600
2 GB RAM, 50GB system drive
1 TB recording drive (Raid 0)
2 x Hauppauge NOVA-S plus
Geforce 8800 GT
Windows XP Pro (Home network -Domain)

« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Video streaming URL and parameters? cncb 1 1,924 2021-10-22, 06:58 PM
Last Post: sub
  Extras device - using hardware video encoder gdogg371 6 3,375 2021-03-09, 12:18 AM
Last Post: gdogg371
  Loading Local Video Files Syler 25 6,939 2021-03-07, 09:20 PM
Last Post: Syler
  Plugins and NPVR. Where do we start? sub 80 70,088 2020-11-26, 10:02 PM
Last Post: mandai
  Resuming a video imilne 28 15,040 2016-10-30, 09:27 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,380 2015-09-29, 08:07 PM
Last Post: cncb
  VIdeo playback from plugin mvallevand 5 3,613 2015-08-06, 10:43 PM
Last Post: sub
  I want to start developing plugins...but how? OrenShapir 6 4,157 2014-11-18, 10:38 PM
Last Post: mvallevand
  Inset Video - Stop mvallevand 2 2,124 2013-08-07, 09:57 PM
Last Post: mvallevand
  Tuner plugins and client id mvallevand 2 2,114 2013-07-03, 01:39 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode