C# Class Plugin.MediaManager.VideoPlayerImplementation

Inheritance: Java.Lang.Object, IVideoPlayer, MediaPlayer.IOnCompletionListener, MediaPlayer.IOnErrorListener, MediaPlayer.IOnPreparedListener, MediaPlayer.IOnInfoListener
Datei anzeigen Open project: martijn00/XamarinMediaManager

Public Properties

Property Type Description
RateObservationContext NSString
StatusObservationContext NSString
UseNativeControls bool

Private Properties

Property Type Description
CancelPlayingHandler void
InitializePlayer void
ObserveLoadedTimeRanges void
ObserveStatus void
OnMediaFailed void
OnPlaying void
OnPlayingHandler void
StartPlayingHandler void
VolumeManagerOnVolumeChanged void

Public Methods

Method Description
Init ( ) : void
ObserveValue ( NSString keyPath, NSObject ofObject, NSDictionary change, IntPtr context ) : void
OnCompletion ( Android.Media.MediaPlayer mp ) : void
OnError ( Android.Media.MediaPlayer mp, MediaError what, int extra ) : bool
OnInfo ( Android.Media.MediaPlayer mp, [ what, int extra ) : bool
OnPrepared ( Android.Media.MediaPlayer mp ) : void
Pause ( ) : System.Threading.Tasks.Task
Play ( IMediaFile mediaFile = null ) : System.Threading.Tasks.Task
Seek ( System.TimeSpan position ) : System.Threading.Tasks.Task
Stop ( ) : System.Threading.Tasks.Task
VideoPlayerImplementation ( ) : System
VideoPlayerImplementation ( IVolumeManager volumeManager ) : System

Protected Methods

Method Description
OnBufferingChanged ( BufferingChangedEventArgs e ) : void
OnMediaFailed ( MediaFailedEventArgs e ) : void
OnMediaFileChanged ( MediaFileChangedEventArgs e ) : void
OnMediaFileFailed ( MediaFileFailedEventArgs e ) : void
OnMediaFinished ( MediaFinishedEventArgs e ) : void
OnPlayingChanged ( PlayingChangedEventArgs e ) : void
OnStatusChanged ( StatusChangedEventArgs e ) : void

Private Methods

Method Description
CancelPlayingHandler ( ) : void
InitializePlayer ( ) : void
ObserveLoadedTimeRanges ( ) : void
ObserveStatus ( ) : void
OnMediaFailed ( ) : void
OnPlaying ( ) : void
OnPlayingHandler ( StatusChangedEventArgs args ) : void
StartPlayingHandler ( ) : void
VolumeManagerOnVolumeChanged ( object sender, VolumeChangedEventArgs e ) : void

Method Details

Init() public method

public Init ( ) : void
return void

ObserveValue() public method

public ObserveValue ( NSString keyPath, NSObject ofObject, NSDictionary change, IntPtr context ) : void
keyPath NSString
ofObject NSObject
change NSDictionary
context System.IntPtr
return void

OnBufferingChanged() protected method

protected OnBufferingChanged ( BufferingChangedEventArgs e ) : void
e Plugin.MediaManager.Abstractions.EventArguments.BufferingChangedEventArgs
return void

OnCompletion() public method

public OnCompletion ( Android.Media.MediaPlayer mp ) : void
mp Android.Media.MediaPlayer
return void

OnError() public method

public OnError ( Android.Media.MediaPlayer mp, MediaError what, int extra ) : bool
mp Android.Media.MediaPlayer
what MediaError
extra int
return bool

OnInfo() public method

public OnInfo ( Android.Media.MediaPlayer mp, [ what, int extra ) : bool
mp Android.Media.MediaPlayer
what [
extra int
return bool

OnMediaFailed() protected method

protected OnMediaFailed ( MediaFailedEventArgs e ) : void
e MediaFailedEventArgs
return void

OnMediaFileChanged() protected method

protected OnMediaFileChanged ( MediaFileChangedEventArgs e ) : void
e Plugin.MediaManager.Abstractions.EventArguments.MediaFileChangedEventArgs
return void

OnMediaFileFailed() protected method

protected OnMediaFileFailed ( MediaFileFailedEventArgs e ) : void
e Plugin.MediaManager.Abstractions.EventArguments.MediaFileFailedEventArgs
return void

OnMediaFinished() protected method

protected OnMediaFinished ( MediaFinishedEventArgs e ) : void
e Plugin.MediaManager.Abstractions.EventArguments.MediaFinishedEventArgs
return void

OnPlayingChanged() protected method

protected OnPlayingChanged ( PlayingChangedEventArgs e ) : void
e Plugin.MediaManager.Abstractions.EventArguments.PlayingChangedEventArgs
return void

OnPrepared() public method

public OnPrepared ( Android.Media.MediaPlayer mp ) : void
mp Android.Media.MediaPlayer
return void

OnStatusChanged() protected method

protected OnStatusChanged ( StatusChangedEventArgs e ) : void
e Plugin.MediaManager.Abstractions.EventArguments.StatusChangedEventArgs
return void

Pause() public method

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

Play() public method

public Play ( IMediaFile mediaFile = null ) : System.Threading.Tasks.Task
mediaFile IMediaFile
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

Stop() public method

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

VideoPlayerImplementation() public method

public VideoPlayerImplementation ( ) : System
return System

VideoPlayerImplementation() public method

public VideoPlayerImplementation ( IVolumeManager volumeManager ) : System
volumeManager IVolumeManager
return System

Property Details

RateObservationContext public_oe static_oe property

public static NSString RateObservationContext
return NSString

StatusObservationContext public_oe static_oe property

public static NSString StatusObservationContext
return NSString

UseNativeControls public_oe property

public bool UseNativeControls
return bool