Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QtWebEngine
  4. QtWebEngine "Uncaught NotSupported Error: Failed to executed" on "MediaSource"
Forum Update on Monday, May 27th 2025

QtWebEngine "Uncaught NotSupported Error: Failed to executed" on "MediaSource"

Scheduled Pinned Locked Moved Unsolved QtWebEngine
qtwebenginechromiumvideomp4
1 Posts 1 Posters 2.3k Views
  • 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.
  • J Offline
    J Offline
    jordanbaucke
    wrote on 30 Oct 2016, 02:21 last edited by jordanbaucke
    #1

    I'm trying to build a QtWebEngine in Qt5.6.2 clang 2 panel that opens a HTML5 Media Player, so I setup my page and run it locally, and the video renders fine in various browsers.

    I than build the various examples based on QtWebEngine (which should be based on Chromium).

    When I open my page, the player starts, but no video is displayed and the application output starts throwing errors?

    js: Uncaught NotSupportedError: Failed to execute 'addSourceBuffer' on 'MediaSource': The type provided ('video/mp4; codecs="avc1.42E01E, mp4a.40.2"') is unsupported.
    

    Any ideas on how I should compile this to display my video in this player?

    Update:

    I have now found that I should be compiling with the flags:

    WEBENGINE_CONFIG+=use_proprietary_codecs
    

    I tried adding this to my qmake command in QtCreator, but this doesn't not seem to have any effect

    qmake /Users/jordanbaucke/Qt/Examples/Qt-5.6/webengine/minimal/minimal.pro -spec macx-clang CONFIG+=debug CONFIG+=x86_64 CONFIG+=qml_debug WEBENGINE_CONFIG+=use_proprietary_codecs && /usr/bin/make qmake_all
    

    I've decided to checkout QtWebKit (branch 5.6), and build from source. With the appropriate flags. If it is functional, how do I ensure that the necessary flags are compiled into when I use QtWebKit in other projects?

    Update 2

    Still no luck! I built the afromentioned QtWebKit library from source and attempted to run the demos...unfortunately they had the same result?!

    ~/Documents/workspace/qtwebengine$ ~/Qt/5.6/clang_64/bin/qmake WEBENGINE_CONFIG+=use_proprietary_codecs
    Info: creating cache file /Users/jordanbaucke/Documents/workspace/qtwebengine/.qmake.cache
    Running configure tests
    Checking for khr... no
    Checking for snappy... no
    Checking for srtp... no
    Proprietary codecs (H264, MP3).... Enabled
    Geolocation....................... Enabled
    
    1 Reply Last reply
    0

    1/1

    30 Oct 2016, 02:21

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved