C# 클래스 HanasuWP8.AudioStreamAgent.AudioTrackStreamer

A background agent that performs per-track streaming for playback
상속: AudioStreamingAgent
파일 보기 프로젝트 열기: Amrykid/Hanasu

공개 메소드들

메소드 설명
AudioTrackStreamer ( ) : IpcWrapper

보호된 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
mms_Closed ( object sender, EventArgs e ) : void
mms_Connected ( object sender, EventArgs e ) : void
mms_MetadataChanged ( object sender, System e ) : void

메소드 상세

AudioTrackStreamer() 공개 메소드

public AudioTrackStreamer ( ) : IpcWrapper
리턴 IpcWrapper

OnBeginStreaming() 보호된 메소드

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 ///
리턴 void

OnCancel() 보호된 메소드

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