Class MediaControlPlaylist
Definition
- Namespace:
- Tizen.Multimedia.Remoting
- Assembly:
- Tizen.Multimedia.Remoting.dll
- API Level:
- 5
Represents playlist for media control.
public class MediaControlPlaylist : IDisposable
- Inheritance
-
MediaControlPlaylist
- Implements
Constructors
View SourceMediaControlPlaylist(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 |
---|---|
InvalidOperationException | An internal error occurs. |
API Level: 5
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. |
Dictionary<String, MediaControlMetadata> | metadata | The metadata of this playlist. |
Exceptions
Type | Condition |
---|---|
InvalidOperationException | An internal error occurs. |
API Level: 5
Properties
View SourceName
Gets or sets the name of playlist.
Declaration
public string Name { get; }
Property Value
Type | Description |
---|---|
String |
API Level: 5
View SourceTotalCount
Gets the total number of media in this playlist.
Declaration
public int TotalCount { get; }
Property Value
Type | Description |
---|---|
Int32 |
Methods
View SourceAddMetadata(Dictionary<String, MediaControlMetadata>)
Sets the metadata to the playlist.
Declaration
public void AddMetadata(Dictionary<string, MediaControlMetadata> metadata)
Parameters
Type | Name | Description |
---|---|---|
Dictionary<String, MediaControlMetadata> | metadata | The metadata of media. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException |
|
API Level: 5
View SourceAddMetadata(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 |
---|---|
ArgumentNullException |
|
API Level: 5
View SourceDispose()
Releases the unmanaged resources used by the MediaControlPlaylist.
Declaration
public void Dispose()
API Level: 5
View SourceDispose(Boolean)
Releases the resources used by the Recorder.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
Boolean | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
API Level: 3
View SourceFinalize()
Finalizes an instance of the MediaControlPlaylist class.
Declaration
protected void Finalize()
API Level: 5
View SourceGetMetadata()
Gets the playlist index and metadata pair.
Declaration
public Dictionary<string, MediaControlMetadata> GetMetadata()
Returns
Type | Description |
---|---|
Dictionary<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 |
---|---|
ArgumentNullException |
|
Update()
Update the playlist by latest info.
Declaration
public void Update()