Native Media Player
Search Results for

    Show / Hide Table of Contents

    Class MediaItem

    Inheritance
    object
    MediaItem
    Implements
    IEquatable<MediaItem>
    Namespace: Glitch9.NativeMediaPlayer
    Assembly: .dll
    Syntax
    [Serializable]
    public class MediaItem : IEquatable<MediaItem>

    Properties

    | Edit this page View Source

    AlbumArtist

    Declaration
    public string AlbumArtist { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    AlbumTitle

    Declaration
    public string AlbumTitle { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Artist

    Declaration
    public string Artist { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Artwork

    Declaration
    public Artwork Artwork { get; }
    Property Value
    Type Description
    Artwork
    | Edit this page View Source

    Genre

    Declaration
    public string Genre { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    HasValidUri

    Declaration
    public bool HasValidUri { get; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Index

    Index of the media item in the playlist

    Declaration
    public int Index { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    MediaId

    Declaration
    public string MediaId { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Metadata

    The media item's metadata

    Declaration
    public MediaMetadata Metadata { get; set; }
    Property Value
    Type Description
    MediaMetadata
    | Edit this page View Source

    PlaylistIndex

    Index of the playlist this media item belongs to

    Declaration
    public int PlaylistIndex { get; }
    Property Value
    Type Description
    int
    | Edit this page View Source

    ReleaseDate

    Declaration
    public string ReleaseDate { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    RetrieveMetadata

    Declaration
    public bool RetrieveMetadata { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    Title

    Declaration
    public string Title { get; }
    Property Value
    Type Description
    string
    | Edit this page View Source

    Uri

    The URI of the media item

    Declaration
    public MediaUri Uri { get; set; }
    Property Value
    Type Description
    MediaUri

    Methods

    | Edit this page View Source

    Create(UriType, string, string, MediaMetadata)

    Declaration
    public static MediaItem Create(UriType uriType, string relativePath, string fileUrl, MediaMetadata metadata = null)
    Parameters
    Type Name Description
    UriType uriType
    string relativePath
    string fileUrl
    MediaMetadata metadata
    Returns
    Type Description
    MediaItem
    | Edit this page View Source

    Equals(MediaItem)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(MediaItem other)
    Parameters
    Type Name Description
    MediaItem other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    | Edit this page View Source

    Equals(object)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    | Edit this page View Source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()
    | Edit this page View Source

    Local(string, MediaMetadata)

    Declaration
    public static MediaItem Local(string relativePath, MediaMetadata metadata = null)
    Parameters
    Type Name Description
    string relativePath
    MediaMetadata metadata
    Returns
    Type Description
    MediaItem
    | Edit this page View Source

    Remote(string, MediaMetadata)

    Declaration
    public static MediaItem Remote(string fileUrl, MediaMetadata metadata = null)
    Parameters
    Type Name Description
    string fileUrl
    MediaMetadata metadata
    Returns
    Type Description
    MediaItem
    | Edit this page View Source

    StreamingAsset(string, MediaMetadata)

    Declaration
    public static MediaItem StreamingAsset(string relativePath, MediaMetadata metadata = null)
    Parameters
    Type Name Description
    string relativePath
    MediaMetadata metadata
    Returns
    Type Description
    MediaItem

    Operators

    | Edit this page View Source

    operator ==(MediaItem, MediaItem)

    Declaration
    public static bool operator ==(MediaItem a, MediaItem b)
    Parameters
    Type Name Description
    MediaItem a
    MediaItem b
    Returns
    Type Description
    bool
    | Edit this page View Source

    operator !=(MediaItem, MediaItem)

    Declaration
    public static bool operator !=(MediaItem a, MediaItem b)
    Parameters
    Type Name Description
    MediaItem a
    MediaItem b
    Returns
    Type Description
    bool

    Implements

    System.IEquatable<T>

    Extension Methods

    MediaPlayerExtensions.ToPlaylist(MediaItem)
    • Edit this page
    • View Source
    In this article
    Back to top Generated by DocFX