Subtitle API
Tanguy Krotoff
tkrotoff at gmail.com
Wed Jun 30 23:01:19 BST 2010
On Wed, Jun 30, 2010 at 2:08 AM, Ian Monroe <ian at monroe.nu> 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:
http://gitorious.org/phonon/phonon-mplayer/blobs/raw/master/mplayer/doc/phonon-subtitles.png
About setSubtitleEncoding, I checked MPlayer documentation and there is a
parameter to specify this. Btw the specification seems to be unclear cf
http://lists.mplayerhq.hu/pipermail/mplayer-docs/2004-May/001541.html
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:
[...]
setSubtitleFIle()
setSubtitleEncoding()
[...]
Or you need to re-read the subtitle inside the function
setSubtitleEncoding().
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 gmail.com>
+33 6 68 42 70 24
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-multimedia/attachments/20100701/6de5498a/attachment.htm>
-------------- next part --------------
_______________________________________________
kde-multimedia mailing list
kde-multimedia at kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia
More information about the kde-multimedia
mailing list