MediaSourceOpenMode Enumeration

The open mode for MediaSource, either Buffered or Unbuffered.

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

Syntax

'Declaration
Public Enumeration MediaSourceOpenMode
'Usage
Dim instance As MediaSourceOpenMode
public enum MediaSourceOpenMode

Members

Member name Description
Buffered Buffered mode.

The whole file is buffered in memory so, BeginPrepareSource's callback will take more time to return than in Unbuffered mode. After the BeginPrepareSource callback returns, the file can be modified. MediaSource.Close() must still be called to dispose of data in memory. Multiple Players sharing a buffered MediaSource can be started at the same time.

Unbuffered Unbuffered mode.

File is decoded by the time it plays, consuming more CPU resources than in Buffered mode. File cannot be modified until MediaSource.Close() is called. Unbuffered MediaSources cannot have more than one Player started at the same time.

See Also

Reference

Microsoft.Rtc.Collaboration.AudioVideo Namespace