2011-12-21, 04:58 PM
mvallevand Wrote:Update fixes the error on exit, but there is an error exiting Video Playback if Plex isn't started
Code:System.NullReferenceException: Object reference not set to an instance of an object.
at dcSoftware.NPVR.Plugins.PlexPlugin.PlexPlugin.Notify(String eventName, Object eventArg)
at NUtility.EventBus.Notify(String eventName, Object eventArg)
at NUtility.EventBus.Notify(String eventName)
at NextPVR.Players.VideoPlayer.Stop(Boolean informController)
at NextPVR.Players.VideoPlayer.Stop()
at NextPVR.Players.BasePlayer.HandleCommonCommands(String command)
at NextPVR.Players.VideoPlayer.HandleCommand(String command)
at NextPVR.Players.VideoPlayer.OnKeyDown(KeyEventArgs e)
at NextPVR.ControllerForm.OnKeyDown(Object sender, KeyEventArgs e)
at System.Windows.Forms.Control.OnKeyDown(KeyEventArgs e)
at System.Windows.Forms.Control.ProcessKeyEventArgs(Message& m)
at System.Windows.Forms.Control.ProcessKeyMessage(Message& m)
at System.Windows.Forms.Control.WmKeyChar(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at NextPVR.ControllerForm.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Martin
Ok think I've caught that now.
So I've tried:
Start npvr, no plex, exit = fine
Start npvr, no plex,play video, stop video, exi t= fine
Start npvr, start plex, play video, exit = fine
Start npvr, start plex, play video, exit plex, play video, exit = fine
That notify class is a PITA.
I've also been adding a delete command, and it shows watched/unwatched in the title and description. Also the percentage through in the description.
Might need to work on the top buttons though, seems to be a limit of about 4. May have to go contextual, or implement a menu screen. Thoughts?
And I want to add that resume/restart screen as well.