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 a list of
15QMediaDevices may not be readily available and may take some time to request
16permissions and gather the list of devices. With Asyncify/JSPI enabled, device
17enumeration happens synchronously. Otherwise use the audioInputsChanged,
18audioOutputsChanged, and videoInputsChanged signals to react when devices become
19available.
20
21\li Camera and Microphone inputs require user permissions, and can only be used
22in a secure https context. Firefox may require permission to play video and audio.
23
24\li Using and selecting different Codecs/video formats is not currently supported.
25These in the browser are more like suggestions or a request, and may not return
26the selected codec.
27
28\li Playing data from a QIODevice (using \c {setSourceDevice(QIODevice*)}): is partially
29supported for video (entire stream (file) is read into memory at once). Not supported
30for audio. Streaming from a web URL works. Real-time data input streaming is
31not supported.
32
33\li Some advanced features such as spatial 3D audio and (Audio/Video)codecs
34are not currently supported.
35
36\li Files can be served from the/any web server, respective
37of \l{https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS}{CORS}.
38
39\li Although possible, playing large files stored in the application file system
40or in a resource package are discouraged because of the limited size of
41the browser's file storage and memory constraints.
42
43\li Issues may exist when using the Firefox browser on any platform.
44
45\endlist
46
47 */