Class MediaControlPlaylist
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
Represents playlist for media control.
C#Copypublic class MediaControlPlaylist : IDisposable
- Inheritance
-
objectMediaControlPlaylist
- Implements
-
System.IDisposable
Constructors
View Source
MediaControlPlaylist(string, Dictionary<string, MediaControlMetadata>)
Initializes a new instance of the MediaControlPlaylist class.
Declaration
C#Copypublic MediaControlPlaylist(string name, Dictionary<string, MediaControlMetadata> metadata)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of this playlist. |
System.Collections.Generic.Dictionary<TKey, TValue><string, MediaControlMetadata> | metadata | The metadata of this playlist. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | An internal error occurs. |
View Source
MediaControlPlaylist(string)
Initializes a new instance of the MediaControlPlaylist class.
Declaration
C#Copypublic MediaControlPlaylist(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of this playlist. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | An internal error occurs. |
Properties
Declaration
C#Copypublic string Name { get; }
Property Value
Type | Description |
---|---|
string |
Declaration
C#Copypublic int TotalCount { get; }
Property Value
Type | Description |
---|---|
int |
Methods
View Source
AddMetadata(Dictionary<string, MediaControlMetadata>)
Sets the metadata to the playlist.
Declaration
C#Copypublic void AddMetadata(Dictionary<string, MediaControlMetadata> metadata)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<TKey, TValue><string, MediaControlMetadata> | metadata | The metadata of media. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Declaration
C#Copypublic void AddMetadata(string index, MediaControlMetadata metadata)
Parameters
Type | Name | Description |
---|---|---|
string | index | The index of media in the playlist. |
MediaControlMetadata | metadata | The metadata of media. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Declaration
C#Copypublic void Dispose()
Declaration
C#Copyprotected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
Declaration
C#Copyprotected ~MediaControlPlaylist()
Declaration
C#Copypublic Dictionary<string, MediaControlMetadata> GetMetadata()
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><string, MediaControlMetadata> | The dictionary set of index and MediaControlMetadata pair. |
Declaration
C#Copypublic MediaControlMetadata GetMetadata(string index)
Parameters
Type | Name | Description |
---|---|---|
string | index | The index of media in the playlist. |
Returns
Type | Description |
---|---|
MediaControlMetadata | A MediaControlMetadata instance. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException |
|
Declaration
C#Copypublic void Update()
Implements
System.IDisposable