Konrad Materka, GSOC proposal

Ian Monroe ian at monroe.nu
Fri Mar 28 14:37:22 GMT 2008


On Fri, Mar 28, 2008 at 8:55 AM, Matthias Kretz <kretz at kde.org> wrote:
>  Here's what I think an application using ext. subtitles with Phonon could look
>  like:
>
>  using Phonon::MediaObject;
>  using Phonon::AudioOutput;
>  using Phonon::VideoWidget;
>  using Phonon::SubtitleWidget;
>  using Phonon::Port;
>
>  MediaObject m;
>  m.setCurrentSource(Phonon::Dvd);
>  MediaObject sm;
>  sm.setCurrentSource(urlToSubtitles);
>  Synchronizer sync;
>  sync.addMediaObject(&m);
>  sync.addMediaObject(&sm);
>  AudioOutput ao(Phonon::VideoCategory);
>  VideoWidget vw;
>  vw.show();
>  Phonon::createPath(&m, &ao);
>  Phonon::createPath(&m, Port(Phonon::Video), &vw);
>  Port port = sm.openPort(Phonon::Subtitles, "pixmap");
>  SubtitleWidget swidget;
>  Phonon::createPath(&sm, port, &swidget);

You're OK with Phonon becoming responsible for subtitle parsing? I
assumed this was out of the scope of what Phonon was about which is
why I never considered such a solution.

Ian



More information about the kde-multimedia mailing list