Class MediaControlPlaylist

    Definition

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

    Represents playlist for media control.

    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
    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
    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
    public string Name { get; }
    Property Value
    Type Description
    string
    View Source

    TotalCount

    Gets the total number of media in this playlist.

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

    Methods

    View Source

    AddMetadata(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

    metadata is null.

    View Source

    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

    index or metadata is null.

    View Source

    Dispose()

    Releases the unmanaged resources used by the MediaControlPlaylist.

    Declaration
    public void Dispose()
    View Source

    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.

    View Source

    ~MediaControlPlaylist()

    Finalizes an instance of the MediaControlPlaylist class.

    Declaration
    protected ~MediaControlPlaylist()
    View Source

    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.

    View Source

    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

    index is null.

    View Source

    Update()

    Update the playlist by latest info.

    Declaration
    public void Update()

    Implements

    System.IDisposable
    • View Source
    Back to top Copyright © 2016-2024 Samsung
    Generated by DocFX