NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 14 15 16 17 18 … 93 Next »
Channel Logo Tool

 
  • 0 Vote(s) - 0 Average
Channel Logo Tool
systemshark
Offline

Senior Member

Posts: 566
Threads: 56
Joined: Oct 2005
#11
2011-07-18, 09:08 PM
steeb Wrote:Sorry systemshark, didn't mean to hijack your thread Wink Actually just wanted to know how you were? (hadn't seen you around for a while)

the other bit was just 'top of head' thinking Big Grin

I am a novice when it comes to this coding stuff :o But it is great fun, though sometimes lonely Sad

steeb

Got a new job.... Chief Architect for a Tier 1 Retailer..... so I've been very very busy causing loads and loads of trouble....

Meanwhile, Yes I share some code, I'll email some over..

With regards to a code library, I think the key item should a to document the API. In GBPVR days, i think Sub released a set of documents for using the library, the main reason for my question was I was looking through the api's and just could not see the wood for the trees.
Regards Systemshark
[COLOR="Silver"]
Lounge: HDPC Intel i5, Asus Motherboard with Intel HDMI, 4Gb of Ram, 1Tb Disk, 60Gb SSD, Blackgold BT3595 Tuner, Hauppauge Nova T500 and HVR1700 in a LianLi C39 B Case.

Other Room : Liteon Wireless Media Centre/DVD Player

Software : Windows7 32 Bit, RedRat, XMLTV GUI and NPVR
[/COLOR]
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#12
2011-07-18, 09:48 PM
systemshark Wrote:the main reason for my question was I was looking through the api's and just could not see the wood for the trees.

You'll probably find my animal-gnawed bones buried under several of those trees Smile

I'm happy to share what code I have if it helps. So far I've not used a great deal of the API, but I have had access to examples from others, and it's been really handy to *see* how to use the API, even if documentation doesn't exist (yet).

And besides, sub is online so often it's almost like having on-demand help anyway Big Grin

Iain
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,909
Threads: 956
Joined: May 2006
#13
2011-07-19, 02:10 AM
I didn't even know .NET or C# when I wrote my first plugin and I've had no problem the lack of documentation for the API, my lack of C# knowledge is what kills me. It took me until this week to find out how easy it is to write simple XML with XMLWriter().

That being said I still struggle with skins because I just can't visualize them when I write. I also wouldn't mind some minimum explanation of things like the @ variables. Sub has the luxury of inventing them when he needs them, for me it takes prompting of Jaggy and Northpole to find out about them, and even then, when they ask "Why don't you use @controlSelected" I am referred to other skins and I have to guess what they do.

Martin
systemshark
Offline

Senior Member

Posts: 566
Threads: 56
Joined: Oct 2005
#14
2011-07-19, 06:50 AM
The problem where is there are several ways to skin this cat, what I'm attempting to do is remain within the NPVR Eco System, CLT is an external uitility which means I can address NPVR via a number of backdoors. This is a bad approach because NPVR has no direct way of ensureing the changes I looking at a correct. Hence my question about getting to a channel list via official methods....
Regards Systemshark
[COLOR="Silver"]
Lounge: HDPC Intel i5, Asus Motherboard with Intel HDMI, 4Gb of Ram, 1Tb Disk, 60Gb SSD, Blackgold BT3595 Tuner, Hauppauge Nova T500 and HVR1700 in a LianLi C39 B Case.

Other Room : Liteon Wireless Media Centre/DVD Player

Software : Windows7 32 Bit, RedRat, XMLTV GUI and NPVR
[/COLOR]
systemshark
Offline

Senior Member

Posts: 566
Threads: 56
Joined: Oct 2005
#15
2011-07-19, 06:56 AM
Hi Iain,

imilne Wrote:You'll probably find my animal-gnawed bones buried under several of those trees Smile


Haha.... yes I've seen the teethmarks.....

Quote:I'm happy to share what code I have if it helps. So far I've not used a great deal of the API, but I have had access to examples from others, and it's been really handy to *see* how to use the API, even if documentation doesn't exist (yet).

And besides, sub is online so often it's almost like having on-demand help anyway Big Grin

Iain

As I'm off line (from the internet) a lot at the moment (interent access of trains and planes is a still just too hard) I was attempting to do this the off line, What I was looking for was something that was a starter for ten..... whats the key ten-twenty api calls I need to know....

Please to the Examples..... It would be really useful.....

Thought Here.... Could we Create a New Sticky Submenu inside of development thread where we post a number of examples.... for reference.

Eg Form -> Public -> Devlopers -> Examples
Regards Systemshark
[COLOR="Silver"]
Lounge: HDPC Intel i5, Asus Motherboard with Intel HDMI, 4Gb of Ram, 1Tb Disk, 60Gb SSD, Blackgold BT3595 Tuner, Hauppauge Nova T500 and HVR1700 in a LianLi C39 B Case.

Other Room : Liteon Wireless Media Centre/DVD Player

Software : Windows7 32 Bit, RedRat, XMLTV GUI and NPVR
[/COLOR]
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#16
2011-07-19, 07:49 AM
systemshark Wrote:I was attempting to do this the off line, What I was looking for was something that was a starter for ten..... whats the key ten-twenty api calls I need to know....

Hmm, if CLT does what I think it does (I admit I've never used it, being sad enough to go hunting for all my logos by hand), then you might not need anything more than:

Code:
for (Channel channel in Channel.LoadAll())
{
  string name = channel.Name;
}

Not sure what else to mention... sub likes to use lots of static stuff, so it's easy to get a hold of instances of helper objects, eg:

Code:
PluginHelperFactory.GetPluginHelper();
DatabaseHelper.GetInstance();
SettingsHelper.GetInstance();

If you were writing a genuine plugin, then knowing what is going on with the rest of the NPVR is often important:
Code:
// Register to listen for events
EventBus.GetInstance().AddListener(this);
// Then implement IEventNotification.Notify()
public void Notify(string eventName, object eventArg)
{}

Iain
« 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
  API channel.stream.start mvallevand 2 1,320 2023-05-07, 09:40 PM
Last Post: mvallevand
  Way to tell programmatically if channel load in from NPVR has finished... gdogg371 3 2,370 2021-03-11, 03:59 PM
Last Post: mvallevand
  What is being sent when using /live?channel=3.1 scJohn 2 1,906 2020-01-30, 04:51 PM
Last Post: sub
  Web command to create recurring any channel mvallevand 2 2,585 2019-02-04, 03:09 PM
Last Post: mvallevand
  XMLTV Channel Number Option gdogg371 12 6,731 2018-07-18, 04:32 PM
Last Post: sub
  Channels List by Channel Group Name scJohn 1 2,768 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,066 2017-06-19, 09:14 AM
Last Post: psycik
  Getting all channel listings - decimal channel numbers psycik 11 8,230 2015-12-13, 02:17 AM
Last Post: seejaydee
  Channel/ChannelMapping whurlston 4 2,857 2014-04-14, 06:26 PM
Last Post: whurlston
  What causes a new tuner to be used services/live?channel= psycik 2 2,273 2014-02-04, 05:32 PM
Last Post: psycik

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

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

Linear Mode
Threaded Mode