1 |
On Thu, 15 Mar 2007 09:04:58 +0200, Alex Fansky wrote: |
2 |
|
3 |
> I am using kde-3.5.6 and gmplayer as frontend to mplayer 1.0rc1-4.1.2. |
4 |
> When I doubleclick on the video file, it is opened in new mplayer |
5 |
> window. Is there any ways to make it be played in already runned |
6 |
> mplayer instead of previously opened movie, like it do MS Windows video |
7 |
> players? |
8 |
|
9 |
There's no obvious way of doing this with gmplayer, but as you're using |
10 |
KDE, you can do it with kmplayer by using this script to load the video |
11 |
file |
12 |
|
13 |
#!/bin/sh |
14 |
|
15 |
PLAYER=$(dcop kmplayer-* | head -n 1) |
16 |
if [[ ${PLAYER} ]]; then |
17 |
dcop ${PLAYER} KMediaPlayer openURL "$1" |
18 |
else |
19 |
kmplayer "$1" |
20 |
fi |
21 |
|
22 |
|
23 |
-- |
24 |
Neil Bothwick |
25 |
|
26 |
Another victim of Modem Addictus |