GUPnPAV.MediaCollection¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
The author of this collection |
||
w/co |
Data to construct the playlist from |
||
r |
The mutability of this collection |
||
r/w/c |
The title of this collection |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class GUPnPAV.MediaCollection(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
A new
GUPnPAV.MediaCollection
.- Return type:
Create a new writable media collection.
- classmethod new_from_string(data)¶
- Parameters:
data (
str
) – XML string.- Returns:
A new
GUPnPAV.MediaCollection
.- Return type:
Parse a new
GUPnPAV.MediaCollection
from a block of XML data.
- add_item()¶
- Returns:
A new
GUPnPAV.DIDLLiteItem
object. Unref after use.- Return type:
- get_items()¶
- Returns:
A
GLib.List
containing the elemens of this collection, in proper order. Unref all items and free the list after use.- Return type:
- get_string()¶
- get_title()¶
- set_author(author)¶
- Parameters:
author (
str
) – New author of this media collection.
Set the author of the media collection
- set_title(title)¶
- Parameters:
title (
str
) – New Title of this collection;
Set the title of a
GUPnPAV.MediaCollection
.
Property Details¶
- GUPnPAV.MediaCollection.props.author¶
-
The author of this media collection.
- GUPnPAV.MediaCollection.props.data¶
- Name:
data
- Type:
- Default Value:
- Flags:
Block of data to parse a collection from. If data is set upon construction it will override the other properties and create a unmutable collection parsed from data.
- GUPnPAV.MediaCollection.props.mutable¶
-
Whether this media collation is modifyable or not.