QMediaResource Class
The QMediaResource class provides a description of a media resource. More...
| Header: | #include <QMediaResource> |
| qmake: | QT += multimedia |
This class is obsolete. It is provided to keep old source code working. We strongly advise against using it in new code.
Related Non-Members
| typedef | QMediaResourceList |
Detailed Description
A media resource is composed of a URL containing the location of the resource and a set of properties that describe the format of the resource. The properties provide a means to assess a resource without first attempting to load it, and in situations where media be represented by multiple alternative representations provide a means to select the appropriate resource.
Media made available by a remote services can often be available in multiple encodings or quality levels, this allows a client to select an appropriate resource based on considerations such as codecs supported, network bandwidth, and display constraints. QMediaResource includes information such as the MIME type, audio and video codecs, audio and video bit rates, and resolution so these constraints and others can be evaluated.
The only mandatory property of a QMediaResource is the url().
See also QMediaContent.