Dropbox .NET SDK
Show / Hide Table of Contents

Class ApiMediaStream

A single audio or video stream within a media file.

Inheritance
object
ApiMediaStream
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Dropbox.Api.Riviera
Assembly: Dropbox.Api.dll
Syntax
public class ApiMediaStream

Constructors

View Source

ApiMediaStream(uint, string, string, ulong, double, uint, uint, double, int, string, uint, string, ulong, string)

Initializes a new instance of the ApiMediaStream class.

Declaration
public ApiMediaStream(uint index = 0, string codecType = "", string codecName = "", ulong bitrateBps = 0, double durationS = 0, uint width = 0, uint height = 0, double framesPerSecond = 0, int rotation = 0, string displayAspectRatio = "", uint channels = 0, string channelLayout = "", ulong sampleRateS = 0, string languageIso639 = "")
Parameters
Type Name Description
uint index

Zero-based index of the stream within the container.

string codecType

Kind of media the stream carries, e.g. "audio" or "video".

string codecName

Name of the codec the stream is encoded with, e.g. "h264" or "aac".

ulong bitrateBps

Bitrate of this stream, in bits per second.

double durationS

Duration of this stream, in seconds.

uint width

Width of the video frame, in pixels. Zero for audio streams.

uint height

Height of the video frame, in pixels. Zero for audio streams.

double framesPerSecond

Frame rate of the stream, in frames per second. Zero for audio streams.

int rotation

Rotation to apply on playback, in degrees, as recorded in the stream metadata. Zero for audio streams and for video that needs no rotation.

string displayAspectRatio

Aspect ratio the video should be displayed at, as a "width:height" string, e.g. "16:9". Empty for audio streams.

uint channels

Number of audio channels in the stream. Zero for video streams.

string channelLayout

Layout of the audio channels, e.g. "stereo". Empty for video streams.

ulong sampleRateS

Sample rate of the audio stream, in samples per second. Zero for video streams.

string languageIso639

ISO 639 language code for the stream, when present.

Properties

View Source

BitrateBps

Bitrate of this stream, in bits per second.

Declaration
public ulong BitrateBps { get; protected set; }
Property Value
Type Description
ulong
View Source

ChannelLayout

Layout of the audio channels, e.g. "stereo". Empty for video streams.

Declaration
public string ChannelLayout { get; protected set; }
Property Value
Type Description
string
View Source

Channels

Number of audio channels in the stream. Zero for video streams.

Declaration
public uint Channels { get; protected set; }
Property Value
Type Description
uint
View Source

CodecName

Name of the codec the stream is encoded with, e.g. "h264" or "aac".

Declaration
public string CodecName { get; protected set; }
Property Value
Type Description
string
View Source

CodecType

Kind of media the stream carries, e.g. "audio" or "video".

Declaration
public string CodecType { get; protected set; }
Property Value
Type Description
string
View Source

DisplayAspectRatio

Aspect ratio the video should be displayed at, as a "width:height" string, e.g. "16:9". Empty for audio streams.

Declaration
public string DisplayAspectRatio { get; protected set; }
Property Value
Type Description
string
View Source

DurationS

Duration of this stream, in seconds.

Declaration
public double DurationS { get; protected set; }
Property Value
Type Description
double
View Source

FramesPerSecond

Frame rate of the stream, in frames per second. Zero for audio streams.

Declaration
public double FramesPerSecond { get; protected set; }
Property Value
Type Description
double
View Source

Height

Height of the video frame, in pixels. Zero for audio streams.

Declaration
public uint Height { get; protected set; }
Property Value
Type Description
uint
View Source

Index

Zero-based index of the stream within the container.

Declaration
public uint Index { get; protected set; }
Property Value
Type Description
uint
View Source

LanguageIso639

ISO 639 language code for the stream, when present.

Declaration
public string LanguageIso639 { get; protected set; }
Property Value
Type Description
string
View Source

Rotation

Rotation to apply on playback, in degrees, as recorded in the stream metadata. Zero for audio streams and for video that needs no rotation.

Declaration
public int Rotation { get; protected set; }
Property Value
Type Description
int
View Source

SampleRateS

Sample rate of the audio stream, in samples per second. Zero for video streams.

Declaration
public ulong SampleRateS { get; protected set; }
Property Value
Type Description
ulong
View Source

Width

Width of the video frame, in pixels. Zero for audio streams.

Declaration
public uint Width { get; protected set; }
Property Value
Type Description
uint
  • View Source
In this article
Back to top Dropbox .NET SDK