c++ - UDP video using QMediaplayer library -
i've been playing around qmediaplayer library. curious how work streaming video source, i've used vlc stream videos using udp protocol.
to make quick test, i've used qt example named mediaplayer example. example designed work offline files, i've added on dumb function on player implementation.
void setm(qurl url){player->setmedia(url);player->play();}
then, on main.cpp file call function this:
... player.setm(qurl("udp://239.1.1.1:1234")); return app.exec();
what start reproducing stream source once program read.
the problem here qt through me following error:
directshowplayerservice::doseturlsource: unresolved error code 800c000d
to local files , http streaming , works... when tried udp or rtp same error.
i've spent few hours looking more information, same response... use qmlvlc... example, look this.
does tried before? what's wrong here?
pd: know there vlc plugging make work, make work qt (or @ least, understand happening here).
pd2: i'm on windows 8.1, qt 5.5 (mingw 4.9.2) , have important codecs installed.
thanks in advance,
update
finally, manage deal new http://code.qt.io , here code suspect blocking udp (and others) protocols-> here. maybe, "http" , "https" accepted valid stream sources on directshowsservice... i'll try time week recompile multimedia module windows in order add udp procotol function doseturlsource , see happens. if test first, please let me know here!
update 2
first of all, suspect qmediaplayer couldn't reproduce udp/rtp content because addfilter method... anyway, http,https , rtsp works perfectly.
secondly, i've found strange behavior on udp protocol. i'm using "udp://@239.1.1.1:1234" test multicast direction. strange thing during 1 test put direction mistake "udp://@239.1.1.1:1234z" , time no error has been through. seems direction needs contain letter.
Comments
Post a Comment