MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal 1 » Help on Development » Improvement Suggestions


Improvement Suggestions You have an idea how MediaPortal could be improved? Post it in here.

Reply
 
Thread Tools Display Modes
Old 2008-04-12, 13:39   #11 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,251
Thanks: 30
Thanked 145 Times in 88 Posts

Country:

My System

Default

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.
Attached Files
File Type: zip PlayOnStart Plugin.zip (8.4 KB, 11 views)
and-81 is offline   Reply With Quote
Old 2008-04-12, 14:30   #12 (permalink)
Portal Member
 
Join Date: Jan 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts


Thumbs up

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!
ckpw is offline   Reply With Quote
Old 2008-04-12, 18:16   #13 (permalink)
Portal Member
 
Join Date: Jan 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts


Question

Doesn't seem to work for me


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?!?
ckpw is offline   Reply With Quote
Old 2008-04-13, 07:14   #14 (permalink)
Portal Developer
 
and-81's Avatar
 
Join Date: Mar 2005
Location: Melbourne
Age: 27
Posts: 2,251
Thanks: 30
Thanked 145 Times in 88 Posts

Country:

My System

Default

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,
and-81 is offline   Reply With Quote
Old 2008-04-13, 16:49   #15 (permalink)
Portal Member
 
Join Date: Jan 2008
Posts: 12
Thanks: 0
Thanked 0 Times in 0 Posts


Default

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]: Commandtop 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 exceptionystem.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:lin e 151
at MediaPortal.Plugins.PlayOnStart.Start() in F:\MediaPortal Development\Plugins\PlayOnStart\PlayOnStart.cs:lin e 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?

Last edited by ckpw; 2008-04-13 at 16:51. Reason: Automerged Doublepost
ckpw is offline   Reply With Quote
Reply

Bookmarks

Tags
launch, music, option, play, startup

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Launch other app on startup? emphatic MediaPortal 1 Talk 1 2008-06-07 15:35
how to quick launch music,video,tv ? vde Support 1 2007-08-05 02:51
Startup in music module zoltan101 General Support 0 2007-03-07 21:39
Cannot play movies in MP but they play ok in MediaPlayer 10 bzamfir Codecs, External Players 5 2006-09-29 23:40
Wheres the play DVD option at ?? Paul Mathews General Support 8 2006-05-23 07:12


All times are GMT +1. The time now is 16:41.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden