Table of Contents

Enum DiscardMode

Namespace
VAST.Media
Assembly
VAST.Common.dll

Specifies how streams should be discarded when opening a media source.

public enum DiscardMode

Fields

AutoDiscard = 2

A source will automatically decide which streams to receive after it gets complete stream descriptor. Normally it means that the first stream of each content type will be selected, i.e. one video and one audio. The actual index of selected video or audio stream varies and depends on a protocol. Other streams will be discarded. No action from user is expected.

Disabled = 0

Stream discarding is disabled and calling Discard method will not have any effect. This is the default value.

NoDiscard = 1

No streams will be discarded after a source gets complete stream descriptor. A source will automatically proceed to receiving all streams defined by a server. No action from user is expected. This is the most bandwidth and resource hungry method.

WaitForUser = 3

A source waits for user input after it gets complete stream descriptor. When a user receives StateChanged event with the MediaState.Opened state, it should decide which streams should be received. Then the method Discard() must be called, no matter how many streams are selected. Only then a source starts receiving actual media data.