Class MediaControlPlaylist
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
Represents playlist for media control.
public class MediaControlPlaylist : IDisposable
- Inheritance
-
objectMediaControlPlaylist
- Implements
-
System.IDisposable
Constructors
View SourceMediaControlPlaylist(string, Dictionary<string, MediaControlMetadata>)
Initializes a new instance of the MediaControlPlaylist class.
Declaration
public 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. |
MediaControlPlaylist(string)
Initializes a new instance of the MediaControlPlaylist class.
Declaration
public MediaControlPlaylist(string name)
Parameters
Type | Name | Description |
---|---|---|
string | name | The name of this playlist. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | An internal error occurs. |
Properties
View SourceName
Gets or sets the name of playlist.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
string |
TotalCount
Gets the total number of media in this playlist.
Declaration
public int TotalCount { get; }
Property Value
Type | Description |
---|---|
int |
Methods
View SourceAddMetadata(Dictionary<string, MediaControlMetadata>)
Sets the metadata to the playlist.
Declaration
public 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 |
|
AddMetadata(string, MediaControlMetadata)
Sets the metadata to the playlist.
Declaration
public 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 |
|
Dispose()
Releases the unmanaged resources used by the MediaControlPlaylist.
Declaration
public void Dispose()
Dispose(bool)
Releases the resources used by the Recorder.
Declaration
protected 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. |
~MediaControlPlaylist()
Finalizes an instance of the MediaControlPlaylist class.
Declaration
protected ~MediaControlPlaylist()
GetMetadata()
Gets the playlist index and metadata pair.
Declaration
public Dictionary<string, MediaControlMetadata> GetMetadata()
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<TKey, TValue><string, MediaControlMetadata> | The dictionary set of index and MediaControlMetadata pair. |
GetMetadata(string)
Gets the metadata by index.
Declaration
public 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 |
|
Update()
Update the playlist by lastest info.
Declaration
public void Update()