PDA

View Full Version : will this piece of code related to phonon works?



Lakshmi.Bollavaram
20th November 2009, 09:29
i tried this pice of code related to play a video file in Qt but it didn't work for me.
will this really work out or should we do any workaround?
if so , please let me know how can we do it.
Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory);
//player->load("Automotive_Trailer.wmv");
// or
player->load(Phonon::MediaSource("Automotive_Trailer.wmv"));
player->play();
player->show();

wysota
20th November 2009, 09:57
If your backend for phonon (if you're using Linux it's either gstreamer of xine) supports this particular codec, it should work.