Class MediaBlockPad
MediaBlock pad.
Implements
Inherited Members
Namespace: VisioForge.Core.MediaBlocks
Assembly: VisioForge.Core.dll
Syntax
public class MediaBlockPad : IDisposable
Constructors
MediaBlockPad(MediaBlock, MediaBlockPadDirection, MediaBlockPadMediaType, bool)
Initializes a new instance of the MediaBlockPad class.
Declaration
public MediaBlockPad(MediaBlock block, MediaBlockPadDirection direction, MediaBlockPadMediaType mediaType, bool onDemandConnect = false)
Parameters
Type | Name | Description |
---|---|---|
MediaBlock | block | The block. |
MediaBlockPadDirection | direction | The direction. |
MediaBlockPadMediaType | mediaType | Type of the media. |
bool | onDemandConnect | if set to |
Properties
Block
Gets the block.
Declaration
public MediaBlock Block { get; }
Property Value
Type | Description |
---|---|
MediaBlock | The block. |
Direction
Gets the direction.
Declaration
public MediaBlockPadDirection Direction { get; }
Property Value
Type | Description |
---|---|
MediaBlockPadDirection | The direction. |
MediaType
Gets the media type.
Declaration
public MediaBlockPadMediaType MediaType { get; }
Property Value
Type | Description |
---|---|
MediaBlockPadMediaType | The type of the media. |
OnDemandConnect
Gets a value indicating whether pad will connect on demand after start.
Declaration
public bool OnDemandConnect { get; set; }
Property Value
Type | Description |
---|---|
bool |
Tag
Gets or sets the custom tag object for internal usage.
Declaration
public object Tag { get; set; }
Property Value
Type | Description |
---|---|
object |
Methods
BlockPadLive()
Blocks the pad in started pipeline.
Declaration
public bool BlockPadLive()
Returns
Type | Description |
---|---|
bool |
|
Connect(MediaBlockPad)
Connects the specified pad.
Declaration
public void Connect(MediaBlockPad pad)
Parameters
Type | Name | Description |
---|---|---|
MediaBlockPad | pad | The pad. |
ConnectLive(MediaBlockPad)
Links the pads in the started/paused pipeline.
Declaration
public bool ConnectLive(MediaBlockPad sinkPad)
Parameters
Type | Name | Description |
---|---|---|
MediaBlockPad | sinkPad | The sink pad. |
Returns
Type | Description |
---|---|
bool |
|
DisconnectLive(MediaBlockPad)
Unlinks the pads in the started/paused pipeline.
Declaration
public bool DisconnectLive(MediaBlockPad sinkPad)
Parameters
Type | Name | Description |
---|---|---|
MediaBlockPad | sinkPad | The sink pad. |
Returns
Type | Description |
---|---|
bool |
|
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Declaration
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing |
|
~MediaBlockPad()
Finalizes an instance of the MediaBlockPad class.
Declaration
protected ~MediaBlockPad()
GetConnectedToPad()
Gets the connected pad.
Declaration
public MediaBlockPad GetConnectedToPad()
Returns
Type | Description |
---|---|
MediaBlockPad | MediaBlockPad. |
GetInternalPad()
Gets the internal pad.
Declaration
public Pad GetInternalPad()
Returns
Type | Description |
---|---|
Pad | Gst.Pad. |
IsActive()
Determines whether this instance is active.
Declaration
public bool IsActive()
Returns
Type | Description |
---|---|
bool |
|
IsConnected()
Determines whether this pad is connected.
Declaration
public bool IsConnected()
Returns
Type | Description |
---|---|
bool |
|
IsConnectedLive()
Determines whether this pad is connected (live mode).
Declaration
public bool IsConnectedLive()
Returns
Type | Description |
---|---|
bool |
|
IsInternalPadNull()
Determines whether internal pad is null.
Declaration
public bool IsInternalPadNull()
Returns
Type | Description |
---|---|
bool |
|
SetInternalPad(Pad)
Sets the internal pad.
Declaration
public void SetInternalPad(Pad pad)
Parameters
Type | Name | Description |
---|---|---|
Pad | pad | The pad. |
ToString()
Returns a string that represents this instance.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string | A string that represents this instance. |
Overrides
UnblockPadLive()
Unblocks the pad in started pipeline.
Declaration
public bool UnblockPadLive()
Returns
Type | Description |
---|---|
bool |
|
Events
OnEOS
Occurs when EOS happens on pad. This event should be assigned before starting the pipeline.
Declaration
public event EventHandler<EventArgs> OnEOS
Event Type
Type | Description |
---|---|
EventHandler<EventArgs> |