C# Class HanasuWP8.AudioStreamAgent.AudioTrackStreamer

A background agent that performs per-track streaming for playback
Inheritance: AudioStreamingAgent
ファイルを表示 Open project: Amrykid/Hanasu

Public Methods

Method Description
AudioTrackStreamer ( ) : IpcWrapper

Protected Methods

Method Description
OnBeginStreaming ( AudioTrack track, AudioStreamer streamer ) : void

Called when a new track requires audio decoding (typically because it is about to start playing)

To invoke this method for a track set the Source parameter of the AudioTrack to null before setting into the Track property of the BackgroundAudioPlayer instance property set to true; otherwise it is assumed that the system will perform all streaming and decoding

OnCancel ( ) : void

Called when the agent request is getting cancelled The call to base.OnCancel() is necessary to release the background streaming resources

Private Methods

Method Description
mms_Closed ( object sender, EventArgs e ) : void
mms_Connected ( object sender, EventArgs e ) : void
mms_MetadataChanged ( object sender, System e ) : void

Method Details

AudioTrackStreamer() public method

public AudioTrackStreamer ( ) : IpcWrapper
return IpcWrapper

OnBeginStreaming() protected method

Called when a new track requires audio decoding (typically because it is about to start playing)
To invoke this method for a track set the Source parameter of the AudioTrack to null before setting into the Track property of the BackgroundAudioPlayer instance property set to true; otherwise it is assumed that the system will perform all streaming and decoding
protected OnBeginStreaming ( AudioTrack track, AudioStreamer streamer ) : void
track AudioTrack /// The track that needs audio streaming ///
streamer AudioStreamer /// The AudioStreamer object to which a MediaStreamSource should be /// attached to commence playback ///
return void

OnCancel() protected method

Called when the agent request is getting cancelled The call to base.OnCancel() is necessary to release the background streaming resources
protected OnCancel ( ) : void
return void