Moving Pictures Public Beta 0.5.5c (1 Viewer)

Status
Not open for further replies.

riadmelb

Portal Pro
July 9, 2006
218
7
Melbourne
Home Country
I've not set up my multi environment yet - so i'm not shure but i think the movies files have to be under the same location on BOTH clients. But i don't know how todo this cause you cannot mount shares into directories under windows - or is this possible?

Ohh, you are right, I forgot about that.

This is going to be hard for me, because client1 hosts the files (under c and d), while client2 mounts them under x and y drives.
 

disaster123

MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    Yeah but how can I map them as a drive on the server? my TV-Server is server AND client and on this machine they are all stored in C:\movies. Now i've to map C:\movies to a drive on my server? That's stupid :-( why is there no function like in linux where i can map shares to a directory :-(

    riadmelb
    for me the same problem - perhaps there is an extension or so for vista so that i can map shares to directories.
     

    piranha

    MP Donator
  • Premium Supporter
  • September 17, 2005
    370
    10
    Who told you that you can't map it?
    net use k: \\server\movies - will map that directory (if shared as movies) on every computer (including the server).
    Then point MovingPictures to the k: drive.
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    no i would something like this:
    net use \\tvserver\movies C:\Programs\folderXYZ\movies
     

    fremel

    Portal Member
    April 21, 2007
    18
    4
    no i would something like this:
    net use \\tvserver\movies C:\Programs\folderXYZ\movies

    try subst then, but not realy sure what you want to accomplish by that
    subst K: C:\Programs\folderXYZ\movies

    easier to share your movie folder and map on the client aswell as on the server

    aah now i understand you want to do the opposit ie have a folder the is realy a share on the server
    you can acctually do this on windows
    check this out http://alax.info/blog/ntfslinks
     

    disaster123

    MP Donator
  • Premium Supporter
  • May 14, 2008
    3,558
    434
    Home Country
    Germany Germany
    mhm thanks for your post but where is the difference between the ntfslinks and subst? It is the same - isn't it? (PS im using vista)
     

    whiskaz

    Portal Member
    February 1, 2008
    39
    1
    So, first of all, awesome plugin. I was amazed at how easy it was to setup and use and how well it just... works. I had switched over to Meedios for awhile and found it nice but very, very painful to setup. I'm back to MediaPortal now and that's partially thanks to this excellent plugin.

    My only issue is that I have a requirement to set up more than one "library" of movies - an HD library and a DVD library in this case. I think I saw someone else mentioned the need for a separate library for kids movies, etc. It kind of goes beyond just filtering, you kind of need multiple instances of the plugin to run. That's one thing I did like about Meedios, the ability to have multiple libraries, but the setup was, again, painful.

    Anyway, I downloaded the source for Moving Pictures and got it compiling etc. It seemed like it would be an easy enough hack for me to run multiple instances of it - change the db names, the xml files, etc, but it's obviously not that easy. I'm a Java developer by day, so I'm very much just dabbling here. I can't for the life of me figure out what's causing it to only like one instance - what's limiting it to one instance of the plugin. I can make those db changes, etc, compile and run that plugin ok, but as soon as I have two loaded up it gets fussy.

    I don't expect you to support me in this endeavor, I'm just playing, but I'm very curious as to what's causing the problem. This is the error I get when I have mutliple instances (albeit separate compiles, with different assembly info, DB files, etc) (note that one instance of the plugin works just fine and the other gives this error):

    14-Oct-2008 12:24:34 Fatal [ ConfigConnector]: Unexpected error from plug-in initialization! System.InvalidCastException:
    Unable to cast object of type 'MediaPortal.Plugins.MovingPictures.DataProviders.LocalProvider' to
    type 'MediaPortal.Plugins.MovingPictures.DataProviders.IMovieProvider'.
    at MediaPortal.Plugins.MovingPictures.Database.DBSourceInfo.get_Provider()
    at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.addToLists(DBSourceInfo newSource)
    at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.loadProvidersFromDatabase()
    at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager..ctor()
    at MediaPortal.Plugins.MovingPictures.DataProviders.DataProviderManager.GetInstance()
    at MediaPortal.Plugins.MovingPictures.MovingPicturesCore.Initialize()
    at MediaPortal.Plugins.MovingPictures.MainUI.ConfigConnector.ShowPlugin()

    :D
     

    fforde

    Community Plugin Dev
    June 7, 2007
    2,667
    1,702
    45
    Texas
    Home Country
    United States of America United States of America
    If I had to guess, I would say it is probably because most of the classes reference MovingPicturesCore statically. So probably code from one DLL is interacting with code from the other. Normally the cast in the error message is fine, but if the LocalProvider class is from one DLL, and the IMovieProvider interface is from the other, then it wont be able to cast. Try, in your second DLL renaming the MovingPicturesCore class. Visual Studio should be able to change all the references for you via the built in refactoring tools. If you still have trouble PM me and I will see what I can do to help.
     

    whiskaz

    Portal Member
    February 1, 2008
    39
    1
    John,

    Thanks for the quick reply. I was thinking it was something along those lines but while C# is very similar to Java, I was still kind of muddling through. I figured it would be easier to ask than to spend a ton of time making changes, try, repeat, over and over. I'll give that a shot! Thanks again.

    Jeremy
     

    riadmelb

    Portal Pro
    July 9, 2006
    218
    7
    Melbourne
    Home Country
    In regards to the multi-seat environment, we can also include the unc path of the movie folder. This way it will be the same for all clients.

    I don't think this is an ideal way, but just an alternative.
     

    Attachments

    • MovingPictures unc path.JPG
      MovingPictures unc path.JPG
      61.5 KB
    Status
    Not open for further replies.

    Users who are viewing this thread

    Top Bottom