Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QMediaPlayer play youtube (internet) link
Forum Updated to NodeBB v4.3 + New Features

QMediaPlayer play youtube (internet) link

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 680 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    lotin
    wrote on 16 Nov 2017, 17:32 last edited by
    #1

    Hello,
    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:

    https://r5---sn-2gb7sn7s.googlevideo.com/videoplayback?........&source=youtube&requiressl=yes&mv=m&mn,gir,clen,lmt,dur
    

    And when I try to play this link by code:

    player = new QMediaPlayer;
    player->setMedia(QUrl(link));
    player->play();
    

    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.

    1 Reply Last reply
    0

    1/1

    16 Nov 2017, 17:32

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved