NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 85 86 87 88 89 … 93 Next »
JukeBox Plugin

 
  • 0 Vote(s) - 0 Average
JukeBox Plugin
joecru
Offline

Member

Posts: 135
Threads: 26
Joined: Aug 2004
#1
2004-09-13, 07:35 PM
Hi Guys,

Can anyone give me help ,on adding a pgn up/down function to the Jukebox Plugin.So that selecting music files is quicker.
I downloaded Sharp Devel tool and had a look at the Jukebox Plugin.Under the JukeboxTasks.cs file part of the code had pgn functions. Is this where I can add the above functions
and then re compile the jukeboxtask.cs file. I've only started reading C Programming stuff. See below for the section of the code.


case Keys.PageDown:
userTopIdx += MAX_ITEMS;
if (userTopIdx >= userTracks.Count - MAX_ITEMS)
{
userTopIdx = userTracks.Count - MAX_ITEMS;
userSelIdx = userTracks.Count - 1;
}
else
{
userSelIdx = userTopIdx;
}
break;
*/
/*
case Keys.PageUp:
userTopIdx -= MAX_ITEMS;
if (userTopIdx < 0)
{
userTopIdx = 0;
}
userSelIdx = userTopIdx;
break;

Is this the right section, (if you can make it out), or am I barking up the wrong tree?

Regards
Joe
Regards

[COLOR="black"][COLOR="Blue"]4 X MVPs
Win Vista
Hauppauge PVR 350
Dell Inspirion - 531[/COLOR][/COLOR]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#2
2004-09-13, 08:51 PM
Yes, this is the page up/down code.

It looks to be generally correct, but he's currently got it commented out, so I suspect there may be a lurking bug. Remove the comment delimiters (/* and */) and give it a go.
joecru
Offline

Member

Posts: 135
Threads: 26
Joined: Aug 2004
#3
2004-09-13, 10:58 PM
Hi Sub,

Thanks for the reply.
When it is compiled what will the file extension .cs have changed too? Will I need to do anything else to the file?

Regards
Joe
Regards

[COLOR="black"][COLOR="Blue"]4 X MVPs
Win Vista
Hauppauge PVR 350
Dell Inspirion - 531[/COLOR][/COLOR]
colin
Offline

Senior Member

Posts: 683
Threads: 39
Joined: Nov 2003
#4
2004-09-13, 11:04 PM
Hey joecru,

did you import the Jukebox plugin? In the projects window you'll need to add to the references the GBPVRPublic.dll.

Then you may want to adjust the project options and tell it where you want to place the .dll. And finally double check it will create a .dll for you.

Sharpdevelop is very good,

Cheers,
Colin.
joecru
Offline

Member

Posts: 135
Threads: 26
Joined: Aug 2004
#5
2004-09-13, 11:14 PM
Hi Colin,

I am new to this, so keep me right. I made the changes within  notepad, as Sub mentioned above.I started Sharp Dev picked File option ,then open new file which was jukeboxtask.cs,then picked the run option.I am not sure where the compiled file is . Have I done it right?

Regards
Joe
Regards

[COLOR="black"][COLOR="Blue"]4 X MVPs
Win Vista
Hauppauge PVR 350
Dell Inspirion - 531[/COLOR][/COLOR]
colin
Offline

Senior Member

Posts: 683
Threads: 39
Joined: Nov 2003
#6
2004-09-14, 12:54 AM
Hey joecru,

to be honest, the simplest way to work on the jukebox plugin is extract its contents to a folder.

Then start up sharpdevelop. From the File menu choose to import a project and navigate to the jukebox plugin you just extracted. It should list a .sln (VSN project).

Import this and it will setup everything for you. Once you get this far you will see all the files associated with the project on the left in a projects window.

This is where you need to add in the references to the GBPVR*.dll libraries, then look through the project options and make sure it is outputing your new jukebox .dll into the right place.

then you can doubleclick on the jukeboxtask.cs file from the project file listings and edit this. Provided you have done the above then you can build it and use it in GBPVRSmile

Your can use notepad, but you will need to know how to use the c# compiler and the associated flags. I would start with sharpdevelop then learn the manual while for compilation,

cheers,
Colin.
joecru
Offline

Member

Posts: 135
Threads: 26
Joined: Aug 2004
#7
2004-09-14, 08:15 AM
Hi Colin,

What do you mean by the following,

This is where you need to add in the references to the GBPVR*.dll libraries, then look through the project options and make sure it is outputing your new jukebox .dll into the right place.

What are the References, and what should the Output dir be?

Regards
Joe
Regards

[COLOR="black"][COLOR="Blue"]4 X MVPs
Win Vista
Hauppauge PVR 350
Dell Inspirion - 531[/COLOR][/COLOR]
colin
Offline

Senior Member

Posts: 683
Threads: 39
Joined: Nov 2003
#8
2004-09-14, 10:40 AM
You need to make reference to the GBPVRPublic.dl library as this is how you tie you project into GBPVR.

I'm not sure of your programming background but basically this is linking to another library which contains classes which you need.

If you have imported the jukebox plugin, on the left there should be a projects window. If not got to View|Projects menu and display it.

You should now have a tree menu in this window with something like

- Combine 'Jukebox Plugin'
+ Jukebox Plugin

Expand the Jukebox plugin branch and this will list all the files/references/resources associated with the project.

Right mouse click over References, then go to the .Net Assembly Browser. Here there is a Browse button. Click on this and naviage to GBPVRPublic.dll.

This should now be listed as a reference in your project. Sharpdevelop now nows to "reference" or "link" to this library during compilation.

Now go to Project|Project Options on the menubar. Click on Configuration and you will see Output for debug builds and Output for Release builds. This determines where the "to be created JukeboxPlugin.dll" will be placed. If it is empty it will be created with your project. You can put in the location of GBPVR plugins and automaticlly place it in the plugins directory.

Hopefully this is clearerSmile

Cheers,
Colin.
tkgafs
Offline

Senior Member

Posts: 594
Threads: 61
Joined: Jun 2004
#9
2004-09-14, 06:45 PM
thanks to colin and sub for the explanations.

page up and down seem to work fine on the jukebox plugin now

but what button would they be on the mvp remote ?

tkgafs
colin
Offline

Senior Member

Posts: 683
Threads: 39
Joined: Nov 2003
#10
2004-09-14, 06:56 PM
I wonder if the code was commented out for this reason and not because the code was not working?

Are the skip forward/skip backwards buttons enabled for anything here?

Colin.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  PIP plugin for Kodi sgilani 2 3,022 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,508 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,602 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,982 2014-11-14, 02:05 AM
Last Post: Benoire
  API docs to help with plugin development? McBainUK 3 2,845 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,291 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 2,007 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 5,168 2012-08-12, 07:56 PM
Last Post: sub
  Get NextPVR data directory from outside a plugin McBainUK 3 2,316 2012-02-11, 05:42 PM
Last Post: mvallevand
  Weather Plugin imilne 0 1,489 2012-01-15, 08:33 PM
Last Post: imilne

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

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

Linear Mode
Threaded Mode