View Full Version : Launching Video in Kmplayer via Code
bobber205
04-11-2008, 01:31 PM
Does KMplayer support opening files via something similar to command line?
I would love to issue a command from some C++ code for a school project and be able to use my favorite media player. ;)
Also is there any kind of API to integrate KMplayer directly into my app? Please don't make me use VLC. ;)
Pantuflo
04-11-2008, 04:19 PM
Command line switches are shown in Options -> About... window.
mouse
04-11-2008, 04:30 PM
See the folder: "The KMPlayer/sdk/remocon". Almost every function of KMP can be controlled by skincmds in external application.
gabidusa
04-11-2008, 08:25 PM
Hi mouse,
Could you be more explicit please?
I also want to use the KMPlayer in a Visual Studio application and I don't know from where to start. In this application I allready use VLC, but this was easy because VLC has an activex which is recognised by Visual Studio as a COM component.
Thank you and regards,
mouse
04-11-2008, 09:45 PM
Could you be more explicit please?
It's like wm_messages. KMP doesn't have an activex control.
gabidusa
04-11-2008, 10:44 PM
Could you provide an example? :)
mouse
04-12-2008, 12:03 AM
Hmm, can't you find the example in the distribution package?? Look into the folder in the posting above. There is a sample of controlling the player written in delphi. I'm not quiet experienced with C++. Find someone who can help you. :p It might not be so difficult to call the player using wm_message.
However, KMP can't be seamlessly merged into your application as it's just APIs to control KMP outside of the player.
gabidusa
04-28-2008, 05:05 PM
Thank you for your info,
But I am looking for somethig like this: I want to embed the player into a windows application using Visual Studio. As I said, with Video Lan Controler I tried and it was with success because Video Lan Controler has an ActiveX COM component.
Do you know if The KMPLayer has this feature?
Thank you,
vBulletin® v3.6.8, Copyright ©2000-2009, Jelsoft Enterprises Ltd.