C# 클래스 SongRequest.SongPlayer.SongPlayer

상속: ISongPlayer, IDisposable
파일 보기 프로젝트 열기: Daspeed/SongRequest 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
OnLibraryStatusChanged ( string status ) : void
OnPlayerStatusChanged ( string status ) : void

비공개 메소드들

메소드 설명
ClearQueue ( ) : void

Clears queue of unavailable songs

메소드 상세

Dequeue() 공개 메소드

Dequeue song
public Dequeue ( Song song, string requester ) : void
song Song
requester string
리턴 void

Dequeue() 공개 메소드

Dequeue song
public Dequeue ( string id, string requester ) : void
id string
requester string
리턴 void

Dispose() 공개 메소드

Dispose
public Dispose ( ) : void
리턴 void

Enqueue() 공개 메소드

Enqueue song
public Enqueue ( Song song, string requesterName ) : void
song Song
requesterName string
리턴 void

Enqueue() 공개 메소드

Enqueue song
public Enqueue ( string id, string requesterName ) : void
id string
requesterName string
리턴 void

GetImageStream() 공개 메소드

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

GetPlayList() 공개 메소드

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

Next() 공개 메소드

Play next song
public Next ( string requester ) : void
requester string
리턴 void

OnLibraryStatusChanged() 보호된 메소드

protected OnLibraryStatusChanged ( string status ) : void
status string
리턴 void

OnPlayerStatusChanged() 보호된 메소드

protected OnPlayerStatusChanged ( string status ) : void
status string
리턴 void

Pause() 공개 메소드

Pause the player
public Pause ( ) : void
리턴 void

Rescan() 공개 메소드

Rescan complete library
public Rescan ( ) : void
리턴 void

SongPlayer() 공개 메소드

Constructor
public SongPlayer ( IMediaDevice mediaDevice ) : System
mediaDevice IMediaDevice
리턴 System

Update() 공개 메소드

Update method
public Update ( ) : void
리턴 void