C# Class HanasuWP8.AudioStreamAgent.AudioTrackStreamer

A background agent that performs per-track streaming for playback
Inheritance: AudioStreamingAgent
Afficher le fichier Open project: Amrykid/Hanasu

Méthodes publiques

Méthode Description
AudioTrackStreamer ( ) : IpcWrapper

Méthodes protégées

Méthode 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

Méthode 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 méthode

public AudioTrackStreamer ( ) : IpcWrapper
Résultat IpcWrapper

OnBeginStreaming() protected méthode

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 ///
Résultat void

OnCancel() protected méthode

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