Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QML: WebView don't read youtube video
Forum Updated to NodeBB v4.3 + New Features

QML: WebView don't read youtube video

Scheduled Pinned Locked Moved Solved Qt WebKit
4 Posts 2 Posters 1.7k 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.
  • FaridsarlF Offline
    FaridsarlF Offline
    Faridsarl
    wrote on last edited by Faridsarl
    #1

    Hi,

    I'm on Qt 5.2.0 (Windows 8.1) and I use Webkit in QML to read a youtube video but it don't work. Ohers websites are correctly loaded in WebView. Youtube page is also loaded with title, volume button, next button, .... But when I click on play button, a reading crash and i get grains.
    My code is simple :

    WebView{
        title: webview
        url: "https://youtube.com/embed/6fBZBntjEOA"
        width: parent.width
        height: parent.height
        x: 0
        y: 0
        enabled: true
    }
    

    Have I need to use others plugins ? codecs ?
    I will be happy if you can help me to solve this issue.

    Bests regards

    ? 1 Reply Last reply
    0
    • FaridsarlF Faridsarl

      Hi,

      I'm on Qt 5.2.0 (Windows 8.1) and I use Webkit in QML to read a youtube video but it don't work. Ohers websites are correctly loaded in WebView. Youtube page is also loaded with title, volume button, next button, .... But when I click on play button, a reading crash and i get grains.
      My code is simple :

      WebView{
          title: webview
          url: "https://youtube.com/embed/6fBZBntjEOA"
          width: parent.width
          height: parent.height
          x: 0
          y: 0
          enabled: true
      }
      

      Have I need to use others plugins ? codecs ?
      I will be happy if you can help me to solve this issue.

      Bests regards

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @Faridsarl said:

      But when I click on play button, a reading crash and i get grains.

      Like this?

      1 Reply Last reply
      0
      • FaridsarlF Offline
        FaridsarlF Offline
        Faridsarl
        wrote on last edited by Faridsarl
        #3

        Yes like that, but the message of error is not the same.
        Try with this https://www.youtube.com/embed/MQmduGfL12Y
        Error reading of youtube video via WebView

        1 Reply Last reply
        0
        • FaridsarlF Offline
          FaridsarlF Offline
          Faridsarl
          wrote on last edited by
          #4

          Hi,

          I have exported my project verse Qt 5.7 using WebEngineView and it work good.
          Thanks

          1 Reply Last reply
          0

          • Login

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