C# Class SurfaceBluetooth.ObexAudio

Inheritance: ObexItem
ファイルを表示 Open project: smalice/SurfaceWPFApp Class Usage Examples

Public Properties

Property Type Description
AlbumArtProperty System.Windows.DependencyProperty
AudioFileProperty System.Windows.DependencyProperty
IsPlayingProperty System.Windows.DependencyProperty

Private Properties

Property Type Description
OnAudioFilePropertyChanged void
OnIsPlayingChanged void
PlayerMediaEnded void
Player_MediaFailed void
UpdateMediaPlayer void

Public Methods

Method 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

Method 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 method

Pause the ringtone
public Pause ( ) : void
return void

Play() public method

Start playing the ringtone.
public Play ( ) : void
return void

Stop() public method

Stop playing the ringtone and restart.
public Stop ( ) : void
return void

WriteToStream() public method

public WriteToStream ( Stream s ) : void
s Stream
return void

Property Details

AlbumArtProperty public_oe static_oe property

public static DependencyProperty,System.Windows AlbumArtProperty
return System.Windows.DependencyProperty

AudioFileProperty public_oe static_oe property

public static DependencyProperty,System.Windows AudioFileProperty
return System.Windows.DependencyProperty

IsPlayingProperty public_oe static_oe property

public static DependencyProperty,System.Windows IsPlayingProperty
return System.Windows.DependencyProperty