Playing a custom avi data stream using QtMultimedia

I understand you have quite the customized class structure but maybe you could use some advice from a coding newbie.
I think you should be using some more basic existing data types together with your custom classes.

Solution for: synchronizing the timing of the data stream with QMediaPlayer:
Try using some timer threads (combination of Thread and timer). Make one that uses whatever the stream index is of MyVideoAudioStream (using time as the variable in the index) and “Mycustomreader” (using an array of packets with time as the variable in the index) as it’s body. Add into the body some logic that cycles through the position( @param:time) in QMediaPlayer. From this,you could parse through the execution code of both at the same time. As time increases,the position in QMediaPlayer and the index of your stream would increase.

If you don’t have an index or position in your custom stream,I highly suggest you create one.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)