C# Class Plugin.MediaManager.Abstractions.Implementations.MediaManagerBase

Implementation for MediaManager
Inheritance: IMediaManager, IDisposable
Exibir arquivo Open project: martijn00/XamarinMediaManager

Private Properties

Property Type Description
AddEventHandlers void
GetMediaInformation System.Threading.Tasks.Task
OnBufferingChanged void
OnMediaFailed void
OnMediaFileChanged void
OnMediaFileFailed void
OnMediaFinished void
OnPlayingChanged void
OnStatusChanged void
RemoveEventHandlers void
SetCurrentPlayer void

Public Methods

Method Description
Dispose ( ) : void
Pause ( ) : System.Threading.Tasks.Task
Play ( IEnumerable mediaFiles ) : System.Threading.Tasks.Task

Adds all MediaFiles to the Queue and starts playing the first item

Play ( IMediaFile mediaFile ) : System.Threading.Tasks.Task

Adds MediaFile to the Queue and starts playing

Play ( string url, MediaFileType fileType ) : System.Threading.Tasks.Task
PlayByPosition ( int index ) : System.Threading.Tasks.Task
PlayNext ( ) : System.Threading.Tasks.Task
PlayPause ( ) : System.Threading.Tasks.Task
PlayPrevious ( ) : System.Threading.Tasks.Task
Seek ( System.TimeSpan position ) : System.Threading.Tasks.Task
SetOnBeforePlay ( Task>.Func beforePlay ) : void
Stop ( ) : System.Threading.Tasks.Task

Private Methods

Method Description
AddEventHandlers ( ) : void
GetMediaInformation ( IEnumerable mediaFiles ) : System.Threading.Tasks.Task
OnBufferingChanged ( object sender, BufferingChangedEventArgs e ) : void
OnMediaFailed ( object sender, MediaFailedEventArgs e ) : void
OnMediaFileChanged ( object sender, MediaFileChangedEventArgs e ) : void
OnMediaFileFailed ( object sender, MediaFileFailedEventArgs e ) : void
OnMediaFinished ( object sender, MediaFinishedEventArgs e ) : void
OnPlayingChanged ( object sender, PlayingChangedEventArgs e ) : void
OnStatusChanged ( object sender, StatusChangedEventArgs e ) : void
RemoveEventHandlers ( ) : void
SetCurrentPlayer ( MediaFileType fileType ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Pause() public method

public Pause ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Play() public method

Adds all MediaFiles to the Queue and starts playing the first item
public Play ( IEnumerable mediaFiles ) : System.Threading.Tasks.Task
mediaFiles IEnumerable
return System.Threading.Tasks.Task

Play() public method

Adds MediaFile to the Queue and starts playing
public Play ( IMediaFile mediaFile ) : System.Threading.Tasks.Task
mediaFile IMediaFile
return System.Threading.Tasks.Task

Play() public method

public Play ( string url, MediaFileType fileType ) : System.Threading.Tasks.Task
url string
fileType MediaFileType
return System.Threading.Tasks.Task

PlayByPosition() public method

public PlayByPosition ( int index ) : System.Threading.Tasks.Task
index int
return System.Threading.Tasks.Task

PlayNext() public method

public PlayNext ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

PlayPause() public method

public PlayPause ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

PlayPrevious() public method

public PlayPrevious ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

Seek() public method

public Seek ( System.TimeSpan position ) : System.Threading.Tasks.Task
position System.TimeSpan
return System.Threading.Tasks.Task

SetOnBeforePlay() public method

public SetOnBeforePlay ( Task>.Func beforePlay ) : void
beforePlay Task>.Func
return void

Stop() public method

public Stop ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task