MediaSource Class

The MediaSource class is the base class for all media sources and provides an encapsulation for all media.

Inheritance Hierarchy

System.Object
  Microsoft.Rtc.Collaboration.AudioVideo.MediaSource
    Microsoft.Rtc.Collaboration.AudioVideo.WmaFileSource

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration (in Microsoft.Rtc.Collaboration.dll)

Syntax

'Declaration
Public MustInherit Class MediaSource
'Usage
Dim instance As MediaSource
public abstract class MediaSource

Remarks

MediaSource has a one-to-many relationship with Player in that one MediaSource can be attached to one or more Players, but Player can be attached to only one MediaSource. MediaSource.Close() must be called after the application is finished using the object. If Close() is not called, the underlying unmanaged object will not be disposed, causing a memory leak for the application.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

MediaSource Members

Microsoft.Rtc.Collaboration.AudioVideo Namespace