C# Class SongRequest.SongPlayer.SongPlayer

Inheritance: ISongPlayer, IDisposable
Show file Open project: Daspeed/SongRequest Class Usage Examples

Public Methods

Method Description
Dequeue ( Song song, string requester ) : void

Dequeue song

Dequeue ( string id, string requester ) : void

Dequeue song

Dispose ( ) : void

Dispose

Enqueue ( Song song, string requesterName ) : void

Enqueue song

Enqueue ( string id, string requesterName ) : void

Enqueue song

GetImageStream ( string tempId, bool large ) : MemoryStream
GetPlayList ( string filter, string sortBy, bool ascending ) : IEnumerable

Get playlist

Next ( string requester ) : void

Play next song

Pause ( ) : void

Pause the player

Rescan ( ) : void

Rescan complete library

SongPlayer ( IMediaDevice mediaDevice ) : System

Constructor

Update ( ) : void

Update method

Protected Methods

Method Description
OnLibraryStatusChanged ( string status ) : void
OnPlayerStatusChanged ( string status ) : void

Private Methods

Method Description
ClearQueue ( ) : void

Clears queue of unavailable songs

Method Details

Dequeue() public method

Dequeue song
public Dequeue ( Song song, string requester ) : void
song Song
requester string
return void

Dequeue() public method

Dequeue song
public Dequeue ( string id, string requester ) : void
id string
requester string
return void

Dispose() public method

Dispose
public Dispose ( ) : void
return void

Enqueue() public method

Enqueue song
public Enqueue ( Song song, string requesterName ) : void
song Song
requesterName string
return void

Enqueue() public method

Enqueue song
public Enqueue ( string id, string requesterName ) : void
id string
requesterName string
return void

GetImageStream() public method

public GetImageStream ( string tempId, bool large ) : MemoryStream
tempId string
large bool
return System.IO.MemoryStream

GetPlayList() public method

Get playlist
public GetPlayList ( string filter, string sortBy, bool ascending ) : IEnumerable
filter string
sortBy string
ascending bool
return IEnumerable

Next() public method

Play next song
public Next ( string requester ) : void
requester string
return void

OnLibraryStatusChanged() protected method

protected OnLibraryStatusChanged ( string status ) : void
status string
return void

OnPlayerStatusChanged() protected method

protected OnPlayerStatusChanged ( string status ) : void
status string
return void

Pause() public method

Pause the player
public Pause ( ) : void
return void

Rescan() public method

Rescan complete library
public Rescan ( ) : void
return void

SongPlayer() public method

Constructor
public SongPlayer ( IMediaDevice mediaDevice ) : System
mediaDevice IMediaDevice
return System

Update() public method

Update method
public Update ( ) : void
return void