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


- konfoo - 2008-11-20 22:03

enkil Wrote:Sounds promising. Any chance to get a linux version of your patch any time soon?

I plan to merge in the extplayer patch with some modifications.


Need a little help - PantsOnFire - 2008-11-21 03:17

Trying to set this up LaunchPlayer solution.

Following the steps on the original post, I have edited the XBMC.vcproj file to contain the lines regarding "xbmc\cores\launchplayer\..." etc.

done (I think) correctly.

Next, I refer to the readme in the Patch files zip.
It says "- Apply the following patches to XBMC"

and then it lists a few .cpp files with lots of lines of code following them.
(so does this mean we have to edit those particular files? (the cpp files))
-and if so, where abouts do you add these lines within those files?

Confused
Or do I understand it wrongly, and where it says "apply the following patches.." it just means, to build using the BAT file. ?



If this fails then Im obviously doing something wrong. I noticed one or two posts in this thread mention the patch having been applied and a new setup file available for download with the patches added to it. -Is this download in the original post? Because I tried the exe from here:

http://www.mediafire.com/?sharekey=48b806dbd32564e1ab1eab3e9fa335caff6cd6c6d1e3c59c


And I couldn't get it to work. Perhaps I need to uninstall my last build (8.10 Atlantis) first? But seeing as there seems to be no uninstall, will deleting the program from program files work the same?


Thanks for patience reading, really want to get this going. Just need a little help

Wink

Damn, I just tried with the BUILD.bat, I should have realised I need VisualStudio installed. Is there a free version anywhere?

Without VisualStudio installed, I downloaded the patched exe from the above link, if I right click a video in xbmc, hit 'play using' then hit LaunchPlayer, my xbmc freezes outright. If I bring up task manager, I also see that explorer has crashed too. Damn Sad


- konfoo - 2008-11-21 08:17

Quote:done (I think) correctly.

If it's correct it will appear in your solution in VC++ when you load it under the players area.

Quote:and then it lists a few .cpp files with lots of lines of code following them.
(so does this mean we have to edit those particular files? (the cpp files))
-and if so, where abouts do you add these lines within those files?

If you don't know how to apply patches please search the forums or google. + means add, - subtract. @ indicates the line numbers.

The cpp files and h files in the archive are not patches (else they would be suffixed with .patch or .diff). This is the actual launchplayer source.

Quote:If this fails then Im obviously doing something wrong. I noticed one or two posts in this thread mention the patch having been applied and a new setup file available for download with the patches added to it. -Is this download in the original post? Because I tried the exe from here: And I couldn't get it to work. Perhaps I need to uninstall my last build (8.10 Atlantis) first? But seeing as there seems to be no uninstall, will deleting the program from program files work the same?

If it didn't work you misconfigured it or you're launching the wrong xbmc.exe.

Quote:Damn, I just tried with the BUILD.bat, I should have realised I need VisualStudio installed. Is there a free version anywhere?

VSC++ Express.

Quote:Without VisualStudio installed, I downloaded the patched exe from the above link, if I right click a video in xbmc, hit 'play using' then hit LaunchPlayer, my xbmc freezes outright. If I bring up task manager, I also see that explorer has crashed too. Damn Sad

Sorry can't help you there. Seems that you have a lot of other problems to fix first.


- larsson2 - 2008-11-21 14:23

konfoo Wrote:I use /d3dfs. If that still doesn't work make sure XBMC is not running in fullscreen mode (you can't have two applications running fullscreen). You should run it maximized but not fullscreen.

When I use the /d3dfs -switch MPC says that its not a valid switch, but comes up with a list with available switches. For example it mention /fullscreen.

When you say I should'nt run XBMC in fullscreen-mode, do you mean I should start it in windowed-mode? Did try that to, same result.


- konfoo - 2008-11-21 18:46

larsson2 Wrote:When I use the /d3dfs -switch MPC says that its not a valid switch, but comes up with a list with available switches. For example it mention /fullscreen.

d3dfs is only available in the homecinema edition of MPC, IIRC


- Alius - 2008-11-22 01:13

I made a patch to make it work on linux and hopefully mac too.
It's no masterpiece but it should work.
I have posted the patch and more info on your trac.


- konfoo - 2008-11-22 03:51

Alius Wrote:I made a patch to make it work on linux and hopefully mac too.
It's no masterpiece but it should work.
I have posted the patch and more info on your trac.

Great job Smile


- enkil - 2008-11-22 15:47

I applied the linux patch by Alius that I found at the trac ticket. I have a slight problem with it however. The player doesn't get the focus, I still see xbmc's screen instead of the player window. If I change xbmc from fullscreen to windowed mode, it is fine.
Is there a call to xbmc that I can insert into the launchplayer-code to switch xbmc from fullscreen to windowed mode before the player is starting and set it back to fullscreen after the player has exited?


- larsson2 - 2008-11-23 15:01

Problem solved!

Not one of the switches I have used have worked. Except /start /stop. Now I have set up everything directly in MPC. Start in fullscreen mode, close program when finished etc. All the settings are available in the program.
The thing I wrote about that MPC ran in the background and XBMC was on top; solved it by telling MPC to always be on top while playing.

Thanks for all the support!


- bnaert - 2008-11-25 01:12

Everytime i try this everything freezes until i end the MPC process.

Also how do you set xbmc to not be in full screen, i know this sounds like a stupid question but i can't seem to figure it out, I've taken the -fs off of the shortcut and set the resolution to something not full screen and it stays in full screen still.