launch on startup option play music or movies (1 Viewer)

and-81

Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    ok, first attempt, seems to work ok.

    Copy the files into the MediaPortal\Plugins\Process folder.

    1 problem.

    When you try to select the file in the file dialog it closes the whole plugin setup form ... god knows why it's doing this but I'm about to smash something!

    If you just type the file path you'll be alright for now.

    Let me know if there's any other problems and I'll try again to fix the current problem tomorrow.

    Cheers,

    PS. Ok it took me 60 minutes instead of 30, but that's only cos I stopped to have some noodles cos it was giving me trouble with the file dialog. :)
     

    ckpw

    Portal Member
    January 26, 2008
    12
    0
    Wow! 30 mins or an hour doesnt make a difference: You are a genius!

    Thanks a lot, I will look into it tonight and test it in my setting... Cheers man!:D :D
     

    ckpw

    Portal Member
    January 26, 2008
    12
    0
    Doesn't seem to work for me :confused: :confused: :confused:


    0.2.2 configuration menu doesnt open
    0.2.3: No action after starting Mediaportal. Neither when I enter a file or a directory to be played.

    Plugin apears in the section "Process Plugins", is active and remembers the last setting (the last entered filename [F:\1.mp3] apears in the config dialog).

    Any clues? What am I doing wrong?!?
     

    and-81

    Retired Team Member
  • Premium Supporter
  • March 7, 2005
    2,257
    183
    Melbourne
    Home Country
    Australia Australia
    The plugin was compiled for 0.2.3.0 (possibly requiring a recent SVN).

    Can you try again and post your mediaportal.log ... it should have some "PlayOnStart:" lines in it that might give a clue.

    Also, are you using a recent SVN or just 0.2.3.0? or were you using 0.2.2.0?

    Unfortunately the plugin interface changes from time to time so it's hard to support older versions of MediaPortal.

    Cheers,
     

    ckpw

    Portal Member
    January 26, 2008
    12
    0
    I downloaded the 0.2.3 version from the homepage (after realizing that the computer I wanted to test the plugin with had a very old version [0.2.2])

    I extracted the following from the logfile:
    2008-04-12 18:15:32.671875 [Info.][MPMain]: Main: Running
    2008-04-12 18:15:32.671875 [Info.][MPMain]: Main: Starting up
    2008-04-12 18:15:32.671875 [Info.][MPMain]: PlugInManager.Load()
    2008-04-12 18:15:32.671875 [Info.][MPMain]: Load plugins from : C:\Programme\Team MediaPortal 0.2.3\Plugins\process\PlayOnStart.dll
    2008-04-12 18:15:32.687500 [Info.][MPMain]: Assembly Version : 1.4.2.0
    ...
    2008-04-12 18:15:32.734375 [Info.][MPMain]: PlugInManager.Start()
    2008-04-12 18:15:32.734375 [Info.][MPMain]: PlayOnStart: Start
    2008-04-12 18:15:32.734375 [Info.][MPMain]: PlayOnStart: Play F:\1.mp3
    2008-04-12 18:15:32.765625 [Info.][MPMain]: g_Player.Play(F:\1.mp3)
    2008-04-12 18:15:32.765625 [Info.][6]: Command:confused:top radio
    2008-04-12 18:15:32.765625 [Info.][6]: Commandprocessor: MediaPortal.TV.Recording.StopRadioCommand failed reason: No tuner cards installed time: 0 msec
    ...
    2008-04-12 18:15:32.812500 [Info.][MPMain]: Unable to start plugin:MediaPortal.Plugins.PlayOnStart exception:confused:ystem.NullReferenceException: Object reference not set to an instance of an object.
    at MediaPortal.Player.PlayerFactory.Create(String fileName)
    at MediaPortal.Player.g_Player.Play(String strFile)
    at MediaPortal.Plugins.PlayOnStart.PlayFile(String fileName) in F:\MediaPortal Development\Plugins\PlayOnStart\PlayOnStart.cs:line 151
    at MediaPortal.Plugins.PlayOnStart.Start() in F:\MediaPortal Development\Plugins\PlayOnStart\PlayOnStart.cs:line 36
    at MediaPortal.GUI.Library.PluginManager.Start()
    ...
    2008-04-12 18:15:43.375000 [Info.][MPMain]: PlugInManager.Stop()
    2008-04-12 18:15:43.375000 [Info.][MPMain]: PluginManager: stopping MediaPortal.Plugins.PlayOnStart
    2008-04-12 18:15:43.375000 [Info.][MPMain]: PlayOnStart: Stop

    Seems like a wrong directory reference to me? "F:\MediaPortal Development\Plugins" is not correct for my installtion, should be rather "C:\Programme\Team MediaPortal 0.2.3\Plugins"

    Another quick remark: Would it be possible to give a directory instead of a filename that is autoplayed? I.e. Media Portal picks a random file from a given directory and puts all other files in that directory in random order in a queue?
     

    Users who are viewing this thread

    Top Bottom