Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
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
13\list
14\li Due to its asynchronous nature, some features such as getting the list of
15QMediaDevices, will not be readily available and may take some time to request permissions and
16gather the list of devices. The audioInputsChanged, audioOutputsChanged and
17videoInputChanged signals from QMediaDevices class will be emitted when they are available.
18
19\li Camera and Microphone inputs require user permissions, and can only be used in a secure https context.
20
21\li Playing video currently works by using a html 2d context, so all operations are on the CPU.
22
23\li Performance is acceptable, although there is a copy on every frame, so it may be
24less performant than desktop platforms when playing hi-def video.
25
26\li Using and selecting different Codecs/video formats is not currently supported.
27
28\li Playing data from a stream (using \c {setSourceDevice(QIODevice*)}), instead
29of fetching a URL, is not currently supported.
30
31\li Some advanced features such as spacial audio, codecs, screen and window recording
32are not currently supported.
33
34\li Files can be served from the/any web server, respective
35of \l{https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS}{CORS}.
36
37\li Although possible, playing local files stored in the application file system
38is discouraged because of the limited size of local file storage.
39
40\li Selecting encoding codecs is not possible.
41
42\li Issues may exist when using the Firefox browser on any platform.
43
44\li Due to platform limitations, QMediaDevices must be run on the main thread.
45\endlist
46
47 */