How to play video from URL LAN network in QMediaPlayer (Qt 5.7)
<p>Please help me to play video from URL LAN network in Qt. I have an IP camera with URL = 192.168.1.101:8080/video, and here is my qt code</p>

<pre><code>#include "dialog.h"
#include &lt;QApplication&gt;
#include &lt;QMediaPlayer&gt;
#include &lt;QVideoWidget&gt;
#include &lt;QNetworkRequest&gt;
#include &lt;QDebug&gt;
int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    QMediaPlayer *_player = new QMediaPlayer;
    QVideoWidget *_vw = new QVideoWidget;
    _player-&gt;setVideoOutput(_vw);
    const QUrl url = QUrl("http://192.168.1.101:8080/video");
    const QNetworkRequest requete(url);
    _player-&gt;setMedia(requete);
    _vw-&gt;setGeometry(100,100,300,400);
    _vw-&gt;show();
    _player-&gt;play();

    return a.exec();
}
</code></pre>

<p>But it not work. I have tested with video from local host and it ok.
Thank you and sorry for my English.</p>