.NET Framework Class Library for Silverlight
MediaStreamSource Members

Enables MediaElement to use a container format other than ASF.

The MediaStreamSource type exposes the following members.

Constructors

  NameDescription
Protected methodMediaStreamSourceInitializes a new instance of the MediaStreamSource class.
Top
Methods

  NameDescription
Protected methodCloseMediaCloses down the open media streams and otherwise cleans up the MediaStreamSource. The MediaElement can call this method when going through normal shutdown or as a result of an error.
Public methodEqualsDetermines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodErrorOccurredDevelopers call this method whenever an unrecoverable error has occurred in the MediaStreamSource. This will cause the MediaFailed event to be raised.
Protected methodFinalizeAllows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected methodGetDiagnosticAsyncGathers the diagnostic information requested.
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Protected methodGetSampleAsyncCauses the MediaStreamSource to prepare a MediaStreamSample describing the next media sample to be rendered by the media pipeline. This method can be responded to by both ReportGetSampleCompleted and ReportGetSampleProgress.
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Protected methodOpenMediaAsyncCollects the metadata required to instantiate a collection of MediaStreamDescription objects and then instantiates it.
Protected methodReportGetDiagnosticCompletedDevelopers call this method to pass the requested diagnostic information to the MediaElement.
Protected methodReportGetSampleCompletedDevelopers call this method to give the MediaElement a media sample to be rendered.
Protected methodReportGetSampleProgressDevelopers call this method to inform the MediaElement that it will not return a sample right now because it has dipped below its requested buffering level.
Protected methodReportOpenMediaCompletedCall this method to report to a MediaElement that a MediaStreamSource is attached to that the media has been opened and that the MediaStreamSource has descriptions for the streams of content it contains.
Protected methodReportSeekCompletedCall this method to report to a MediaElement that a MediaStreamSource is attached to that the requested Seek has now been handled.
Protected methodReportSwitchMediaStreamCompletedCall this method to report to a MediaElement that a MediaStreamSource is attached to the requested stream switch which has now been completed and that samples returned will now be from the requested stream instead of the original stream. (Note: This is meant for the multiple audio stream case (language tracks) and not the adaptive streaming case)
Protected methodSeekAsyncTakes the given offset and ensures that future calls to GetSampleAsync will be returned samples starting at that point.
Protected methodSwitchMediaStreamAsyncCalled when a stream switch is requested on the MediaElement.
Public methodToStringReturns a String that represents the current Object. (Inherited from Object.)
Top
Properties

  NameDescription
Protected propertyAudioBufferLengthGets or sets the length of the audio buffer.
Top
See Also

Reference

Tags :


Page view tracker