Subtitle API

Tanguy Krotoff tkrotoff at
Wed Jun 30 23:01:19 BST 2010

On Wed, Jun 30, 2010 at 2:08 AM, Ian Monroe <ian at> wrote:
> Good point I completely forgot that we already have a subtitle API.

Probably better to rework/clarify current API before to add new functions
that will complexify phonon :)

> Which is funny since I think I wrote it. So I'm concerned with how
> these two APIs will interact. Does the subtitle get added to the
> available subtitles?

I didn't get your question.

To sum up here is a diagram of current Phonon subtitle API and the way it is
used by phonon-mplayer:

About setSubtitleEncoding, I checked MPlayer documentation and there is a
parameter to specify this. Btw the specification seems to be unclear cf

If we want to be able to change subtitle encoding, I think a separated
function setSubtitleEncoding() is probably a bad idea. It should be a
parameter to setSubtitleFile() instead otherwise this won't work:
Or you need to re-read the subtitle inside the function

On the other hand a function like setSubtitleFont() can be separated since
it won't require to re-read the subtitle.

Tanguy Krotoff <tkrotoff at>
+33 6 68 42 70 24
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
kde-multimedia mailing list
kde-multimedia at

More information about the kde-multimedia mailing list