NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 2 3 4 5 6 … 56 Next »
Plex Plugin - first release

 
  • 0 Vote(s) - 0 Average
Plex Plugin - first release
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#61
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.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#62
2011-12-21, 10:39 PM
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
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#63
2011-12-21, 11:26 PM
psycik Wrote:That notify class is a PITA.

I've had no problem in any of my plugins, you must be making a bad assumption.

Quote: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.

My personal preference is a cleaner UI without overloading the description using the meta area for data,

Quote:Might need to work on the top buttons though, seems to be a limit of about 4.

The skinners choose that, just create you own override to global.xml in your skin.

Martin
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#64
2011-12-21, 11:28 PM
mvallevand Wrote:I've had no problem in any of my plugins, you must be making a bad assumption.

Possibly. How did you handle the dispose stuff, did that happen for you? Having to dispose of the plugin or npvr wont exit?
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#65
2011-12-22, 06:55 AM
Added a 0.5 version. In the top post.
JonnyCam
Offline

Posting Freak

Posts: 1,153
Threads: 87
Joined: Feb 2006
#66
2012-01-23, 03:29 AM
I wonder if anyone is able to help me here.

I have plex installed on my unRaid linux server. Ir runs fine & I can view my media from my itouch & android phone. (as well as clients)

I originally had it installed on my PVR machine, but all of my media except recordsings ar on the linux server, so I decided to put it on there.
I moved the library from the windows version to Linux, and that still worked.
I found I couldnt play media any more as I had my media linked as UNC paths (\\dump\SHOWS) (it was playable from the windows plex client)

I had to change that in Linux to /mnt/users/SHOWS, which allows them to be transcoded for the mobile devices.

Now I want to use this pugin. I can view all of the media, but cannot play it. In the logs

Code:
Adding directories: 0 to add
23/01/2012 4:24:06 p.m.    PlexPlugin.PopulateList: Adding Videos, 8 to add
23/01/2012 4:24:06 p.m.    PlexPlugin.PopulateList: Setting list objects and ending populate list
23/01/2012 4:24:09 p.m.    PlexPlugin.ActivateItem: Found a file "/mnt/user/SHOWS/The Borgias/The Borgias_S01E05.mkv"
23/01/2012 4:24:09 p.m.    PlexPlugin.ActivateItem: File exists
23/01/2012 4:24:09 p.m.    PlexPlugin.ActivateItem: Starting playback of "/mnt/user/SHOWS/The Borgias/The Borgias_S01E05.mkv"
23/01/2012 4:24:09 p.m.    PlexPlugin.ActivateItem: Error in ActivateItem: Length cannot be less than zero.
Parameter name: length
23/01/2012 4:24:09 p.m.    PlexPlugin.ActivateItem: Stack trace:    at System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   at NextPVR.Players.VideoPlayer.GetMetaData()
   at NextPVR.Players.VideoPlayer.PlayFiles(List`1 playQueue, Int32 playQueueIndex, String& reason)
   at NextPVR.Players.VideoPlayer.PlayFile(String filename, String& reason)
   at NextPVR.ControllerForm.PlayVideoFile(String filename, Hashtable metadata)
   at dcSoftware.NPVR.Plugins.PlexPlugin.PlexPlugin.ActivateItem(ListObject selectedObject)

I assume that is because it can't locate the folder.

I understand this is because of the way I have things set up, but I was wondering if anyone knows enough about linux for me to be able to refer the the SMB shares instead of using the local location?

(so the same \\dump\shows\ can be used in Windows & linux allowing the plex plugin to play, and my mobile devices to still get transcoded to.)
"Shut up brain, or I'll stab you with a Q-Tip!"

--= Win7, C2D 2.93 GHz, ASUS 9400GT Silent, 2GB Ram, Few HDD's, 3TB unRAID server, Samsung 50" 1080p Plasma via HDMI, 40" 1080i LCD via VGA =-- * PVR2000 Analog PCI / Avermedia DVB-S PCI / Hauppauge 2200 DVB/Analog * PCH GBPVR Client * *BD-E6500 w/ NPVR client*
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 52,766
Threads: 954
Joined: May 2006
#67
2012-01-23, 04:36 AM
For the PlexPlugin you'd have to have to play them with your "\\dump\SHOWS" notation. /mnt/user/SHOWS is the mount point which would be equivalent to a drive letter in the Windows world. Psycik needs to do some kind of global search and replace from /mnt/user/SHOWS to \\dump\SHOWS before telling NextPVR to play it.

Martin
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#68
2012-01-23, 06:43 AM
Yeah martin is right.

It is avtually something I started with as that is the error you're getting, it's already figured out it can't find the file natively from the client and it's trying to replace a F:\serverfolders path with the name of my server.

I'll see if I can finish it this week, it'll be something line look for /mnt/user and replace with \\dump I'll add a find xyz setting and replace with abc.
JonnyCam
Offline

Posting Freak

Posts: 1,153
Threads: 87
Joined: Feb 2006
#69
2012-01-25, 05:33 AM
Thanks. No need to hurry :-)
"Shut up brain, or I'll stab you with a Q-Tip!"

--= Win7, C2D 2.93 GHz, ASUS 9400GT Silent, 2GB Ram, Few HDD's, 3TB unRAID server, Samsung 50" 1080p Plasma via HDMI, 40" 1080i LCD via VGA =-- * PVR2000 Analog PCI / Avermedia DVB-S PCI / Hauppauge 2200 DVB/Analog * PCH GBPVR Client * *BD-E6500 w/ NPVR client*
psycik
Offline

Posting Freak

Posts: 5,210
Threads: 424
Joined: Sep 2005
#70
2012-02-10, 01:23 AM
Added 0.6 Version to top post.

@JonnyCam - it's got a basic path replacement option now. In the config screen. See if that does what you want.
« Next Oldest | Next Newest »

Users browsing this thread: 2 Guest(s)

Pages (15): « Previous 1 … 5 6 7 8 9 … 15 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  NextEnd V2 Pre-Release Announcement mvallevand 94 38,688 2018-02-20, 06:52 PM
Last Post: mvallevand
  Plex Channel for NextPVR psycik 289 173,860 2018-01-14, 04:17 AM
Last Post: psycik
  New plugin - MovieTrailers imilne 11 6,018 2014-09-25, 08:16 AM
Last Post: imilne
  HD Logos for the NPVR WebRadio Plugin Lao Pan 3 3,294 2014-02-09, 01:32 PM
Last Post: Lao Pan
  Files plugin tmrt 13 7,268 2014-01-09, 11:16 PM
Last Post: mvallevand
  NEWA Release Build 2.10 Released 2013-12-30 UncleJohnsBand 0 2,118 2013-12-31, 02:53 AM
Last Post: UncleJohnsBand
  NEWA Release Build 1.30 Released 2012-11-27 UncleJohnsBand 0 2,195 2012-11-28, 04:11 AM
Last Post: UncleJohnsBand
  Web Cams plugin for NextPVR McBainUK 37 15,225 2012-10-19, 07:35 AM
Last Post: McBainUK
  NEWA Release Build 1.26 Released 2012-08-24 UncleJohnsBand 0 5,379 2012-08-25, 04:56 AM
Last Post: UncleJohnsBand
  PhotoFilter: New Photos/Videos plugin to browse using metadata cncb 1 1,920 2012-08-10, 04:06 PM
Last Post: cncb

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

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

Linear Mode
Threaded Mode