NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 15 16 17 18 19 … 93 Next »
NPVR IVideoPlugin

 
  • 0 Vote(s) - 0 Average
NPVR IVideoPlugin
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2010-08-29, 10:46 PM
Is IVideoPlugin ready for use? How does a plugin inform NPVR that it wants to be shown? Is there any user config required to enable an IVideoPlugin?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2010-08-29, 10:53 PM
You dont need to use IVideoPlugin, just implement your video plugin using IScreenPlugin like all other plugins.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2010-08-30, 07:05 AM
What is IScreenPlugin:SetPluginCallback(IPluginCallback callback) for?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#4
2010-08-30, 10:43 AM
sub Wrote:You dont need to use IVideoPlugin, just implement your video plugin using IScreenPlugin like all other plugins.
I'd like my plugin UI to appear like an OSD on top of the TV show. Is this possible? At the moment, implementing IScreenPlugin, it just appears in the Main Menu like a regular plugin.
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#5
2010-08-30, 05:22 PM
By default all IScreenPlugins are listed in the main menu, but you can untick it in the Plugins screen to have it not appear in the main menu. I'll see if I can add some mechanism for plugins to say that dont want a specific IScreenPlugin to be listed on the main menu.

You can activate your screen over video by calling PluginHelperFactory.GetPluginHelper().ActivatePlugin(myIScreenPlugin); when video playback is active. I guess the trick is determining when its appropriate to call that. I'm not sure I have a good answer for that right now.
whurlston
Offline

Posting Freak

Posts: 7,885
Threads: 102
Joined: Nov 2006
#6
2010-08-31, 04:36 AM
If you don't need all the functions of the IScreenPlugin, you can create a class derived from IEventNotification and it will not show up in the menu. You can then create a class derived from SimplePopup and UiButtonList.IUiButtonListCallback to display the overlay. Here's a simplified version of what I did:

Code:
public class DiscInsertNotification : NUtility.IEventNotification
{
         #region IEventNotification Members

        public void Notify(string eventName, object eventArg)
        {
            // this is empty because I'm watching for disc insert notifications and don't need NPVR's notifications.
        }

        #endregion

        // This is the function that I call to show the popup overlay.
        void ActivateOverlay()
        {
            MetadataPopup popup = new MetadataPopup(new NUtility.SkinHelper("Popups\\DVDInfo.xml"), "PopupBackground", args, null);
            NUtility.PluginHelperFactory.GetPluginHelper().ActivatePopup(popup);
        }
}

public class MetadataPopup : SimplePopup, UiButtonList.IUiButtonListCallback
{
   ...
}
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#7
2010-11-03, 01:39 PM
sub Wrote:You can activate your screen over video by calling PluginHelperFactory.GetPluginHelper().ActivatePlugin(myIScreenPlugin); when video playback is active
I've tried this but it doesn't show the screen over the video. What happens is that once the video has stopped the plugin screen is then visible. Any thoughts?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#8
2010-11-03, 03:41 PM
hmm, it should. Thats what I do for the TV Guide. I'll check.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#9
2010-11-06, 09:07 AM
Did you find anything useful?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#10
2010-11-06, 05:00 PM
Can you see if this fixes it?
« 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
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,476 2021-03-11, 03:59 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 70,207 2020-11-26, 10:02 PM
Last Post: mandai
  Test/Development environment for npvr.db3 scJohn 10 4,583 2020-09-04, 09:14 PM
Last Post: scJohn
  How to extract M3U8 and get matching XMLTV guide data from NPVR almightyj 0 3,552 2018-10-23, 07:24 AM
Last Post: almightyj
  ios app to control npvr ui idea jnbooker15 4 3,721 2015-09-21, 10:19 PM
Last Post: sub
  ios app to control npvr ui idea jnbooker15 0 2,533 2015-09-21, 06:39 PM
Last Post: jnbooker15
  Couple of questions about hacking npvr.db3 drmargarit 6 4,359 2014-09-08, 02:22 AM
Last Post: sub
  high res (256x256+) npvr icon? reven 15 6,055 2013-09-01, 05:13 AM
Last Post: psycik
  trying to fake npvr database for unit tests reven 3 2,313 2013-05-20, 08:53 AM
Last Post: reven
  Multiple genres in npvr.db3 bgowland 5 2,899 2013-04-16, 09:53 PM
Last Post: ACTCMS

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

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

Linear Mode
Threaded Mode