MediaStreamSource Methods

July 28, 2014

The MediaStreamSource type exposes the following members.

  NameDescription
Protected method BeginDrmSetupDecryptor(Byte[], Guid) Starts the process of creating a new decryptor.
Protected method BeginDrmSetupDecryptor(Byte[], Guid, Object) Starts the process of creating a new decryptor.
Protected method CloseMedia The MediaElement can call this method when going through normal shutdown or as a result of an error. This lets the developer perform any needed cleanup of the MediaStreamSource.
Public method Equals(Object) Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method ErrorOccurred Developers call this method whenever an unrecoverable error has occurred in the MediaStreamSource. This will cause the MediaFailed event to be raised.
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Protected method GetDiagnosticAsync The MediaElement can call this method to request information about the MediaStreamSource. Developers respond to this method by calling ReportGetDiagnosticCompleted.
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Protected method GetSampleAsync The MediaElement calls this method to ask the MediaStreamSource to prepare the next MediaStreamSample of the requested stream type for the media pipeline. Developers can respond to this method by calling either ReportGetSampleCompleted or ReportGetSampleProgress.
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Protected method OpenMediaAsync The MediaElement calls this method to ask the MediaStreamSource to open the media.
Protected method ReportGetDiagnosticCompleted Developers call this method, in response to GetDiagnosticAsync, to pass the requested diagnostic information to the MediaElement.
Protected method ReportGetSampleCompleted Developers call this method in response to GetSampleAsync to give the MediaElement the next media sample to be rendered, or to report the end of a stream.
Protected method ReportGetSampleProgress Developers call this method in response to GetSampleAsync to inform the MediaElement that it will not return a sample right now, because the MediaStreamSource needs to refill its buffers, and to allow the MediaElement to transition to the Buffering state.
Protected method ReportOpenMediaCompleted Developers call this method in response to OpenMediaAsync to inform the MediaElement that the MediaStreamSource has been opened and to supply information about the streams it contains.
Protected method ReportSeekCompleted Developers call this method in response to SeekAsync to inform the MediaElement that the MediaStreamSource has finished the requested position change and that future calls to ReportGetSampleCompleted will return samples from that point in the media.
Protected method ReportSwitchMediaStreamCompleted Developers call this method in response to SwitchMediaStreamAsync to inform the MediaElement that the MediaStreamSource has completed the requested stream switch and that samples returned will now be from the requested stream instead of the original stream. Note, that this is meant for the multiple audio stream case, for example language tracks, and not the adaptive streaming case.
Protected method SeekAsync The MediaElement calls this method to ask the MediaStreamSource to seek to the nearest randomly accessible point before the specified time. Developers respond to this method by calling ReportSeekCompleted and by ensuring future calls to ReportGetSampleCompleted will return samples from that point in the media.
Protected method SwitchMediaStreamAsync Called when a stream switch is requested on the MediaElement.
Public method ToString Returns a string that represents the current object. (Inherited from Object.)
Top

Show:
© 2014 Microsoft