HTML5 video support with QWebView on Raspbian (Raspberry Pi board)
-
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]