Important: Please read the Qt Code of Conduct -

How to show streamed video?

  • Hi,

    First of all, I am completely new in the QML world and C++ (I usually use python with QT).
    I would like to display a ".ts" file in the video component of QtQuick. I tried a long time but didn't found why it doesn't work. At the beginning, I thought it was the user agent. I finally found a stream file that I can display in VLC without any problem of http-user-agent:
    The issue now is that I can't display it inside of a QML Video item. There is the error returned by QtCreator:

    [14:42:46.569] HTTPRequest figHttpRequestDidReceiveResponseCallback: no content Length received - errCode is 200
    [14:42:46.569] HTTPRequest figHTTPDumpFinalURLAndRemoteAddress: address final url
    [14:42:46.569] figHttpRequestDidReceiveResponseCallback signalled err=-12939 (kFigHTTPRequestError_ServerDoesNotSupportByteRanges) (no content length/range with byterange request) at /SourceCache/CoreMedia/CoreMedia-1562.240/Prototypes/FigHTTP/FigHTTPRequestCFURLConnection.c line 2178
    [14:42:46.569] HTTPRequest figHTTPRequestCreateErrorComment: encountered an error: byte range and no content length - error code is 200
    qml: Failed to load media

    I need your help, I hope that what I ask is clear. Thanks a lot for your help.

  • Lifetime Qt Champion

    Hi and welcome to devnet,

    What version of Qt are you using ?
    On what platform ?
    With what compiler ?

  • Hi,

    I am using Qt 5.9.2 on OSX with Clang as compiler.

  • Lifetime Qt Champion

    Did you consider using the VLC-Qt project ?

Log in to reply