The QMediaResource class provides a description of a media resource.
A media resource is composed of a URI 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 uri().
bool QMediaResource::operator!= ( const QMediaResource & other ) const
Compares a media resource to other.
Returns true if they are different, and false otherwise.
QMediaResource & QMediaResource::operator= ( const QMediaResource & other )
Assigns the value of other to a media resource.
bool QMediaResource::operator== ( const QMediaResource & other ) const
Compares a media resource to other.
Returns true if the resources are identical, and false otherwise.
Cette page est une traduction d'une page de la documentation de Qt, écrite par Nokia Corporation and/or its subsidiary(-ies). Les éventuels problèmes résultant d'une mauvaise traduction ne sont pas imputables à Nokia.
Vous avez déniché une erreur ? Un bug ? Une redirection cassée ? Ou tout autre problème, quel qu'il soit ? Ou bien vous désirez participer à ce projet de traduction ? N'hésitez pas à nous contacter
ou par MP !