NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 74 75 76 77 78 … 93 Next »
New version RSSReader plugin

 
  • 0 Vote(s) - 0 Average
New version RSSReader plugin
HenkH
Offline

Member

Posts: 100
Threads: 6
Joined: Mar 2005
#11
2005-03-21, 10:56 PM
The version of the plugin you are using doesn't do a ForceRepaint (the new version does, but will stop requesting if it hasn't been rendered for a second or so).

I noticed however that the panelNeedsRendering() method is called every second or so. This method doesn't do any serious things, it's just checkin the intervalcounter (your version) or the current datetime (to see if a refresh is needed). However the renderPanel() method will only be called when the panel is actually in view (and panelNeedsRendering() has returned 'true'Wink.

On the MediaMVP I'm seeing 'strange' things in the logfile. When the main menu, with the news panel, is in view it shows every second:
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">21-Mar-05 23:26:15.046 VERBOSE [2] Newstask.panelNeedsRendering returns False
21-Mar-05 23:26:16.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:26:16.046 VERBOSE [2] Rendering MenuMenuTask
21-Mar-05 23:26:16.046 VERBOSE [2] Newstask.renderPanel is called
21-Mar-05 23:26:16.186 VERBOSE [2] frame sent
21-Mar-05 23:26:16.436 VERBOSE [71] MVP data read: 1
21-Mar-05 23:26:16.436 VERBOSE [71] MVP request processed[/QUOTE]
When I select a task (e.g. the TV-Guide) it becomes (repeated every second):
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">21-Mar-05 23:26:42.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:26:42.171 VERBOSE [2] frame sent
21-Mar-05 23:26:42.421 VERBOSE [71] MVP data read: 1
21-Mar-05 23:26:42.421 VERBOSE [71] MVP request processed[/QUOTE]
However when I shutdown the MediaMVP it becomes (the last 3 lines are repeated every second and the logfile grows very large):
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">21-Mar-05 23:28:08.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:08.186 VERBOSE [2] frame sent
21-Mar-05 23:28:08.436 VERBOSE [71] MVP data read: 1
21-Mar-05 23:28:08.436 VERBOSE [71] MVP request processed
21-Mar-05 23:28:09.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:09.171 VERBOSE [2] frame sent
21-Mar-05 23:28:10.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:10.171 VERBOSE [2] frame sent
21-Mar-05 23:28:11.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:11.171 ERROR [2] MVP Timer Refresh error: An established connection was aborted by the software in your host machine
21-Mar-05 23:28:11.171 ERROR [2]   at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
  at System.Net.Sockets.Socket.Send(Byte[] buffer)
  at r.a(Boolean A_0)
  at r.c(Object A_0, EventArgs A_1)
21-Mar-05 23:28:12.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
21-Mar-05 23:28:12.171 ERROR [2] MVP Timer Refresh error: An established connection was aborted by the software in your host machine
21-Mar-05 23:28:12.171 ERROR [2]   at System.Net.Sockets.Socket.Send(Byte[] buffer, Int32 offset, Int32 size, SocketFlags socketFlags)
  at System.Net.Sockets.Socket.Send(Byte[] buffer)
  at r.a(Boolean A_0)
  at r.c(Object A_0, EventArgs A_1)
21-Mar-05 23:28:13.046 VERBOSE [2] Newstask.panelNeedsRendering returns True
[/QUOTE]
These error messages do not appear when I disable the panel.

I do find it strange panelNeedsRendering() is called even when the panel is not in view. As I said before I'm doing no fancy things in this method, so I'm finding it hard to believe the panel is to blame for the error messages....

I will post the most recent version of the plugin (including the sources) to the Wiki, so others can try it out.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#12
2005-03-22, 12:26 AM
HenkH i love the version on the wiki, i just downloaded the source and took a look. i have one request (i added it myself, if you want the source). add a &quot;ForegroundImage&quot; which is draw last, so you can draw something over the ticker. i want to give the illusion the ticker is fading in and out at the edges, so im going to create two png files that fade, and draw these on top.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
private Timer panelTimer = null;
private bool ForegroundImageExists = false;[/QUOTE]
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">if ( !PluginHelperFactory.getPluginHelper().GetClientIdentifier().StartsWith("MVP") )
{
panelTimer = new Timer();
panelTimer.Interval = Math.Max(10,intervalValue);
panelTimer.Tick += new EventHandler(this.TimerEventProcessor);
}

XmlNode node = skinHelper.getNode("/settings/CompositeImages/CompositeImage[@name=\"ForegroundImage\"]");
ForegroundImageExists = (node != null);[/QUOTE]

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// Paint our ticker on the background
bg.DrawImage( tickerBitmap, new RectangleF( panelBox.StartX, panelBox.StartY, panelBox.Width, panelBox.Height), new RectangleF(scrollOffset, titlesSize.Height/2, panelBox.Width, panelBox.Height), GraphicsUnit.Pixel );

// Paint the foreground image
if(ForegroundImageExists)
bg.DrawImage(skinHelper.getNamedImage("ForegroundImage"),0,0);[/QUOTE]
nothign major, just a nice added feature. so its only drawn if the image exists in the skin.
reven
Offline

Posting Freak

Posts: 5,782
Threads: 396
Joined: Sep 2004
#13
2005-03-22, 12:40 AM
also the newest version the text is getting cut off half way on the ticker. i had to change this line
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">bg.DrawImage( tickerBitmap, new RectangleF( panelBox.StartX, panelBox.StartY, panelBox.Width, panelBox.Height), new RectangleF(scrollOffset, titlesSize.Height/2, panelBox.Width, panelBox.Height), GraphicsUnit.Pixel );[/QUOTE]

to this line
<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">// Paint our ticker on the background
bg.DrawImage( tickerBitmap, new RectangleF( panelBox.StartX, panelBox.StartY, panelBox.Width, panelBox.Height), new RectangleF(scrollOffset, 0, panelBox.Width, panelBox.Height), GraphicsUnit.Pixel );[/QUOTE]
HenkH
Offline

Member

Posts: 100
Threads: 6
Joined: Mar 2005
#14
2005-03-22, 08:12 AM
Ofcourse you're free to make enhancements to the plugin, I've already spend way too much time on it [Image: tounge.gif] I look forward to seeing your skins.

I would be carefull with the last modification. I had to introduce the titlesSize.Height/2 since otherwise the text would be showed too low (I didn't have this problem in a previous version, it got introduced when I made some optimisations). So please check how it looks in other skins.
stefan
Offline

Posting Freak

Posts: 3,116
Threads: 81
Joined: Oct 2004
#15
2005-03-22, 11:21 AM
[b Wrote:Quote[/b] (reven @ Mar. 21 2005,00:52)]now we just need to setup a gbpvr rss feed with plugin/skin/gbpvr updates, and bug reports etc.

anyone know how to  do this?
What would be cool to add (if yuo have control over that part) is to add something like
&lt;link rel=&quot;alternate&quot; title=&quot;GBPVR Wiki RSS&quot; href=&quot;http://therss/&quot; type=&quot;application/rss+xml&quot;&gt;
in the &lt;head&gt; tag of the html document. Then opera and firefox will autodetect rss and show an rss button.
I'm not always right
GB-PVR 1.2.9
Accent HT-400 Case, AMD Athlon 64 3800+ 1024MB, 1TB+300GB+180GB, WinXP Pro-SP2, NVidia 7600GT
Nova-T USB2, PVR-350 recording from Dilog 355 DVB-T box, USB-UIRT (receiving & transmitting)
Guest

Unregistered
 
#16
2005-03-22, 08:25 PM
HenkH,

Great job on the plugin. My only question is does anyone else have a problem getting from the plugin back to the main menu using the menu button? i can't seem to get out for some reason and I have to restart the MediaMVP service.

Dubya
HenkH
Offline

Member

Posts: 100
Threads: 6
Joined: Mar 2005
#17
2005-03-22, 10:10 PM
The Menu button on the MediaMVP has 'for some reason' the same keymapping as the Home key on the PC keyboard. Since I use the Home key for jumping to the first item it doesn't do its normal trick.

This can easily be solved, but it is even easier to use the Back/Exit key on the MediaMVP remote to return to the main menu (at least that's how it works on my MVP).
Guest

Unregistered
 
#18
2005-03-22, 10:23 PM
Would it be possible to remove this home function?
HenkH
Offline

Member

Posts: 100
Threads: 6
Joined: Mar 2005
#19
2005-03-22, 11:50 PM
I've updated the plugin at the wiki site. I've also incorporated reven's panel foreground image.
« 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
  PIP plugin for Kodi sgilani 2 2,716 2022-10-17, 12:44 AM
Last Post: sgilani
  New Systems Plugin kirschey 10 3,291 2020-11-14, 08:01 PM
Last Post: sub
  VIdeo playback from plugin mvallevand 5 3,420 2015-08-06, 10:43 PM
Last Post: sub
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,856 2014-11-14, 02:05 AM
Last Post: Benoire
  Version control / repository software for VS Express bgowland 2 2,377 2014-05-02, 09:57 PM
Last Post: bgowland
  Discover NEWA version? bgowland 2 1,860 2014-01-06, 04:40 AM
Last Post: bgowland
  API docs to help with plugin development? McBainUK 3 2,731 2013-06-08, 06:14 PM
Last Post: sub
  Refreshing TV Guide Data (after System plugin EPG update) imilne 13 6,027 2013-03-24, 08:03 PM
Last Post: imilne
  sabnzbd plugin to show processed files Wakalaka 1 1,930 2013-03-12, 06:48 AM
Last Post: psycik
  Plugin problems with started from the command line mvallevand 11 4,930 2012-08-12, 07:56 PM
Last Post: sub

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

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

Linear Mode
Threaded Mode