Qt play video store in QByteArray
<p>When i try to play video stored in SQlite db, it not play, its work for audio,
this is the code:</p>

<pre><code>qry.exec("select * from myTable");

    QByteArray *outByteArray;

    while (qry.next())
        outByteArray = new QByteArray(qry.value("myCol").toByteArray());

    QBuffer *mediaStream = new QBuffer(outByteArray);
    mediaStream-&gt;open(QIODevice::ReadOnly);
    QMediaPlayer *player = new QMediaPlayer;
    QVideoWidget *videoWidget = new QVideoWidget(this);
    videoWidget-&gt;setGeometry(32, 136, 400, 300);
    player-&gt;setVideoOutput(videoWidget);
    player-&gt;setMedia(QMediaContent(),mediaStream);
    player-&gt;setVolume(50);
    player-&gt;play();
</code></pre>