C# Class Espera.Core.Audio.YoutubeAudioPlayer

An AudioPlayer that streams songs from YouTube.
Inheritance: AudioPlayer, IVideoPlayerCallback
Show file Open project: gazwinter/Espera

Public Methods

Method Description
Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

Pause ( ) : void

Pauses the playback of the AudioPlayer.LoadedSong.

Play ( ) : void

Starts or continues the playback of the AudioPlayer.LoadedSong.

Stop ( ) : void

Stops the playback of the AudioPlayer.LoadedSong.

YoutubeAudioPlayer ( ) : System

Initializes a new instance of the YoutubeAudioPlayer class.

Protected Methods

Method Description
OnSongFinished ( EventArgs e ) : void

Raises the AudioPlayer.SongFinished event.

Method Details

Dispose() public method

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : void
return void

OnSongFinished() protected method

Raises the AudioPlayer.SongFinished event.
protected OnSongFinished ( EventArgs e ) : void
e System.EventArgs The instance containing the event data.
return void

Pause() public method

Pauses the playback of the AudioPlayer.LoadedSong.
public Pause ( ) : void
return void

Play() public method

Starts or continues the playback of the AudioPlayer.LoadedSong.
The playback couldn't be started.
public Play ( ) : void
return void

Stop() public method

Stops the playback of the AudioPlayer.LoadedSong.
public Stop ( ) : void
return void

YoutubeAudioPlayer() public method

Initializes a new instance of the YoutubeAudioPlayer class.
public YoutubeAudioPlayer ( ) : System
return System