I want to create a Qt widget that can play incoming RTP streams where the video is encoded as H264 and contains no audio.
My basic plan for implementation is this:
- Create a Phonon MediaSource object (Stream type).
- Connect it with a QIODevice subclass that provides the data
- Obtain the video data using either:
My environment:
- Ubuntu 9.10
- Qt 4.6
My questions:
- Is my approach a good one? Perhaps I'm overlooking a more obvious or simple solution?
- I'm currently experiencing this issue: when trying to play the video stream the state of the MediaObject turns to ErrorState with errorType FatalError. Can anyone tell me what I'm doing wrong?
Edit
One solution I found is using libVLC in combination with Qt, which I learned about in this thread. Here's a code sample for the interested.
I'm still looking for a Phonon-based solution.
Ideally I would only need to provide an SDP file and job is done.