Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
platform-notes-wasm.qdoc
Go to the documentation of this file.
1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5\page qtmultimedia-wasm.html
6\title Qt Multimedia on WebAssembly
7\brief Platform notes for WebAssembly
8
9This page covers the availability of Qt Multimedia features on WebAssembly.
10
11\section1 Limitations
12
13Due to the asynchronous nature of javascript, some features such as getting the list of
14QMediaDevices, will not be readily available and may take some time to request permissions and
15gather the list of devices. The audioInputsChanged, audioOutputsChanged and
16videoInputChanged signals from QMediaDevices class will be emitted when they are available.
17
18Playing video currently works by using a html 2d context, so all operations are on the CPU.
19
20Performance is acceptable, although there is a copy on every frame, so it may be
21less performant than desktop platforms when playing hi-def video.
22
23Using and selecting different Codecs/video formats have not yet been tested, but whatever
24video formats the browser supports will most likely work.
25
26Playing data from a stream (using \c {setSourceDevice(QIODevice*)}), instead
27of fetching a URL, isn't supported.
28
29Some advanced features may or may not work at this time.
30
31Files can be served from the/any web server, respective
32of \l{https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS}{CORS}. Because of
33the limited size of local file storage, playing local files is discouraged.
34
35 */