Class ApiMediaStream
A single audio or video stream within a media file.
Inherited Members
Namespace: Dropbox.Api.Riviera
Assembly: Dropbox.Api.dll
Syntax
public class ApiMediaStream
Constructors
View SourceApiMediaStream(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 | The index |
| string | codecType | "audio", "video", etc. |
| string | codecName | The codec name |
| ulong | bitrateBps | The bitrate bps |
| double | durationS | The duration s |
| uint | width | Video-specific fields (zero / empty for audio streams). |
| uint | height | The height |
| double | framesPerSecond | The frames per second |
| int | rotation | The rotation |
| string | displayAspectRatio | e.g. "16:9" |
| uint | channels | Audio-specific fields (zero / empty for video streams). |
| string | channelLayout | The channel layout |
| ulong | sampleRateS | The sample rate s |
| string | languageIso639 | ISO 639 language code for the stream, when present. |
Properties
View SourceBitrateBps
Gets the bitrate bps of the api media stream
Declaration
public ulong BitrateBps { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ulong |
ChannelLayout
Gets the channel layout of the api media stream
Declaration
public string ChannelLayout { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
Channels
Audio-specific fields (zero / empty for video streams).
Declaration
public uint Channels { get; protected set; }
Property Value
| Type | Description |
|---|---|
| uint |
CodecName
Gets the codec name of the api media stream
Declaration
public string CodecName { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
CodecType
"audio", "video", etc.
Declaration
public string CodecType { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
DisplayAspectRatio
e.g. "16:9"
Declaration
public string DisplayAspectRatio { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
DurationS
Gets the duration s of the api media stream
Declaration
public double DurationS { get; protected set; }
Property Value
| Type | Description |
|---|---|
| double |
FramesPerSecond
Gets the frames per second of the api media stream
Declaration
public double FramesPerSecond { get; protected set; }
Property Value
| Type | Description |
|---|---|
| double |
Height
Gets the height of the api media stream
Declaration
public uint Height { get; protected set; }
Property Value
| Type | Description |
|---|---|
| uint |
Index
Gets the index of the api media stream
Declaration
public uint Index { get; protected set; }
Property Value
| Type | Description |
|---|---|
| uint |
LanguageIso639
ISO 639 language code for the stream, when present.
Declaration
public string LanguageIso639 { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
Rotation
Gets the rotation of the api media stream
Declaration
public int Rotation { get; protected set; }
Property Value
| Type | Description |
|---|---|
| int |
SampleRateS
Gets the sample rate s of the api media stream
Declaration
public ulong SampleRateS { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ulong |
Width
Video-specific fields (zero / empty for audio streams).
Declaration
public uint Width { get; protected set; }
Property Value
| Type | Description |
|---|---|
| uint |