I got a ts(Transport Stream) file, I want use Phonon to play it.
But it didn't work. I can play the file use Windows Media Player.

Can somebody tell me if Phonon support ts file? Thanks

my code is simple, I can use it to play wmv, but not ts.
Qt Code:
  1. Phonon::VideoPlayer *player = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
  2. QString filename("C:\\Users\\XXX\\Documents\\QT Projects\\DVR\\Snow.ts");
  3. //QString filename("C:\\Users\\XXX\\Documents\\QT Projects\\DVR\\Wildlife.wmv");
  4. Phonon::MediaSource souce(filename);
  5. player->play(souce);
To copy to clipboard, switch view to plain text mode