Class MediaControlPlaylist

Definition

Namespace:
Tizen.Multimedia.Remoting
Assembly:
Tizen.Multimedia.Remoting.dll
API Level:
5

Represents playlist for media control.

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

Constructors

View Source

MediaControlPlaylist(String)

Initializes a new instance of the MediaControlPlaylist class.

Declaration
C#
Copy
public MediaControlPlaylist(string name)
Parameters
Type Name Description
System.String name

The name of this playlist.

Exceptions
Type Condition
System.InvalidOperationException

An internal error occurs.

API Level: 5
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
System.String name

The name of this playlist.

System.Collections.Generic.Dictionary<System.String, MediaControlMetadata> metadata

The metadata of this playlist.

Exceptions
Type Condition
System.InvalidOperationException

An internal error occurs.

API Level: 5

Properties

View Source

Name

Gets or sets the name of playlist.

Declaration
C#
Copy
public string Name { get; }
Property Value
Type Description
System.String
API Level: 5
View Source

TotalCount

Gets the total number of media in this playlist.

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

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<System.String, MediaControlMetadata> metadata

The metadata of media.

Exceptions
Type Condition
System.ArgumentNullException

metadata is null.

API Level: 5
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
System.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.

API Level: 5
View Source

Dispose()

Releases the unmanaged resources used by the MediaControlPlaylist.

Declaration
C#
Copy
public void Dispose()
API Level: 5
View Source

Dispose(Boolean)

Releases the resources used by the Recorder.

Declaration
C#
Copy
protected virtual void Dispose(bool disposing)
Parameters
Type Name Description
System.Boolean disposing

true to release both managed and unmanaged resources; false to release only unmanaged resources.

API Level: 3
View Source

Finalize()

Finalizes an instance of the MediaControlPlaylist class.

Declaration
C#
Copy
protected void Finalize()
API Level: 5
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<System.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
System.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()
API Level: 5

Implements

System.IDisposable