메소드 | 설명 | |
---|---|---|
AudioPlayer ( |
Creates AudioPlayer instance
|
|
Dispose ( ) : void |
Destroys player and stop audio playing or recording
|
|
getCurrentPosition ( ) : double |
Gets current position of playback
|
|
getDuration ( string filePath ) : double |
Gets the duration of the audio file
|
|
pausePlaying ( ) : void |
Pauses playing
|
|
seekToPlaying ( int milliseconds ) : void |
Seek or jump to a new time in the track
|
|
setVolume ( double vol ) : void |
Set the volume of the player
|
|
startPlaying ( string filePath ) : void |
Starts or resume playing audio file Starts or resume playing audio file
|
|
startRecording ( string filePath ) : void |
Starts recording, data is stored in memory
|
|
stopPlaying ( ) : void |
Stops playing the audio file
|
|
stopRecording ( ) : void |
Stops recording
|
메소드 | 설명 | |
---|---|---|
FinalizeXnaGameLoop ( ) : void |
Finalizes XNA game loop for microphone
|
|
InitializeXnaGameLoop ( ) : void |
Special initialization required for the microphone: XNA game loop
|
|
InvokeCallback ( int message, double value, bool removeHandler ) : void | ||
InvokeCallback ( int message, int value, bool removeHandler ) : void | ||
InvokeCallback ( int message, string value, bool removeHandler ) : void | ||
MediaEnded ( object sender, |
Callback to be invoked when playback of a media source has completed
|
|
MediaFailed ( object sender, |
Callback to be invoked when playback of a media source has failed
|
|
MediaOpened ( object sender, |
Callback to be invoked when the media source is ready for playback
|
|
SaveAudioClipToLocalStorage ( ) : void |
Writes audio data from memory to isolated storage
|
|
SetState ( int state ) : void |
Sets the state and send it to JavaScript
|
|
recorderBufferReady ( object sender, |
Copies data from recorder to memory storages and updates recording state
|
public AudioPlayer ( |
||
handler | Media object | |
id | String | player id |
리턴 | System |
public getDuration ( string filePath ) : double | ||
filePath | string | The name of the audio file |
리턴 | double |
public seekToPlaying ( int milliseconds ) : void | ||
milliseconds | int | The new track position |
리턴 | void |
public setVolume ( double vol ) : void | ||
vol | double | volume 0.0-1.0, default value is 0.5 |
리턴 | void |
public startPlaying ( string filePath ) : void | ||
filePath | string | The name of the audio file |
리턴 | void |