NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 7 8 9 10 11 … 93 Next »
GetPlaybackPosition - getting updates

 
  • 0 Vote(s) - 0 Average
GetPlaybackPosition - getting updates
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#1
2013-08-10, 09:10 AM
I'm using GetPlaybackPostion in my plex plugin, but NextPVR doesn't every seem to post anything other than 0. I think it's because I'm calling it from a timer - which I'm learnt before seems to run in another thread.

What method of timing should I use for a plugin to periodically do things? is needsrendering my only method?
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#2
2013-08-10, 03:04 PM
For MB4 in NeedsRendering I use

PluginHelperFactory.GetPluginHelper().GetPlaybackProxy().GetPosition()

Martin
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#3
2013-08-10, 08:14 PM
And you just keep track of the time (of how often to update something) yourself?

I'm sure now I think about it I remember doing similar in music library
mvallevand
Online

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#4
2013-08-10, 08:28 PM
Yes I just update the bar and the time every second (under Adele). You are right I probably got the NeedsRendering() part from ML2 or 3.

http://www.nextpvr.com/nwiki/pmwiki.php?...aylist.jpg

Martiin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#5
2013-08-11, 02:53 AM
Yep, stick it in NeedsRendering, and keep a timestamp of the last check you did, so that you know when it's time to do it again.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#6
2013-08-11, 07:24 AM
I assume this information isn't available for the popcorn hour? So I'll need to keep up with the timer for PCH based use.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#7
2013-08-11, 04:10 PM
To be honest, I cant remember. It's been a really long time since I used by Popcorn Hour. That said, I thought mvpmcx2 was sending me updates of the playback position, and I was supplying when GetPosition() was called.
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#8
2013-08-11, 06:19 PM
Ok I'll toddle. Curious sub, what clients do you use now? Small computer or something running xbmc?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#9
2013-08-11, 06:28 PM
I'm just using a signal seat setup, with the computer attached to the main TV in the lounge. Over the last couple of years I have at various times hooked up a client for a few weeks, but generally haven't ended up really using it, so I've eventually disconnected it again.

I'm tempted to pickup a chearp Samsung smart bluray so I can try reven's client.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  NextPVR and NRecord, between releases, updates p37307 1 2,528 2016-10-29, 01:08 AM
Last Post: sub
  Checking for updates imilne 13 3,594 2012-01-21, 10:19 PM
Last Post: mvallevand
  EPG Updates imilne 0 1,266 2010-07-19, 08:49 AM
Last Post: imilne
  A question about fast incremental updates ACTCMS 12 4,298 2009-12-07, 03:42 AM
Last Post: sub
  problems with screen updates from ActivateItem InVermont 2 1,694 2009-03-12, 04:45 PM
Last Post: InVermont
  my series skin updates reven 5 2,315 2005-03-20, 05:10 AM
Last Post: darrin75

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

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

Linear Mode
Threaded Mode