On Fri, Mar 28, 2008 at 8:55 AM, Matthias Kretz 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