| Summary: | KMplayer lacks a DCOP call to return the path/URL of the currently playing file | ||
|---|---|---|---|
| Product: | [Unmaintained] kmplayer | Reporter: | Stephan Sokolow <kde_bugzilla_2> |
| Component: | general | Assignee: | Koos Vriezen <koos.vriezen> |
| Status: | RESOLVED UNMAINTAINED | ||
| Severity: | wishlist | ||
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Compiled Sources | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Stephan Sokolow
2006-06-10 22:38:04 UTC
You mean the current file independent if it's a playlist or not, or the actual link in the playlist? Any preferences for the dcop function name? The currently playing file, after resolving any KIOSlaves which resolve to local paths. (I play a lot of media:/ stuff) I don't have enough experience with DCOP to have an idea what would be appropriate but maybe something like currentURL() There's definitely a need for a "now playing" DCOP API that at the very least returns the file name without the path, or ideally meta data (creator, artist, album, title and so on). Both Konversation and Kopete could use it for their "now playing" plugins. I actually worked around this problem by using the window caption. The following is a line from a bash script of mine: result=`dcop $kmplayerinstance kmplayer-mainwindow#1 caption | sed 's/^URL - //' | sed 's/ - KMPlayer//'` To return the file name without the path simply do: result=`dcop $kmplayerinstance kmplayer-mainwindow#1 caption | sed 's|^.*/||' | sed 's/ - KMPlayer//' This project is unfortunately no longer maintained. If a new maintainer wants to step up and take care, the project is archived here: https://invent.kde.org/multimedia/kmplayer You can just clone it in your private namespace on invent.kde.org and if you have started to work on it and fixed/implemented something get it reviewed and the project unarchived. Sorry for the inconveniences. |