Class VideoSource
Video source used in Video Edit SDK.
Inherited Members
Namespace: VisioForge.Core.Types.VideoEdit
Assembly: VisioForge.Core.dll
Syntax
public class VideoSource
Constructors
VideoSource(string, TimeSpan?, TimeSpan?, VideoEditStretchMode, int, double)
Initializes a new instance of the VideoSource class.
Declaration
public VideoSource(string filename, TimeSpan? startTime = null, TimeSpan? stopTime = null, VideoEditStretchMode stretchMode = VideoEditStretchMode.Letterbox, int streamNumber = 0, double rate = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | File name. |
| TimeSpan? | startTime | Start time (in milliseconds). Set to -1 start and stop time to add full file. |
| TimeSpan? | stopTime | Stop time (in milliseconds). Set to -1 start and stop time to add full file. |
| VideoEditStretchMode | stretchMode | Stretch mode. |
| int | streamNumber | Stream number. |
| double | rate | Playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%. . |
VideoSource(string, FileSegment[], VideoEditStretchMode, int, double)
Initializes a new instance of the VideoSource class.
Declaration
public VideoSource(string filename, FileSegment[] segments, VideoEditStretchMode stretchMode = VideoEditStretchMode.Letterbox, int streamNumber = 0, double rate = 1)
Parameters
| Type | Name | Description |
|---|---|---|
| string | filename | File name. |
| FileSegment[] | segments | Segments list. |
| VideoEditStretchMode | stretchMode | Stretch mode. |
| int | streamNumber | Stream number. |
| double | rate | Playback rate. 1.0 - 100%, 2.0 - 200%, 0.5 = 50%. . |
Properties
Filename
Gets or sets image file name.
Declaration
public string Filename { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IgnorePlaybackCheck
Gets or sets a value indicating whether to ignore file playback check.
Declaration
public bool IgnorePlaybackCheck { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
|
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 |
StretchMode
Gets or sets stretch mode.
Declaration
public VideoEditStretchMode StretchMode { get; set; }
Property Value
| Type | Description |
|---|---|
| VideoEditStretchMode |