Class MediaItem
Inheritance
object
MediaItem
Assembly: .dll
[Serializable]
public class MediaItem : IEquatable<MediaItem>
Properties
|
Edit this page
View Source
Declaration
public string AlbumArtist { get; }
Property Value
|
Edit this page
View Source
Declaration
public string AlbumTitle { get; }
Property Value
|
Edit this page
View Source
Declaration
public string Artist { get; }
Property Value
|
Edit this page
View Source
Declaration
public Artwork Artwork { get; }
Property Value
|
Edit this page
View Source
Declaration
public string Genre { get; }
Property Value
|
Edit this page
View Source
Declaration
public bool HasValidUri { get; }
Property Value
|
Edit this page
View Source
Index of the media item in the playlist
Declaration
public int Index { get; }
Property Value
|
Edit this page
View Source
Declaration
public string MediaId { get; }
Property Value
|
Edit this page
View Source
The media item's metadata
Declaration
public MediaMetadata Metadata { get; set; }
Property Value
|
Edit this page
View Source
Index of the playlist this media item belongs to
Declaration
public int PlaylistIndex { get; }
Property Value
|
Edit this page
View Source
Declaration
public string ReleaseDate { get; }
Property Value
|
Edit this page
View Source
Declaration
public bool RetrieveMetadata { get; set; }
Property Value
|
Edit this page
View Source
Declaration
public string Title { get; }
Property Value
|
Edit this page
View Source
The URI of the media item
Declaration
public MediaUri Uri { get; set; }
Property Value
Methods
|
Edit this page
View Source
Declaration
public static MediaItem Create(UriType uriType, string relativePath, string fileUrl, MediaMetadata metadata = null)
Parameters
Returns
|
Edit this page
View Source
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
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
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
Declaration
public static MediaItem Local(string relativePath, MediaMetadata metadata = null)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static MediaItem Remote(string fileUrl, MediaMetadata metadata = null)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static MediaItem StreamingAsset(string relativePath, MediaMetadata metadata = null)
Parameters
Returns
Operators
|
Edit this page
View Source
Declaration
public static bool operator ==(MediaItem a, MediaItem b)
Parameters
Returns
|
Edit this page
View Source
Declaration
public static bool operator !=(MediaItem a, MediaItem b)
Parameters
Returns
Implements
System.IEquatable<T>
Extension Methods