Class MediaControlPlaylist

Definition

Namespace:
Tizen.Multimedia.Remoting
Assembly:
Tizen.Multimedia.Remoting.dll

Represents playlist for media control.

C#
Copy
public class MediaControlPlaylist : IDisposable
Inheritance
object
MediaControlPlaylist
Implements
System.IDisposable

Constructors

View Source

MediaControlPlaylist(string, Dictionary<string, MediaControlMetadata>)

Initializes a new instance of the MediaControlPlaylist class.

Declaration
C#
Copy
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.

View Source

MediaControlPlaylist(string)

Initializes a new instance of the MediaControlPlaylist class.

Declaration
C#
Copy
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 Source

Name

Gets or sets the name of playlist.

Declaration
C#
Copy
public string Name { get; }
Property Value
Type Description
string
View Source

TotalCount

Gets the total number of media in this playlist.

Declaration
C#
Copy
public int TotalCount { get; }
Property Value
Type Description
int

Methods

View Source

AddMetadata(Dictionary<string, MediaControlMetadata>)

Sets the metadata to the playlist.

Declaration
C#
Copy
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

metadata is null.

View Source

AddMetadata(string, MediaControlMetadata)

Sets the metadata to the playlist.

Declaration
C#
Copy
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

index or metadata is null.

View Source

Dispose()

Releases the unmanaged resources used by the MediaControlPlaylist.

Declaration
C#
Copy
public void Dispose()
View Source

Dispose(bool)

Releases the resources used by the Recorder.

Declaration
C#
Copy
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.

View Source

~MediaControlPlaylist()

Finalizes an instance of the MediaControlPlaylist class.

Declaration
C#
Copy
protected ~MediaControlPlaylist()
View Source

GetMetadata()

Gets the playlist index and metadata pair.

Declaration
C#
Copy
public Dictionary<string, MediaControlMetadata> GetMetadata()
Returns
Type Description
System.Collections.Generic.Dictionary<TKey, TValue><string, MediaControlMetadata>

The dictionary set of index and MediaControlMetadata pair.

View Source

GetMetadata(string)

Gets the metadata by index.

Declaration
C#
Copy
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

index is null.

View Source

Update()

Update the playlist by latest info.

Declaration
C#
Copy
public void Update()

Implements

System.IDisposable