Member Function Documentation
QMediaResource::QMediaResource ()
Constructs a null media resource.
QMediaResource::QMediaResource ( const QUrl & url, const QString & mimeType = QString() )
Constructs a media resource with the given mimeType from a url.
This function was introduced in Qt Mobility 1.0.
QMediaResource::QMediaResource ( const QNetworkRequest & request, const QString & mimeType = QString() )
Constructs a media resource with the given mimeType from a network request.
This function was introduced in Qt Mobility 1.0.
QMediaResource::QMediaResource ( const QMediaResource & other )
Constructs a copy of a media resource other.
This function was introduced in Qt Mobility 1.0.
QMediaResource::~QMediaResource ()
Destroys a media resource.
int QMediaResource::audioBitRate () const
Returns the bit rate in bits per second of a media resource's audio stream.
This may be zero if the bit rate is unknown, or the resource contains no audio stream.
This function was introduced in Qt Mobility 1.0.
See also setAudioBitRate().
QString QMediaResource::audioCodec () const
Returns the audio codec of a media resource.
This may be null if the media resource does not contain an audio stream, or the codec is unknown.
This function was introduced in Qt Mobility 1.0.
See also setAudioCodec().
int QMediaResource::channelCount () const
Returns the number of audio channels in a media resource.
This may be zero if the sample size is unknown, or the resource contains no audio stream.
This function was introduced in Qt Mobility 1.0.
See also setChannelCount().
qint64 QMediaResource::dataSize () const
Returns the size in bytes of a media resource.
This may be zero if the size is unknown.
This function was introduced in Qt Mobility 1.0.
See also setDataSize().
bool QMediaResource::isNull () const
Identifies if a media resource is null.
Returns true if the resource is null, and false otherwise.
This function was introduced in Qt Mobility 1.0.
QString QMediaResource::language () const
Returns the language of a media resource as an ISO 639-2 code.
This may be null if the language is unknown.
This function was introduced in Qt Mobility 1.0.
See also setLanguage().
QString QMediaResource::mimeType () const
Returns the MIME type of a media resource.
This may be null if the MIME type is unknown.
This function was introduced in Qt Mobility 1.0.
QNetworkRequest QMediaResource::request () const
Returns the network request associated with this media resource.
This function was introduced in Qt Mobility 1.0.
QSize QMediaResource::resolution () const
Returns the resolution in pixels of a media resource.
This may be null is the resolution is unknown, or the resource contains no pixel data (i.e. the resource is an audio stream.
This function was introduced in Qt Mobility 1.0.
See also setResolution().
int QMediaResource::sampleRate () const
Returns the audio sample rate of a media resource.
This may be zero if the sample size is unknown, or the resource contains no audio stream.
This function was introduced in Qt Mobility 1.0.
See also setSampleRate().
void QMediaResource::setAudioBitRate ( int rate )
Sets the bit rate in bits per second of a media resource's video stream.
This function was introduced in Qt Mobility 1.0.
See also audioBitRate().
void QMediaResource::setAudioCodec ( const QString & codec )
Sets the audio codec of a media resource.
This function was introduced in Qt Mobility 1.0.
See also audioCodec().
void QMediaResource::setChannelCount ( int channels )
Sets the number of audio channels in a media resource.
This function was introduced in Qt Mobility 1.0.
See also channelCount().
void QMediaResource::setDataSize ( const qint64 size )
Sets the size in bytes of a media resource.
This function was introduced in Qt Mobility 1.0.
See also dataSize().
void QMediaResource::setLanguage ( const QString & language )
Sets the language of a media resource.
This function was introduced in Qt Mobility 1.0.
See also language().
void QMediaResource::setResolution ( const QSize & resolution )
Sets the resolution in pixels of a media resource.
This function was introduced in Qt Mobility 1.0.
See also resolution().
void QMediaResource::setResolution ( int width, int height )
Sets the width and height in pixels of a media resource.
This function was introduced in Qt Mobility 1.0.
void QMediaResource::setSampleRate ( int sampleRate )
Sets the audio sampleRate of a media resource.
This function was introduced in Qt Mobility 1.0.
See also sampleRate().
void QMediaResource::setVideoBitRate ( int rate )
Sets the bit rate in bits per second of a media resource's video stream.
This function was introduced in Qt Mobility 1.0.
See also videoBitRate().
void QMediaResource::setVideoCodec ( const QString & codec )
Sets the video codec of media resource.
This function was introduced in Qt Mobility 1.0.
See also videoCodec().
QUrl QMediaResource::url () const
Returns the URL of a media resource.
This function was introduced in Qt Mobility 1.0.
int QMediaResource::videoBitRate () const
Returns the bit rate in bits per second of a media resource's video stream.
This may be zero if the bit rate is unknown, or the resource contains no video stream.
This function was introduced in Qt Mobility 1.0.
See also setVideoBitRate().
QString QMediaResource::videoCodec () const
Returns the video codec of a media resource.
This may be null if the media resource does not contain a video stream, or the codec is unknonwn.
This function was introduced in Qt Mobility 1.0.
See also setVideoCodec().
bool QMediaResource::operator!= ( const QMediaResource & other ) const
Compares a media resource to other.
Returns true if they are different, and false otherwise.
This function was introduced in Qt Mobility 1.0.
QMediaResource & QMediaResource::operator= ( const QMediaResource & other )
Assigns the value of other to a media resource.
This function was introduced in Qt Mobility 1.0.
bool QMediaResource::operator== ( const QMediaResource & other ) const
Compares a media resource to other.
Returns true if the resources are identical, and false otherwise.
This function was introduced in Qt Mobility 1.0.