qt - QMediaPlayer - playing youtube music -
qt5 introduced qmediaplayer
can't play youtube link (i want music). found in qt 4.8 (phonon) in qt5 error:
missing decoder 'text/html'. gstreamer has no plugin it
it pure translation polish output in qt creator. matter of gstreamer plugin or should download html content, find direct link media , play it? idea?
code:
mmediaplayer.setmedia(qurl("http://youtu.be/wvvoqidd80u")); mmediaplayer.play();
link youtube video link web page, contain link media. first off need extract url web page handle url.
you may look, how in qt-youtube project on github.
Comments
Post a Comment