NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 24 25 26 27 28 … 93 Next »
Video Library clone

 
  • 0 Vote(s) - 0 Average
Video Library clone
jasonbs10
Offline

Member

Posts: 104
Threads: 4
Joined: Mar 2008
#31
2009-02-15, 02:32 AM (This post was last modified: 2009-02-15, 02:36 AM by jasonbs10.)
I did try StoreResumeStartExclusion and StoreResumeEndExclusion but they don't quite do what I want.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#32
2009-02-15, 03:03 AM
jasonbs10 Wrote:Sub, are there any plans to overload IPluginHelper.PlayVideoFile() so it accepts a playback time? I don't strictly need this function, just some way to start playback from the beginning and without a resume prompt if the file is only a few seconds in. I often open files to make sure they're ok and it doesn't make sense to resume on the next playback.
There is already a method on IPluginHelper that lets you specify the playback position.

[SIZE=2]void[/SIZE] PlayVideoFile([SIZE=2]String[/SIZE] title, [SIZE=2]String[/SIZE] description, [SIZE=2]String[/SIZE] filename, [SIZE=2]int[/SIZE] playFromSeconds);

This was added in 1.3.11.
Quote:And should I remind you about my other feature request or do you maintain a todo list of sorts?
You can remind me what your most important request are. There is no gaurantee they'll be implemented though. I have less time available than I need, so some stuff has to be left undone, even when if like to make the change.
jasonbs10
Offline

Member

Posts: 104
Threads: 4
Joined: Mar 2008
#33
2009-02-15, 05:33 PM (This post was last modified: 2009-02-21, 04:09 PM by jasonbs10.)
Quote:Sorry, I was developing against older dll's. How would I call this function while maintaining compatibility with earlier versions of GBPVR?
To answer my own question, you can wrap a new GBPVR function call within another function. WrapperFn() should probably only have the one line that calls NewFn(). When calling WrapperFn(), put it in a try/catch block to handle MissingMethodException. Redirection is required here because any function throwing this exception won't be JIT'ed, so using try/catch with NewFn() directly won't work. If someone has a better way though...

Quote:The most important change would be setting playbackTime=duration when a video finishes.
jasonbs10
Offline

Member

Posts: 104
Threads: 4
Joined: Mar 2008
#34
2009-02-21, 04:06 AM (This post was last modified: 2009-02-21, 04:30 PM by jasonbs10.)
Another question sub. After calling PlayDVDFromDirectory() and subsequently exiting playback, GBPVR returns to the main menu. Can you make pluginHelper return control to the caller?

And going back to the previous post - when specifying a position in PlayVideoFile(), I'm still prompted to resume playback. Shouldn't the video start where indicated regardless of the previous playback position?

Thanks.
jasonbs10
Offline

Member

Posts: 104
Threads: 4
Joined: Mar 2008
#35
2009-03-01, 12:05 AM
I'm trying to implement image caching and am seeing a conflict with GBPVR's caching. My image callback is set up to return null until the requested image has been loaded and cached. This works fine for the larger images but thumbnails appear to cache the null and there are no further callbacks. My first-pass fix is to alter the item properties in uiList but hopefully there's a better solution because that isn't fully fixing things.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#36
2009-03-01, 08:22 PM
The UiList control has some special logic than can be used to rerender items. In my GetImage(Hashtable parameters, ...) callback, I have something like below. The UiList treats this FORCE_RERENDER has a special case.
Code:
if (takenTooLongMorePictures)
            {
                Logger.Verbose("skipping picture...already taken too long");
                parameters["FORCE_RERENDER"] = "true";
                return null;
            }
jasonbs10
Offline

Member

Posts: 104
Threads: 4
Joined: Mar 2008
#37
2009-03-04, 04:54 AM
Sub, that flag appears to work for icon mode but not for filmstrip. One receives the required follow-up GetImage() callbacks while the other does not [for thumbnails]. A forum search reveals that FORCE_RERENDER did not used to have any special meaning, so I'm wondering what all has changed since then.
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#38
2009-03-04, 05:04 AM
Its probably just a bug in the filmstrip mode. Its the UiList view mode I've tested the least.
jasonbs10
Offline

Member

Posts: 104
Threads: 4
Joined: Mar 2008
#39
2009-03-04, 05:13 AM
I don't really use that mode myself... But what's the best way to work around this so my plugin will work for GBPVR releases with or without a bug fix? Everything I try results in almost-correct but still quirky behavior.

Thanks.
jasonbs10
Offline

Member

Posts: 104
Threads: 4
Joined: Mar 2008
#40
2009-03-29, 06:43 PM
Sub, do you have any idea what could be causing the bugs reported by MixMan?

MixMan Wrote:If I rename gbpvr.db3 to tvpvr.db3 and use the video library, the plugin will have problems. Perhaps something in PVRX2 is hardcoded for plugins.

The plugin affect translations for both internal and external plugins....so they start using english instead of translations.

The plugin also affects the web radio plugin so the webradio does not load the XML files. Strange.... but it happens.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (5): « Previous 1 2 3 4 5 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Video streaming URL and parameters? cncb 1 1,956 2021-10-22, 06:58 PM
Last Post: sub
  Extras device - using hardware video encoder gdogg371 6 3,437 2021-03-09, 12:18 AM
Last Post: gdogg371
  Loading Local Video Files Syler 25 7,063 2021-03-07, 09:20 PM
Last Post: Syler
  Resuming a video imilne 28 15,157 2016-10-30, 09:27 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,408 2015-09-29, 08:07 PM
Last Post: cncb
  VIdeo playback from plugin mvallevand 5 3,655 2015-08-06, 10:43 PM
Last Post: sub
  Inset Video - Stop mvallevand 2 2,157 2013-08-07, 09:57 PM
Last Post: mvallevand
  Video Library Fanart Transparency tieke 7 4,075 2013-01-09, 08:23 AM
Last Post: tieke
  NMT Video Playback - does it receive start/stop events psycik 8 3,570 2012-07-15, 10:01 PM
Last Post: mvallevand
  Resume or Restart dialog for video psycik 6 3,170 2011-12-22, 02:52 AM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode