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. HTML5 video support with QWebView on Raspbian (Raspberry Pi board)
Forum Updated to NodeBB v4.3 + New Features

HTML5 video support with QWebView on Raspbian (Raspberry Pi board)

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 4.4k 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.
  • S Offline
    S Offline
    scls19fr
    wrote on last edited by
    #1

    Hello,

    I'm using QT4 (not QT5) with a Raspberry Pi board and Raspbian Linux distro.
    I compile my software on the Raspberry Pi.
    I'd like to display an HTML page with an HTML5 video
    @
    <!DOCTYPE html>
    <html>
    <head>
    <meta charset="utf-8" />
    <title>HTML5 Video Player</title>
    </head>

    <body>
    <div >
    <video width="400" height="222" controls="controls" preload="auto" poster="http://www.domain.com/clip.png" autoplay="autoplay" loop="loop">
    <source src="http://www.nicolas-hoffmann.net/animations/Cavernae_Terragen2.mp4" type='video/mp4; codecs="avc1.42E01E, mp4a.40.2"' />
    <source src="http://www.nicolas-hoffmann.net/animations/Cavernae_Terragen2.webm" type='video/webm; codecs="vp8, vorbis"' />
    <source src="http://www.nicolas-hoffmann.net/animations/Cavernae_Terragen2.theora.ogv" type='video/ogg; codecs="theora, vorbis"' />
    Not supported
    </video>
    </div>
    </body>
    </html>
    @
    The same Qt code (inspired from http://www.developer.nokia.com/Community/Wiki/HTML5_video_player_app_using_a_QWebView )
    works fine on my Mac but, when I run the same program on my Raspberry Pi board, video doesn't appears
    and the message "Not supported" appears instead of video.

    I wonder if there is a package that I should add to my Raspbian to support video inside QWebView ?

    Kind regards

    Sébastien

    [Edit: Added @ tags around code -- mlong]

    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