Detailed Description
The QMediaContent class provides access to the resources relating to a media content.
QMediaContent is used within the multimedia framework as the logical handle to media content. A QMediaContent object is composed of one or more QMediaResources where each resource provides the URL and format information of a different encoding of the content.
A non-null QMediaContent will always have a primary or canonical reference to the content available through the canonicalUrl() or canonicalResource() methods, any additional resources are optional.
Member Function Documentation
QMediaContent::QMediaContent ()
Constructs a null QMediaContent.
QMediaContent::QMediaContent ( const QUrl & url )
Constructs a media content with url providing a reference to the content.
QMediaContent::QMediaContent ( const QNetworkRequest & request )
Constructs a media content with request providing a reference to the content.
This constructor can be used to reference media content via network protocols such as HTTP. This may include additional information required to obtain the resource, such as Cookies or HTTP headers.
QMediaContent::QMediaContent ( const QMediaResource & resource )
Constructs a media content with resource providing a reference to the content.
QMediaContent::QMediaContent ( const QMediaResourceList & resources )
Constructs a media content with resources providing a reference to the content.
QMediaContent::QMediaContent ( const QMediaContent & other )
Constructs a copy of the media content other.
QMediaContent::~QMediaContent ()
Destroys the media content object.
QNetworkRequest QMediaContent::canonicalRequest () const
Returns a QNetworkRequest that represents that canonical resource for this media content.
QMediaResource QMediaContent::canonicalResource () const
Returns a QMediaResource that represents that canonical resource for this media content.
QUrl QMediaContent::canonicalUrl () const
Returns a QUrl that represents that canonical resource for this media content.
bool QMediaContent::isNull () const
Returns true if this media content is null (uninitialized); false otherwise.
QMediaResourceList QMediaContent::resources () const
Returns a list of alternative resources for this media content. The first item in this list is always the canonical resource.
bool QMediaContent::operator!= ( const QMediaContent & other ) const
Returns true if other is not equivalent to this media content; false otherwise.
QMediaContent & QMediaContent::operator= ( const QMediaContent & other )
Assigns the value of other to this media content.
bool QMediaContent::operator== ( const QMediaContent & other ) const
Returns true if other is equivalent to this media content; false otherwise.