AVBlocks for .NET  1.13
Audio and Video Software Development Kit
StreamInfo Class Reference

Provides properties and operations that are common for all elementary streams. More...

Inherits ICloneable.

Inherited by AudioStreamInfo, and VideoStreamInfo.

Public Member Functions

virtual object Clone ()
 Creates a deep copy of this object. More...
 
virtual void Reset ()
 Resets the stream information to its default state. More...
 

Properties

MediaType MediaType [get, set]
 Media type. More...
 
StreamType StreamType [get, set]
 The stream type. More...
 
StreamSubType StreamSubType [get, set]
 The stream subtype. More...
 
double Duration [get, set]
 The stream duration in seconds. More...
 
int ID [get, set]
 The ID of the elementary stream. More...
 
int Bitrate [get, set]
 The stream bitrate expressed in bits per second. More...
 
BitrateMode BitrateMode [get, set]
 The stream bitrate mode. More...
 

Detailed Description

Provides properties and operations that are common for all elementary streams.

AudioStreamInfo and VideoStreamInfo inherit from this class.

See Also
AudioStreamInfo, VideoStreamInfo

Member Function Documentation

virtual object Clone ( )
virtual

Creates a deep copy of this object.

Returns
A new StreamInfo object that has the same dynamic type as the cloned object.

When the object is cloned the full underlying object is copied.
For example if a StreamInfo object is actually an instance of AudioStreamInfo and is cloned, the new object is also an instance of AudioStreamInfo.

virtual void Reset ( )
virtual

Resets the stream information to its default state.

The full underlying object is reset. The media type of the stream is not changed.

Reimplemented in VideoStreamInfo, and AudioStreamInfo.

Property Documentation

int Bitrate
getset

The stream bitrate expressed in bits per second.

The stream bitrate mode.

double Duration
getset

The stream duration in seconds.

int ID
getset

The ID of the elementary stream.

Media type.

The media type of a StreamInfo object cannot be changed.

If the media type is MediaType.Audio this StreamInfo object can be safely cast to AudioStreamInfo.

If the media type is MediaType.Video this StreamInfo object can be safely cast to VideoStreamInfo.

The stream subtype.

The stream type.