Qt 5.3.2:无法在QWebKit中播放HTML5(+ gstreamer 1.0)

时间:2016-02-29 08:01:46

标签: qt html5-video qt5 qwebkit

我目前正在开发基于i.MX6 SoC的系统......我刚刚构建了Qt 5.3.2(通过Yocto)配置它以使用gstreamer 1.0作为后端...

编译成功完成,但不幸的是我无法从QWebKit播放HTML5视频......

查看我的应用程序的控制台输出(一个简单的基于QML的应用程序显示WebView全屏)我看到来自gstreamer的消息(所以我认为该库已初始化并正常工作)...

QML debugging is enabled. Only use this in a safe environment.
QEglFSImx6Hooks will set environment variable FB_MULTI_BUFFER=2 to enable double
 buffering and vsync.
 If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_M
ULTI_BUFFER=1
[   53.214914] PU: Power-off latency exceeded, new value 35000 ns

====== AIUR: 4.0.3 build on Feb 26 2016 12:18:25. ======
        Core: MPEG4PARSER_06.09.10  build on Jan  8 2015 07:06:50
 file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.2
------------------------
    Track 00 [video_0] Enabled
        Duration: 0:09:56.458304000
        Language: und
    Mime:
        video/x-h264, parsed=(boolean)true, alignment=(string)au, stream-format=
(string)avc, width=(int)853, height=(int)480, framerate=(fraction)24/1, codec_da
ta=(buffer)014d401effe10015274d401ea9181b07bcde00d4040406db0ad7bdf01001000428de0
9c8 
------------------------
    Track 01 [subtitle]: Disabled
        Codec: 0, SubCodec: 0
------------------------
------------------------
    Track 02 [audio_0] Enabled
        Duration: 0:09:56.480000000
        Language: und
    Mime:
        audio/mpeg, mpegversion=(int)4, channels=(int)6, rate=(int)48000, bitrat
e=(int)448000, stream-format=(string)raw, codec_data=(buffer)11b0 
------------------------

====== BEEP: 4.0.3 build on Feb 26 2016 12:18:37. ======
        Core: AAC decoder Wrapper  build on Apr 22 2014 09:43:50
 file: /usr/lib/imx-mm/audio-codec/wrap/lib_aacd_wrap_arm12_elinux.so.3
CODEC: BLN_MAD-MMCODECS_AACD_ARM_03.09.00_CORTEX-A8  build on Jun 19 2014 18:30:
32.

正如您所看到的,gstreamer还会报告视频资源的正确持续时间(长度),但之后我无法开始播放..."播放"屏幕上显示的按钮是"灰色"并且媒体的持续时间报告为" 00:00" ...甚至点击"跟踪栏"没有产生任何结果......

屏幕上显示的内容截图如下: enter image description here

有什么想法吗?

0 个答案:

没有答案