[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-multimedia
Subject: Re: Konrad Materka, GSOC proposal
From: "Ian Monroe" <ian () monroe ! nu>
Date: 2008-03-28 14:37:22
Message-ID: f680fec50803280737m777d0522k7a5c6761fd48ae83 () mail ! gmail ! com
[Download RAW message or body]
On Fri, Mar 28, 2008 at 8:55 AM, Matthias Kretz <kretz@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
_______________________________________________
kde-multimedia mailing list
kde-multimedia@kde.org
https://mail.kde.org/mailman/listinfo/kde-multimedia
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic