Class VideoMixerBlock
Video mixer block. Implements the MediaBlock. Implements the IMediaBlockInternals. Implements the IDisposable.
Inherited Members
Namespace: VisioForge.Core.MediaBlocks.VideoProcessing
Assembly: VisioForge.Core.dll
Syntax
public class VideoMixerBlock : MediaBlock, IMediaBlock, IDisposable, IVideoMixerControl, IMediaBlockInternals
Constructors
VideoMixerBlock(VideoMixerBaseSettings)
Initializes a new instance of the VideoMixerBlock class.
Declaration
public VideoMixerBlock(VideoMixerBaseSettings settings)
Parameters
Type | Name | Description |
---|---|---|
VideoMixerBaseSettings | settings | The settings. |
Properties
Input
Gets the input.
Declaration
public override MediaBlockPad Input { get; }
Property Value
Type | Description |
---|---|
MediaBlockPad | The input. |
Overrides
Inputs
Gets the inputs.
Declaration
public override MediaBlockPad[] Inputs { get; }
Property Value
Type | Description |
---|---|
MediaBlockPad[] | The inputs. |
Overrides
Output
Gets the output.
Declaration
public override MediaBlockPad Output { get; }
Property Value
Type | Description |
---|---|
MediaBlockPad | The output. |
Overrides
Outputs
Gets the outputs.
Declaration
public override MediaBlockPad[] Outputs { get; }
Property Value
Type | Description |
---|---|
MediaBlockPad[] | The outputs. |
Overrides
Settings
Gets or sets the settings.
Declaration
public VideoMixerBaseSettings Settings { get; set; }
Property Value
Type | Description |
---|---|
VideoMixerBaseSettings | The settings. |
Type
Gets the type.
Declaration
public override MediaBlockType Type { get; }
Property Value
Type | Description |
---|---|
MediaBlockType | The type. |
Overrides
Methods
AddInputPadLive()
Adds the input pad.
Declaration
public MediaBlockPad AddInputPadLive()
Returns
Type | Description |
---|---|
MediaBlockPad |
Build()
Builds this instance.
Declaration
public override bool Build()
Returns
Type | Description |
---|---|
bool |
|
Overrides
CleanUp()
Cleans up.
Declaration
public void CleanUp()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|
Overrides
GetCore()
Gets core.
Declaration
public BaseElement GetCore()
Returns
Type | Description |
---|---|
BaseElement | VisioForge.Core.GStreamer.Base.BaseElement. |
GetElement()
Gets the element.
Declaration
public Element GetElement()
Returns
Type | Description |
---|---|
Element | Gst.Element. |
Input_Get(int)
Gets the input.
Declaration
public VideoMixerStream Input_Get(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
Returns
Type | Description |
---|---|
VideoMixerStream | VideoMixerStream. |
Input_Move(int, Rect, TimeSpan, double?, double?)
Moves the input.
Declaration
public void Input_Move(int id, Rect rect, TimeSpan duration, double? startAlpha, double? endAlpha)
Parameters
Type | Name | Description |
---|---|---|
int | id | The identifier. |
Rect | rect | The rectangle. |
TimeSpan | duration | The duration. |
double? | startAlpha | The start alpha (optional). |
double? | endAlpha | The end alpha (optional). |
Input_Update(int, VideoMixerStream)
Updates the input.
Declaration
public void Input_Update(int index, VideoMixerStream stream)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index. |
VideoMixerStream | stream | The stream. |
IsAvailable()
Determines whether this media block is available. Correct NuGet SDK redist should be included into your project.
Declaration
public static bool IsAvailable()
Returns
Type | Description |
---|---|
bool |
|
SetSettings(VideoMixerBaseSettings)
Sets the settings.
Declaration
public void SetSettings(VideoMixerBaseSettings settings)
Parameters
Type | Name | Description |
---|---|---|
VideoMixerBaseSettings | settings | The settings. |
StartFadeIn(int, TimeSpan)
Starts the fade-in.
Declaration
public void StartFadeIn(int id, TimeSpan duration)
Parameters
Type | Name | Description |
---|---|---|
int | id | The identifier. |
TimeSpan | duration | The duration. |
StartFadeOut(int, TimeSpan)
Starts the fade-out.
Declaration
public void StartFadeOut(int id, TimeSpan duration)
Parameters
Type | Name | Description |
---|---|---|
int | id | The identifier. |
TimeSpan | duration | The duration. |