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 | 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 SourceBitrateBps
Bitrate of this stream, in bits per second.
Declaration
public ulong BitrateBps { get; protected set; }
Property Value
| Type | Description |
|---|---|
| ulong |
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 |
Channels
Number of audio channels in the stream. Zero for video streams.
Declaration
public uint Channels { get; protected set; }
Property Value
| Type | Description |
|---|---|
| uint |
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 |
CodecType
Kind of media the stream carries, e.g. "audio" or "video".
Declaration
public string CodecType { get; protected set; }
Property Value
| Type | Description |
|---|---|
| string |
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 |
DurationS
Duration of this stream, in seconds.
Declaration
public double DurationS { get; protected set; }
Property Value
| Type | Description |
|---|---|
| double |
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 |
Height
Height of the video frame, in pixels. Zero for audio streams.
Declaration
public uint Height { get; protected set; }
Property Value
| Type | Description |
|---|---|
| uint |
Index
Zero-based index of the stream within the container.
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
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 |
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 |
Width
Width of the video frame, in pixels. Zero for audio streams.
Declaration
public uint Width { get; protected set; }
Property Value
| Type | Description |
|---|---|
| uint |