XBMC Community Forum
[PATCH] LaunchPlayer - External Video Player Launcher (to launch third-party players) - Printable Version

+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Development (/forumdisplay.php?fid=93)
+--- Thread: [PATCH] LaunchPlayer - External Video Player Launcher (to launch third-party players) (/showthread.php?tid=40136)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


- iLLNESS - 2008-11-28 09:08

Hey man just want to say thanks for working on something like this.

I have a feature request (hopefully a small one) some guys might be able to use. Basically, I've got an HTPC on the go and I LOVE XBMC. i I don't want to have to use anything else really but unfortunately BluRay menu support does not exist in XBMC. I've been searching for a solution and hoped XBMC might get this feature, but it looks like you already have it half there.

So, you've got launchplayer in XBMC which works great for regular files, but i was hoping you'd be able to add the ability to specify a file in the arguments for certain apps. In my case the app is AxCmd for alcohol 120.
Here's the arguements for AxCmd itself:
Code:
Syntax:
AxCmd.exe [drive:] [/M:path] [/u] [/L] [/?] [@cmd]


drive: Specifies virtual drive letter or number.
Possible values are A to Z or 0 to 30.
/M:path Mount an image file on a virtual drive.
Example: AxCmd.exe V: /M:c:\images\cd1.mds
This example will mount image file cd1.mds (located in images folder on drive C:) in Alcohol virtual drive that is using V: drive letter.
Note that if the full file/path name contains space character, then the file/path name need to be quoted for example: AxCmd.exe 0: /M:"C:\Documents and Settings\someone\My Documents\Alcohol 120\test 101.iso"
Returns drive letter when success or 1 when failure occurs.
/U Umount an image from a virtual drive.
Example: AxCmd.exe V: /U
Returns drive letter when success or 1 when failure occurs.

/L Get the number of active Alcohol virtual drives.
Example: AxCmd.exe /L
Returns 0 if there are no active virtual drives.
/? Display help.
@cmd This parameter should be used together with /M parameter to execute a specified command after mounting an image file on a virtual drive.
Example: AxCmd.exe 0: /M:c:\images\cd1.mds @0:play.exe
This example will mount image file cd1.mds (located in images folder on drive C:) in first Alcohol virtual drive and then automatically run play.exe from this virtual drive.

If something like this could be added, then once the ISO is mounted a player like total home theatre could load for the menu support.

As it stands, i dont think launchplayer is even passing the arguements right for some reason.. typing a command in dos that works doesnt in launchplayer args...

Thanks!


- ashlar - 2008-11-28 12:59

Illness, not to be annoying or anything but the plugin author, right in the post above yours, clearly stated: "Please post this in the trac ticket (#5300)." referring to a very similar feature request. Wink


- iLLNESS - 2008-11-28 17:23

ashlar Wrote:Illness, not to be annoying or anything but the plugin author, right in the post above yours, clearly stated: "Please post this in the trac ticket (#5300)." referring to a very similar feature request. Wink

yeah i checked out the site and couldnt see nothing to post in the trac ticket.
aside from that, his request is something different all together. im asking if he can make it to pass better arguements basically.. that guys asking for it to play one file but not another automatically even though you can already select it to play launch player.. my feature is not in there at all really

EDIT: well after a little probing, i found out that this launchplayer IS basically setup for AxCmd already... theres just one small issue on how its handled. heres a C&P of the code executed when clicking on an iso and hitting launchplayer:
Code:
F:\Program Files\Alcohol Soft\Alcohol 120\AxCmd.exe E: /M: "g:\Folder Name\dvdr.img"

For AxCmd to handle it properly, it needs to be:
Code:
F:\Program Files\Alcohol Soft\Alcohol 120\AxCmd.exe E: /M:"g:\Folder Name\dvdr.img"



- ashlar - 2008-11-28 18:28

He repeatedly asked to post feature requests in the trac system. Having said this, do as you prefer. I'm not a moderator or anything.


- iLLNESS - 2008-11-28 18:53

ashlar Wrote:He repeatedly asked to post feature requests in the trac system. Having said this, do as you prefer. I'm not a moderator or anything.

if there was a way to register to trac, or post to it, i would have


- ashlar - 2008-11-28 19:05

iLLNESS Wrote:if there was a way to register to trac, or post to it, i would have
Same username and password as the forum you are writing on. Smile


- iLLNESS - 2008-11-28 19:15

good news thanks!

anyone here happen to know specifically in what file and where in the source, launchplayer passes the arguments? If i could find this information i could just change the code myself and compile it but i checked the source of the launchplayer and cant see specifically where the arguements/exe location is ran from.

where exactly do you send feature requests for launch player? do you create a new ticket of just reply to the launchplayer ticket?


- ashlar - 2008-11-28 19:45

iLLNESS Wrote:do you create a new ticket of just reply to the launchplayer ticket?
you reply to the launchplayer ticket.


- iLLNESS - 2008-11-28 22:39

well i managed to get a work around using a batch file and a batch compiler (convert to exe)

my batch looks like this:
Code:
AxCmd.exe E: /M:%4
this mounts the file selected in XBMC to the virtual E: drive.

the advanced settings looks like this:
Code:
<advancedsettings>
<launchplayer>
<defaultplayer>false</defaultplayer>
<filename>F:\Program Files\Alcohol Soft\Alcohol 120\arg.exe</filename>
<args></args>
</launchplayer>
</advancedsettings>
the batch exe is arg.exe and i had to put it in the same folder as AxCmd.

I used a program called ExeScript 3.0 which requires a liscence to run fine with xbmc (free version requires you to hit enter in the command prompt.. which locks up XBMC)

So once the image was mounted, i had total home theatre auto load upon that drive getting a video disc. in total home theatre i set it to always on top as xbmc seems to unlock as soon as that batch exe completes.

i suppose this is a good work around for people with BR images and XBMC.

anyone wanting to check it out can grab a precompiled exe here:
http://www.mediafire.com/download.php?wuflr2j3ygt
the exe is NOT a virus.. if you don't trust me scan it Tongue
was made with this program:
http://www.softpedia.com/get/Programming/Coding-languages-Compilers/ExeScript.shtml
again, put the arg.exe in the same folder as your alcohol120, and link the arg.exe in your advancedsettings.xml

the only downside as it stands is xbmc is running full resource in the background, and your app needs to be able to always be on top for it to show video.


- ashlar - 2008-11-28 23:27

Maybe this could be added to the Wiki?