QPlaybackOptions Class
The QPlaybackOptions class enables low-level control of media playback options. More...
| Header: | #include <QPlaybackOptions> |
| CMake: | find_package(Qt6 REQUIRED COMPONENTS Multimedia)target_link_libraries(mytarget PRIVATE Qt6::Multimedia) |
| qmake: | QT += multimedia |
| Since: | Qt 6.10 |
| In QML: | playbackOptions |
Properties
(since 6.10)networkTimeoutMs : int
Public Functions
| int | networkTimeoutMs() const |
| void | resetNetworkTimeoutMs() |
| void | setNetworkTimeoutMs(int timeout) |
Detailed Description
QPlaybackOptions gives low-level control of media playback options. Although we strongly recommend to rely on the default settings of QMediaPlayer, QPlaybackOptions can be used to optimize media playback to specific use cases where the default options are not ideal.
Note that options are hints to the media backend, and may be ignored if they are not supported by the current media format or codec.
Playback options rely on support in the media backend. Availability is documented per option.
See also QMediaPlayer.
Property Documentation
[since 6.10] networkTimeoutMs : int
Determines the network timeout (in milliseconds) used for socket I/O operations with some network formats.
This option is only supported with the FFmpeg media backend.
This property was introduced in Qt 6.10.
Access functions:
| int | networkTimeoutMs() const |
| void | setNetworkTimeoutMs(int timeout) |
| void | resetNetworkTimeoutMs() |