Important: Please read the Qt Code of Conduct -

QMediaPlayer play youtube (internet) link

  • Hello,
    I am trying to play youtube.
    The youtube link I getting from:

    youtube-dl -g ""

    This will give you a direct link to media, such as:,gir,clen,lmt,dur

    And when I try to play this link by code:

    player = new QMediaPlayer;

    Nothing happens...

    I tryed to play this link directly by gstreamer by:

    gst-play-1.0  "link"

    And this works. So it shouldn't be coused by missing codec.

    Thanks everyone for some help.

Log in to reply