GData.MediaThumbnail¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
The height of the thumbnail, in pixels. |
||
r |
The time offset of the thumbnail in relation to the media object, in ms. |
||
r |
The URI of the thumbnail. |
||
r |
The width of the thumbnail, in pixels. |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class GData.MediaThumbnail(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
All the fields in the
GData.MediaThumbnail
structure are private and should never be accessed directly.- download(service, cancellable)¶
- Parameters:
service (
GData.Service
) – theGData.Service
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
for the entire download stream, orNone
- Raises:
- Returns:
a
GData.DownloadStream
to download the thumbnail with, orNone
; unref withGObject.Object.unref
()- Return type:
Downloads and returns a
GData.DownloadStream
allowing the thumbnail data represented by self to be read.To get the content type of the downloaded data,
GData.DownloadStream.get_content_type
() can be called on the returnedGData.DownloadStream
. CallingGData.DownloadStream.get_content_length
() on the stream will not return a meaningful result, however, as the stream is encoded in chunks, rather than by content length.In order to cancel the download, a
Gio.Cancellable
passed in to cancellable must be cancelled usingGio.Cancellable.cancel
(). Cancelling the individualGio.InputStream
operations on theGData.DownloadStream
will not cancel the entire download; merely the read or close operation in question. See theGData.DownloadStream
:cancellable
for more details.New in version 0.8.0.
- get_height()¶
- Returns:
the thumbnail’s height in pixels, or 0
- Return type:
Gets the
GData.MediaThumbnail
:height
property.New in version 0.4.0.
- get_time()¶
- Returns:
the thumbnail’s time offset in the media, or -1
- Return type:
Gets the
GData.MediaThumbnail
:time
property.New in version 0.4.0.
- get_uri()¶
- Returns:
the thumbnail’s URI
- Return type:
Gets the
GData.MediaThumbnail
:uri
property.New in version 0.4.0.
- get_width()¶
- Returns:
the thumbnail’s width in pixels, or 0
- Return type:
Gets the
GData.MediaThumbnail
:width
property.New in version 0.4.0.
Property Details¶
- GData.MediaThumbnail.props.height¶
-
The height of the thumbnail, in pixels.
For more information, see the Media RSS specification.
New in version 0.4.0.
- GData.MediaThumbnail.props.time¶
-
The time offset of the thumbnail in relation to the media object, in milliseconds.
For more information, see the Media RSS specification.
New in version 0.4.0.
- GData.MediaThumbnail.props.uri¶
-
The URI of the thumbnail.
For more information, see the Media RSS specification.
New in version 0.4.0.
- GData.MediaThumbnail.props.width¶
-
The width of the thumbnail, in pixels.
For more information, see the Media RSS specification.
New in version 0.4.0.