NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 50 51 52 53 54 … 93 Next »
API Documentation?

 
  • 0 Vote(s) - 0 Average
API Documentation?
23skidoo
Offline

Member

Posts: 120
Threads: 9
Joined: Sep 2006
#1
2006-09-16, 03:17 PM
Cool system, this GB-PVR. This app works. If you want a basic PVR/TV viewer with an integrated program guide, GB-PVR nails it. Very stable. Very responsive. Simple UI. I'm also having fun delving into its guts; fun slap-dash architecture.

Some of the classes and static functions are (sort of) documented in a couple of Winders help files. And there are plenty of examples out there; I was able to throw together a brand new Sleep Timer plugin in just a few hours.

But what about the interfaces? I haven't found any real documentation on the different interfaces plugins and dependencies can implement. Sure, there's that one PDF tutorial, and it does have helpful info about IMenuTask. But that's the only one it mentions.

Am I missing some treasure trove of info somewhere on these forums or on the wiki?

PS: Incidentally, I get way better search results when I use Google to search gbpvr.com (e.g. [site:gbpvr.com keyword]). A lot of stuff I'd never have figured out if it weren't for Google's index of gbpvr.com. Just an FYI.
WinTV PVR-150 / ATI X1600 512 / 3GHz P4 / 2GB RAM
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2006-09-16, 04:13 PM
No there isnt really. If anyone wants to take it on as a project, I'll help provide some info to fill in any remaining blanks.
23skidoo
Offline

Member

Posts: 120
Threads: 9
Joined: Sep 2006
#3
2006-09-21, 05:16 AM
Are the wiki pages going to be back up soon? And what do you call that inset window on the main menu screen? And how do you force it to repaint, so pieces of your plugin's screen don't hang around?

To reproduce:
  1. Play some Live TV.
  2. Hit the menu button (not the back button). The Live TV is now in the window.
  3. Select a plugin that displays some static info.
  4. Hit back/esc.
  5. Notice the fugliness in the inset window.
If I could just invalidate (and cause a repaint on) that window/rectangle....
WinTV PVR-150 / ATI X1600 512 / 3GHz P4 / 2GB RAM
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2006-09-21, 05:28 AM
Quote:Are the wiki pages going to be back up soon?
Its running currently.

Quote:And what do you call that inset window on the main menu screen?
I call it 'the inset window'

Quote:And how do you force it to repaint, so pieces of your plugin's screen don't hang around?

To reproduce:
Play some Live TV.
Hit the menu button (not the back button). The Live TV is now in the window.
Select a plugin that displays some static info.
Hit back/esc.
Notice the fugliness in the inset window.
If I could just invalidate (and cause a repaint on) that window/rectangle....
What do you mean? It all looks normal for me when I do the steps you've listed. I tried using the TV Guide and Recordings for your step #3. I dont get any ugly stuff happening in the inset window.
23skidoo
Offline

Member

Posts: 120
Threads: 9
Joined: Sep 2006
#5
2006-09-22, 03:24 AM
I figured out that there is a slight bug, but it's not likely anyone else would have spotted it. I found it coding that Random TV thing.

You see, when you launch the plugin (task?), it turns off the video. So if a TV show was playing in the inset window when you selected Random TV, now there's nothing playing in the inset window. Well really, the plugin is being rendered and taking over the screen. But then if you escape out of the plugin (without selecting a random show), there's nothing displayed in the inset window. Except a residual clipped image of the Random TV plugin screen. Now if you launch another (non-video) plugin, then back/esc to the main menu, you'll see a leftover portion of that plugin's screen in the window.

For some reason that's still not entirely clear to me, if I send an [escape] key in my implementation of IMenuTask.Deactivate(), that invalidates the inset window and it gets redrawn correctly (just black/blank). And it continues to get redrawn correctly thereafter (like, even if you click another plugin).

Now, if I knew how to re-start the video, in the inset window, once the plugin returned...now that'd be cool....
WinTV PVR-150 / ATI X1600 512 / 3GHz P4 / 2GB RAM
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#6
2006-09-22, 12:04 PM
sub Wrote:No there isnt really. If anyone wants to take it on as a project, I'll help provide some info to fill in any remaining blanks.
http://gbpvr.com/pmwiki/pmwiki.php/Devel...umentation
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
23skidoo
Offline

Member

Posts: 120
Threads: 9
Joined: Sep 2006
#7
2006-09-22, 12:23 PM
McBainUK Wrote:http://gbpvr.com/pmwiki/pmwiki.php/Devel...umentation
Nice start. Any info is good info. :-)

What I'd like to see is a nice layout of the object model. But since this obviously wasn't built from the ground up with any design patterns in mind, that might be a little tough.

Which may be what makes it fun? :-)
WinTV PVR-150 / ATI X1600 512 / 3GHz P4 / 2GB RAM
kaffeen
Offline

Member

Posts: 53
Threads: 4
Joined: Aug 2006
#8
2006-09-22, 02:38 PM
I must say that the lack of true API documentation is the reason I have not attempted to code for GBPVR. I really like the idea to make this documentation more robust and will be checking this thread for updates.
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#9
2006-09-22, 02:45 PM
Feel free to contribute to the docs kaffeen. PM bladder_se if you don't already have a wiki account.
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,626
Threads: 767
Joined: Nov 2003
#10
2006-09-22, 04:34 PM
23skidoo Wrote:But since this obviously wasn't built from the ground up with any design patterns in mind, that might be a little tough.
Shows what little you know then....

Remember, you only get to see a couple of tiny little tips of the ice berg. There is alot more of GB-PVR that is not publically exposed to plugin developers, but even those bits that are should be enough to tell you that your comments are wrong - just have a wee think for a minute about how the plugins mechanism works, how event/listener notification works, the heavy use of interfaces, about how the dynamic behind-the-scenes loading of various data items like Genre etc work. ...yeah, no design patterns there Big Grin
« 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
  Updated plugin development documentation bstegman 7 3,545 2008-04-01, 03:30 PM
Last Post: sub
  Appearance Manager Documentation Thread. Fatman_do 14 6,020 2006-05-12, 05:18 PM
Last Post: Fatman_do

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

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

Linear Mode
Threaded Mode