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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -