NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 4 5 6 7 8 … 93 Next »
VIdeo playback from plugin

 
  • 0 Vote(s) - 0 Average
VIdeo playback from plugin
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#1
2015-08-06, 01:49 AM
In response to a thread I read today I was trying to play a stream from my HDHR using UPnp and it works great until NextPVR wants to display the timeline.

Here is the error on the timeline
Code:
System.NullReferenceException: Object reference not set to an instance of an object.
   at NextPVR.Players.BasePlayer.UpdateTimeline()
   at NextPVR.Players.BasePlayer.RefeshOSD()
   at NextPVR.Players.VideoPlayer.RefeshOSD()
   at NextPVR.ControllerForm.timer1_Tick(Object sender, EventArgs e)
   at System.Windows.Forms.Timer.OnTick(EventArgs e)
   at System.Windows.Forms.Timer.TimerNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

I've narrowed it down to SetPlayerMetaData and args["STREAM_DURATION"] is required. What should that be for a growing file?

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#2
2015-08-06, 01:58 AM
I checked the code, and can't see any requiring args["STREAM_DURATION"].

ie, every occurrence I could find had this logic:
Code:
if (defaultMetadata != null && defaultMetadata.ContainsKey("STREAM_DURATION"))
                    duration = ((double)defaultMetadata["STREAM_DURATION"]);
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#3
2015-08-06, 02:08 AM
Ok what is duration if it isn't passed? If set it to 3660D it won't crash

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#4
2015-08-06, 04:33 AM
You shouldn't have to pass any duration, but if you want to, it's a float and the duration of the video file. It was meant as a mechanism for overriding the real/determined duration of a file. From memory, I think it was something Whurlston wanted.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#5
2015-08-06, 10:35 PM
sub Wrote:You shouldn't have to pass any duration, but if you want to, it's a float and the duration of the video file. It was meant as a mechanism for overriding the real/determined duration of a file. From memory, I think it was something Whurlston wanted.

I figured it out, on these HDTC DLNA streams I was passing null as the metadata.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,626
Threads: 767
Joined: Nov 2003
#6
2015-08-06, 10:43 PM
Ok, great.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



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
  Video streaming URL and parameters? cncb 1 1,756 2021-10-22, 06:58 PM
Last Post: sub
  Extras device - using hardware video encoder gdogg371 6 3,140 2021-03-09, 12:18 AM
Last Post: gdogg371
  Loading Local Video Files Syler 25 6,325 2021-03-07, 09:20 PM
Last Post: Syler
  New Systems Plugin kirschey 10 3,291 2020-11-14, 08:01 PM
Last Post: sub
  Resuming a video imilne 28 14,384 2016-10-30, 09:27 PM
Last Post: mvallevand
  How to tell when video playback has finished in web client? cncb 6 4,200 2015-09-29, 08:07 PM
Last Post: cncb
  Attention Sub: Open TV / Custom Data Grabber plugin Benoire 2 2,856 2014-11-14, 02:05 AM
Last Post: Benoire
  Inset Video - Stop mvallevand 2 2,049 2013-08-07, 09:57 PM
Last Post: mvallevand
  API docs to help with plugin development? McBainUK 3 2,731 2013-06-08, 06:14 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