C# Class SurfaceBluetooth.ObexAudio

Inheritance: ObexItem
Afficher le fichier Open project: smalice/SurfaceWPFApp Class Usage Examples

Méthodes publiques

Свойство Type Description
AlbumArtProperty System.Windows.DependencyProperty
AudioFileProperty System.Windows.DependencyProperty
IsPlayingProperty System.Windows.DependencyProperty

Private Properties

Свойство Type Description
OnAudioFilePropertyChanged void
OnIsPlayingChanged void
PlayerMediaEnded void
Player_MediaFailed void
UpdateMediaPlayer void

Méthodes publiques

Méthode Description
Pause ( ) : void

Pause the ringtone

Play ( ) : void

Start playing the ringtone.

Stop ( ) : void

Stop playing the ringtone and restart.

WriteToStream ( Stream s ) : void

Private Methods

Méthode Description
OnAudioFilePropertyChanged ( object sender, System.Windows.DependencyPropertyChangedEventArgs args ) : void
OnIsPlayingChanged ( DependencyObject sender, System.Windows.DependencyPropertyChangedEventArgs args ) : void
PlayerMediaEnded ( object sender, EventArgs e ) : void

Handler for event sent by the WPF MediaPlayer when it reaches the end of the media.

Player_MediaFailed ( object sender, ExceptionEventArgs e ) : void
UpdateMediaPlayer ( Uri uri ) : void

Method Details

Pause() public méthode

Pause the ringtone
public Pause ( ) : void
Résultat void

Play() public méthode

Start playing the ringtone.
public Play ( ) : void
Résultat void

Stop() public méthode

Stop playing the ringtone and restart.
public Stop ( ) : void
Résultat void

WriteToStream() public méthode

public WriteToStream ( Stream s ) : void
s Stream
Résultat void

Property Details

AlbumArtProperty public_oe static_oe property

public static DependencyProperty,System.Windows AlbumArtProperty
Résultat System.Windows.DependencyProperty

AudioFileProperty public_oe static_oe property

public static DependencyProperty,System.Windows AudioFileProperty
Résultat System.Windows.DependencyProperty

IsPlayingProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsPlayingProperty
Résultat System.Windows.DependencyProperty