KMPlayer

Discussion about Perl, TCL or Python scripts and C/C++ plugins (using and writing them).

KMPlayer

Postby Talea » 16 Jan 2011 13:36

Just out of curiousity's sake - has anyone found an announce in channel script for KMPlayer? If so can they give the url or paste the script here. Thanks
Talea
 
Posts: 24
Joined: 18 Jun 2006 23:49

Re: KMPlayer

Postby 2Points » 16 Jan 2011 15:04

I've been using this for a while to good effect. It uses procfs to read the file descriptors opened by mplayer to obtain the currently opened file. I assume it would also work for kmplayer if you edited line 45 to compare against "kmplayer" instead.
User avatar
2Points
 
Posts: 173
Joined: 21 Dec 2006 18:49

Re: KMPlayer

Postby Talea » 16 Jan 2011 18:14

Thanks for the script - gave it a try with the modifications you suggested - it did open up kmplayer but does not display what is playing and it froze my xchat - so I have to try something else if it's available.
Talea
 
Posts: 24
Joined: 18 Jun 2006 23:49

Re: KMPlayer

Postby 2Points » 16 Jan 2011 20:33

From what I understand, the script shouldn't normally open anything. Or hang X-Chat, for that matter, though I could imagine that spawning an application that doesn't terminate immediately could as well hang X-Chat. In that case, the command that tries to determine Mplayer's version is probably at fault. For now, I've stripped the script previously linked down to the essentials, which should probably be unproblematic.

That being said, I'm not completely sure whether kmplayer actually has its own version of mplayer built-in or simply spawns mplayer and attaches its GUI there. Thus, I've added checks for open files both for 'mplayer' and 'kmplayer'. If you find it working for you, that's fine, but if not, I'll probably have to install kmplayer to find out for certain.

Link to updated script: http://files.sector-5.net/mplayer2.py
User avatar
2Points
 
Posts: 173
Joined: 21 Dec 2006 18:49

Re: KMPlayer

Postby Talea » 17 Jan 2011 00:54

Thanks for your help, it works like a charm - only thing I have to remember is to use the default command to use the script.
Talea
 
Posts: 24
Joined: 18 Jun 2006 23:49

Re: KMPlayer

Postby malouito » 20 Jan 2011 20:31

Can this work with Windows 7, what should I replace /proc with ?
malouito
 
Posts: 1
Joined: 20 Jan 2011 20:29

Re: KMPlayer

Postby 2Points » 21 Jan 2011 17:53

Nope, completely impossible. From what I understand, the Win32 API does not offer (documented) file handle enumeration for arbitrary processes, so one would have to think about other means to determine the currently opened file.
User avatar
2Points
 
Posts: 173
Joined: 21 Dec 2006 18:49

Re: KMPlayer

Postby Matt1672 » 02 Feb 2011 20:45

The script you gave didn't work for me tooo :mrgreen: :(
Matt1672
 
Posts: 1
Joined: 02 Feb 2011 20:43

Re: KMPlayer

Postby 2Points » 02 Feb 2011 21:20

You realize that “it doesn't work™” isn't much to go by for trying to fix problems, right?
User avatar
2Points
 
Posts: 173
Joined: 21 Dec 2006 18:49

Re: KMPlayer

Postby Talea » 03 Feb 2011 22:14

To Matt1672: The updated script worked perfectly for me. Are you using a linux version of xchat? I assume you are. Make sure you download the updated version. Your KMplayer should already be open and the command for use is /mplayer
Talea
 
Posts: 24
Joined: 18 Jun 2006 23:49

Re: KMPlayer

Postby blackangels » 27 Mar 2011 06:18

finally the script works for me..
I didn't know if it can't work with Windows 7
Thanks Guys.. :lol:
blackangels
 
Posts: 1
Joined: 27 Mar 2011 06:03

Re: KMPlayer

Postby henry009 » 07 Jun 2011 18:04

can i play DivX format file in this player.....


Henry
henry009
 
Posts: 1
Joined: 07 Jun 2011 17:44

Re: KMPlayer

Postby Talea » 07 Jun 2011 18:16

[quote="henry009"]can i play DivX format file in this player.....


Henry

This script only displays what you are playing not the player itself. So if you're playing a DivX .avi it will indicate the filename of the video/movie.

Talea
Talea
 
Posts: 24
Joined: 18 Jun 2006 23:49

Re: KMPlayer

Postby mariyar » 08 Jun 2011 06:36

I could imagine that spawning an application that doesn't terminate immediately could as well hang X-Chat.... :shock:
mariyar
 
Posts: 2
Joined: 08 Jun 2011 06:31

Re: KMPlayer

Postby mikelandis » 14 Jun 2011 15:51

Thanks for the help!
mikelandis
 
Posts: 1
Joined: 14 Jun 2011 15:49

Next

Return to Scripts and Plugins

Who is online

Users browsing this forum: No registered users and 1 guest