我在iOS设备上使用Qt(特别是5.5)而不是模拟器 我只是将Video对象添加到QML代码中以播放HLS流,如下所示。
Video {
id: livePlayer
anchors.fill: parent
source: "http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8"
autoPlay: true
}
但是Qt给我回复了以下日志的错误
Failed to find shader ":/qtmultimediaquicktools/shaders/rgbvideo.vert"
Failed to find shader ":/qtmultimediaquicktools/shaders/rgbvideo.frag"
QOpenGLShader::link: "ERROR: Compiled vertex shader was corrupt.\nERROR: Compiled fragment shader was corrupt.\n"
shader compilation failed:
"ERROR: Compiled vertex shader was corrupt.\nERROR: Compiled fragment shader was corrupt.\n"
QOpenGLShader::link: "ERROR: Compiled vertex shader was corrupt.\nERROR: Compiled fragment shader was corrupt.\n"
QOpenGLShaderProgram::uniformLocation( qt_Matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( rgbTexture ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
我正在做的事情我可以 - 清洁,运行QMake,等等 - 但它没用。 给我一些帮助PLZ。
谢天谢天。
答案 0 :(得分:1)
这是Qt 5.5分支中的临时错误。
要使用当前的5.5快照修复它,请将其添加到main()
功能:
Q_INIT_RESOURCE(qtmultimediaquicktools);
此问题已在Qt的当前5.5分支find the fix here中修复,或等待下一个快照。