NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 38 39 40 41 42 … 93 Next »
Playback Position Revisited

 
  • 0 Vote(s) - 0 Average
Playback Position Revisited
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#1
2007-09-15, 04:07 AM
First - a thank you to both whurlston and sub on the data store. I'll create my own.

So onwards to today's question!

There are several past messages posted concerning the retrieval of the current playback position via the API. Best I'm able to tell, the reply has been universally "not presently", but they are fairly old as well, so I'll ask again in case things have changed.

Specifically, is there any way to retrieve the playing position of the video when it stopped? Ideally, I would like to determine if a file was 'watched' (as opposed to 'played'). The hope was the compare the last playing position with the file's total length, and, if the former was within n% of the end, call it 'watched'. This is to differentiate it from the user playing a file, and hitting stop ten seconds later - played, yes, but by no means watched.

I can probably use the playback_position position table, but would like to avoid it, since that takes me right back to relying on a data structure that may very well change, instead of a more stable API.

Searching through the public interface in the object browser doesn't show anything that looks promising, but I figured I would throw it out there anyway in case I missed something. Wouldn't be the first time.

Thanks once again!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#2
2007-09-15, 04:27 AM
Sorry, there is no API for you to get this internal information. As you've already noted, the closest you can get is looking in the playback_position table.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#3
2007-11-07, 12:33 AM
Sorry for returning to a six-week-old thread, but it was better than creating a new one saying the same thing.

I'm putting the playback_position table to work now, and I'd like to ensure that I understand its behaviour.

If a file completely playing by reaching the end, no record is created in the table - presumably on the grounds that you're not going to restart playback from the last second. That seems fair, I can work with that.

Is there, though, a minimum time value for inclusion in the table? Or will there always be a record created if a file is played and does not reach the end on its own?

That is, is it safe for me to conclude that, if there is no matching record, the file played to the end?

Thanks!
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,673
Threads: 767
Joined: Nov 2003
#4
2007-11-07, 12:38 AM
It'll create a record in this table if the user starts playback, then stops after <StoreResumeStartExclusion> seconds into the show, unless it is within <StoreResumeEndExclusion> seconds of the end of the show. These values are defaulted to '0' seconds, but are tweakable in config.xml.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#5
2007-11-07, 05:59 AM
Eggsalad! Thank you sub!
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  How to tell when video playback has finished in web client? cncb 6 4,224 2015-09-29, 08:07 PM
Last Post: cncb
  VIdeo playback from plugin mvallevand 5 3,441 2015-08-06, 10:43 PM
Last Post: sub
  NMT Video Playback - does it receive start/stop events psycik 8 3,368 2012-07-15, 10:01 PM
Last Post: mvallevand
  DVD Playback Plugin JBreits 8 3,171 2010-02-08, 04:35 PM
Last Post: sub
  Synchronizing playback between clients Exelion 2 1,508 2009-08-30, 05:54 PM
Last Post: Exelion
  pluginhelper.playvideofile(title,description,filen ame, float position) ?? reven 5 2,375 2009-01-12, 08:52 AM
Last Post: reven
  Resume video playback alibert 4 1,922 2008-08-09, 07:04 PM
Last Post: sub
  current position of playing video? reven 4 2,164 2007-09-15, 04:18 PM
Last Post: sub
  Inset in video playback mode HTPCGB 2 1,698 2007-03-30, 01:37 PM
Last Post: tipstir
  Controlling video playback through a plugin Snarky 2 1,397 2007-03-12, 08:54 PM
Last Post: Snarky

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

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

Linear Mode
Threaded Mode