Class LVCVideoAudioInput
Live Video Compositor video/audio input. Implements the LVCInput.
Implements
Inherited Members
Namespace: VisioForge.Core.LiveVideoCompositor
Assembly: VisioForge.Core.dll
Syntax
public class LVCVideoAudioInput : LVCInput, IDisposable
Constructors
LVCVideoAudioInput(string, LiveVideoCompositor, MediaBlock, VideoFrameInfoX, AudioInfoX, Rect, bool, MediaBlock, MediaBlock, bool, bool?)
Initializes a new instance of the LVCVideoAudioInput class.
Declaration
public LVCVideoAudioInput(string name, LiveVideoCompositor compositor, MediaBlock mainBlock, VideoFrameInfoX videoInfo, AudioInfoX audioInfo, Rect rect, bool autostart, MediaBlock processingVideoBlock = null, MediaBlock processingAudioBlock = null, bool live = true, bool? customSyncFlag = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name. |
| LiveVideoCompositor | compositor | The compositor. |
| MediaBlock | mainBlock | The main block. |
| VideoFrameInfoX | videoInfo | The video frame info (width, height and frame rate are required). |
| AudioInfoX | audioInfo | The audio info (format, channels and sample rate are required). |
| Rect | rect | The rectangle. |
| bool | autostart | if set to |
| MediaBlock | processingVideoBlock | The processing video block. |
| MediaBlock | processingAudioBlock | The processing audio block. |
| bool | live | if set to |
| bool? | customSyncFlag | The custom sync flag. |
LVCVideoAudioInput(string, MediaBlock, VideoFrameInfoX, AudioInfoX, Rect, bool, MediaBlock, MediaBlock, bool, bool?)
Initializes a new instance of the LVCVideoAudioInput class.
Declaration
public LVCVideoAudioInput(string name, MediaBlock mainBlock, VideoFrameInfoX videoInfo, AudioInfoX audioInfo, Rect rect, bool autostart, MediaBlock processingVideoBlock = null, MediaBlock processingAudioBlock = null, bool live = true, bool? customSyncFlag = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | name | The name. |
| MediaBlock | mainBlock | The main block. |
| VideoFrameInfoX | videoInfo | The video frame info (width, height and frame rate are required). |
| AudioInfoX | audioInfo | The audio info (format, channels and sample rate are required). |
| Rect | rect | The rectangle. |
| bool | autostart | if set to |
| MediaBlock | processingVideoBlock | The processing video block. |
| MediaBlock | processingAudioBlock | The processing audio block. |
| bool | live | if set to |
| bool? | customSyncFlag | The custom sync flag. |
Properties
AudioID
Gets the audio identifier.
Declaration
public int AudioID { get; }
Property Value
| Type | Description |
|---|---|
| int | The audio identifier. |
Rectangle
Gets or sets the rectangle. This property is ignored if the playback is started. Use the Input_VideoStream_Update method to update the rectangle during the playback.
Declaration
public Rect Rectangle { get; set; }
Property Value
| Type | Description |
|---|---|
| Rect | The rectangle. |
VideoID
Gets the video identifier.
Declaration
public int VideoID { get; }
Property Value
| Type | Description |
|---|---|
| int | The video identifier. |
Methods
Build(int, string, int, string)
Builds.
Declaration
public override void Build(int id, string uniqueName, int id2 = -1, string uniqueName2 = null)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | The identifier. |
| string | uniqueName | The unique name 1. |
| int | id2 | The identifier 2. |
| string | uniqueName2 | The unique name 2. |
Overrides
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
|
Overrides
GetVideoInfo()
Gets the video information.
Declaration
public VideoFrameInfoX GetVideoInfo()
Returns
| Type | Description |
|---|---|
| VideoFrameInfoX | VideoFrameInfoX. |