Class VideoFileSource
Video file source used in Video Edit SDK.
Inherited Members
Namespace: VisioForge.Core.Types.X.VideoEdit
Assembly: VisioForge.Core.dll
Syntax
public class VideoFileSource
Constructors
VideoFileSource(string, TimeSpan?, TimeSpan?, int, double)
Initializes a new instance of the VideoFileSource class.
Declaration
public VideoFileSource(string filename, TimeSpan? startTime = null, TimeSpan? stopTime = null, int streamNumber = 0, double rate = 1)
Parameters
Type | Name | Description |
---|---|---|
string | filename | File name. |
TimeSpan? | startTime | Start time. |
TimeSpan? | stopTime | Stop time. |
int | streamNumber | Stream number. |
double | rate | Playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%. . |
VideoFileSource(string, FileSegment[], int, double)
Initializes a new instance of the VideoFileSource class.
Declaration
public VideoFileSource(string filename, FileSegment[] segments, int streamNumber = 0, double rate = 1)
Parameters
Type | Name | Description |
---|---|---|
string | filename | File name. |
FileSegment[] | segments | Segments list. |
int | streamNumber | Stream number. |
double | rate | Playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%. . |
Properties
Effects
Gets the video effects.
Declaration
public List<IVideoEditXVideoEffect> Effects { get; }
Property Value
Type | Description |
---|---|
List<IVideoEditXVideoEffect> | The video effects. |
Filename
Gets or sets image file name.
Declaration
public string Filename { get; set; }
Property Value
Type | Description |
---|---|
string |
LayerID
Gets or sets the layer identifier for composition.
Declaration
public int LayerID { get; set; }
Property Value
Type | Description |
---|---|
int |
Rate
Gets or sets playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%.
Declaration
public double Rate { get; set; }
Property Value
Type | Description |
---|---|
double |
ResizeFileToAspectRatio
Gets or sets a value indicating whether file will be resized to value provided by aspect ratio tag. Disabled by default.
Declaration
public bool ResizeFileToAspectRatio { get; set; }
Property Value
Type | Description |
---|---|
bool |
Segments
Gets or sets segments list for the file.
Declaration
public FileSegment[] Segments { get; set; }
Property Value
Type | Description |
---|---|
FileSegment[] |
StreamNumber
Gets or sets stream number.
Declaration
public int StreamNumber { get; set; }
Property Value
Type | Description |
---|---|
int |