[Qt-interest] Phonon and http Streams

Trash Mail trashformails at gmail.com
Thu May 28 08:58:06 CEST 2009


Hi

We want to use a dataStream as IODevice for Phonon MediaSource (on Linux and
Windows).

We tried use of Qbuffer class (sent to a QHttp object) and sent it to
mediaObject.setCurrentSource (IODevice *)  method.Playback start correctly
but after fiew seconds it stops even if buffer not empty.
The playback time is linked to the size of the Qbuffer when the
mediaObject.setCurrentSource (IODevice *)  method was called. I think phonon
detect the size one time (when it opens IODevice).

According to documentation, Phonon can also use a sequential stream so we
tried with a QNetworkReply which is a sequential IODevice but phonon can't
open IODevice even if datas in stream are good (we tried to copy them to a
Qbuffer and same behavior above).
Is there a solution to use a sequential IODevice in MediaSource
(Implementation of AbstractMediaStream or custom IODevice) ?

We tried to subclass Qbuffer and only change the "isSequential"  method to
return true and we have same behavior than with QNetworkReply.

Best Regards

RG
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090528/f1d46c4e/attachment.html 


More information about the Qt-interest-old mailing list