Unsolved QMediaPlayer play youtube (internet) link
I am trying to play youtube.
The youtube link I getting from:
youtube-dl -g "https://www.youtube.com/watch?v=U7BvPxZ..."
This will give you a direct link to media, such as:
And when I try to play this link by code:
player = new QMediaPlayer; player->setMedia(QUrl(link)); player->play();
I tryed to play this link directly by gstreamer by:
And this works. So it shouldn't be coused by missing codec.
Thanks everyone for some help.