Table of Contents

Class Element

Namespace
Gst
Assembly
Gst-1.0.dll
public class Element : Object, IObject, INotifyPropertyChanged, IDisposable, IHandle, GTypeProvider
Inheritance
Element
Implements
Derived
Inherited Members

Constructors

Element()

public Element()

Element(params ConstructArgument[])

protected Element(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

Element(IntPtr, bool)

protected Element(IntPtr ptr, bool ownedRef)

Parameters

ptr IntPtr
ownedRef bool

Fields

NoMorePadsSignal

Signal Descriptor for OnNoMorePads.

public static readonly Signal<Element> NoMorePadsSignal

Field Value

Signal<Element>

PadAddedSignal

Signal Descriptor for OnPadAdded.

public static readonly Signal<Element, Element.PadAddedSignalArgs> PadAddedSignal

Field Value

Signal<Element, Element.PadAddedSignalArgs>

PadRemovedSignal

Signal Descriptor for OnPadRemoved.

public static readonly Signal<Element, Element.PadRemovedSignalArgs> PadRemovedSignal

Field Value

Signal<Element, Element.PadRemovedSignalArgs>

Methods

AbortState()

public void AbortState()

AddPad(Pad)

public bool AddPad(Pad pad)

Parameters

pad Pad

Returns

bool

AddPropertyDeepNotifyWatch(string?, bool)

[Version("1.10")]
public ulong AddPropertyDeepNotifyWatch(string? propertyName, bool includeValue)

Parameters

propertyName string
includeValue bool

Returns

ulong

AddPropertyNotifyWatch(string?, bool)

[Version("1.10")]
public ulong AddPropertyNotifyWatch(string? propertyName, bool includeValue)

Parameters

propertyName string
includeValue bool

Returns

ulong

CallAsync(ElementCallAsyncFunc)

[Version("1.10")]
public void CallAsync(ElementCallAsyncFunc func)

Parameters

func ElementCallAsyncFunc

ChangeState(StateChange)

public StateChangeReturn ChangeState(StateChange transition)

Parameters

transition StateChange

Returns

StateChangeReturn

ContinueState(StateChangeReturn)

public StateChangeReturn ContinueState(StateChangeReturn ret)

Parameters

ret StateChangeReturn

Returns

StateChangeReturn

CreateAllPads()

public void CreateAllPads()

ForeachPad(ElementForeachPadFunc)

[Version("1.14")]
public bool ForeachPad(ElementForeachPadFunc func)

Parameters

func ElementForeachPadFunc

Returns

bool

ForeachSinkPad(ElementForeachPadFunc)

[Version("1.14")]
public bool ForeachSinkPad(ElementForeachPadFunc func)

Parameters

func ElementForeachPadFunc

Returns

bool

ForeachSrcPad(ElementForeachPadFunc)

[Version("1.14")]
public bool ForeachSrcPad(ElementForeachPadFunc func)

Parameters

func ElementForeachPadFunc

Returns

bool

GetBaseTime()

public ClockTime GetBaseTime()

Returns

ClockTime

GetBus()

public Bus? GetBus()

Returns

Bus

GetClock()

public Clock? GetClock()

Returns

Clock

GetCompatiblePad(Pad, Caps?)

public Pad? GetCompatiblePad(Pad pad, Caps? caps)

Parameters

pad Pad
caps Caps

Returns

Pad

GetCompatiblePadTemplate(PadTemplate)

public PadTemplate? GetCompatiblePadTemplate(PadTemplate compattempl)

Parameters

compattempl PadTemplate

Returns

PadTemplate

GetContext(string)

[Version("1.8")]
public Context? GetContext(string contextType)

Parameters

contextType string

Returns

Context

GetContextUnlocked(string)

[Version("1.8")]
public Context? GetContextUnlocked(string contextType)

Parameters

contextType string

Returns

Context

GetContexts()

[Version("1.8")]
public List GetContexts()

Returns

List

GetCurrentClockTime()

[Version("1.18")]
public ClockTime GetCurrentClockTime()

Returns

ClockTime

GetCurrentRunningTime()

[Version("1.18")]
public ClockTime GetCurrentRunningTime()

Returns

ClockTime

GetFactory()

public ElementFactory? GetFactory()

Returns

ElementFactory

GetGType()

public static Type GetGType()

Returns

Type

GetMetadata(string)

[Version("1.14")]
public string GetMetadata(string key)

Parameters

key string

Returns

string

GetPadTemplate(string)

[Version("1.14")]
public PadTemplate? GetPadTemplate(string name)

Parameters

name string

Returns

PadTemplate

GetPadTemplateList()

[Version("1.14")]
public List GetPadTemplateList()

Returns

List

GetRequestPad(string)

public Pad? GetRequestPad(string name)

Parameters

name string

Returns

Pad

GetStartTime()

public ClockTime GetStartTime()

Returns

ClockTime

GetStaticPad(string)

public Pad? GetStaticPad(string name)

Parameters

name string

Returns

Pad

IsLockedState()

public bool IsLockedState()

Returns

bool

IteratePads()

public Iterator IteratePads()

Returns

Iterator

IterateSinkPads()

public Iterator IterateSinkPads()

Returns

Iterator

IterateSrcPads()

public Iterator IterateSrcPads()

Returns

Iterator
public bool Link(Element dest)

Parameters

dest Element

Returns

bool

LinkFiltered(Element, Caps?)

public bool LinkFiltered(Element dest, Caps? filter)

Parameters

dest Element
filter Caps

Returns

bool

LinkPads(string?, Element, string?)

public bool LinkPads(string? srcpadname, Element dest, string? destpadname)

Parameters

srcpadname string
dest Element
destpadname string

Returns

bool

LinkPadsFiltered(string?, Element, string?, Caps?)

public bool LinkPadsFiltered(string? srcpadname, Element dest, string? destpadname, Caps? filter)

Parameters

srcpadname string
dest Element
destpadname string
filter Caps

Returns

bool

LinkPadsFull(string?, Element, string?, PadLinkCheck)

public bool LinkPadsFull(string? srcpadname, Element dest, string? destpadname, PadLinkCheck flags)

Parameters

srcpadname string
dest Element
destpadname string
flags PadLinkCheck

Returns

bool

LostState()

public void LostState()

MakeFromUri(URIType, string, string?)

public static Element MakeFromUri(URIType type, string uri, string? elementname)

Parameters

type URIType
uri string
elementname string

Returns

Element

MessageFull(MessageType, Quark, int, string?, string?, string, string, int)

public void MessageFull(MessageType type, Quark domain, int code, string? text, string? debug, string file, string function, int line)

Parameters

type MessageType
domain Quark
code int
text string
debug string
file string
function string
line int

MessageFullWithDetails(MessageType, Quark, int, string?, string?, string, string, int, Structure)

[Version("1.10")]
public void MessageFullWithDetails(MessageType type, Quark domain, int code, string? text, string? debug, string file, string function, int line, Structure structure)

Parameters

type MessageType
domain Quark
code int
text string
debug string
file string
function string
line int
structure Structure

NoMorePads()

public void NoMorePads()

PostMessage(Message)

public bool PostMessage(Message message)

Parameters

message Message

Returns

bool

ProvideClock()

public Clock? ProvideClock()

Returns

Clock

Query(Query)

public bool Query(Query query)

Parameters

query Query

Returns

bool

QueryConvert(Format, long, Format, out long)

public bool QueryConvert(Format srcFormat, long srcVal, Format destFormat, out long destVal)

Parameters

srcFormat Format
srcVal long
destFormat Format
destVal long

Returns

bool

QueryDuration(Format, out long)

public bool QueryDuration(Format format, out long duration)

Parameters

format Format
duration long

Returns

bool

QueryPosition(Format, out long)

public bool QueryPosition(Format format, out long cur)

Parameters

format Format
cur long

Returns

bool

Register(Plugin?, string, uint, Type)

public static bool Register(Plugin? plugin, string name, uint rank, Type type)

Parameters

plugin Plugin
name string
rank uint
type Type

Returns

bool

ReleaseRequestPad(Pad)

public void ReleaseRequestPad(Pad pad)

Parameters

pad Pad

RemovePad(Pad)

public bool RemovePad(Pad pad)

Parameters

pad Pad

Returns

bool

RemovePropertyNotifyWatch(ulong)

[Version("1.10")]
public void RemovePropertyNotifyWatch(ulong watchId)

Parameters

watchId ulong

RequestPad(PadTemplate, string?, Caps?)

public Pad? RequestPad(PadTemplate templ, string? name, Caps? caps)

Parameters

templ PadTemplate
name string
caps Caps

Returns

Pad

RequestPadSimple(string)

[Version("1.20")]
public Pad? RequestPadSimple(string name)

Parameters

name string

Returns

Pad

Seek(double, Format, SeekFlags, SeekType, long, SeekType, long)

public bool Seek(double rate, Format format, SeekFlags flags, SeekType startType, long start, SeekType stopType, long stop)

Parameters

rate double
format Format
flags SeekFlags
startType SeekType
start long
stopType SeekType
stop long

Returns

bool

SeekSimple(Format, SeekFlags, long)

public bool SeekSimple(Format format, SeekFlags seekFlags, long seekPos)

Parameters

format Format
seekFlags SeekFlags
seekPos long

Returns

bool

SendEvent(Event)

public bool SendEvent(Event @event)

Parameters

event Event

Returns

bool

SetBaseTime(ClockTime)

public void SetBaseTime(ClockTime time)

Parameters

time ClockTime

SetBus(Bus?)

public void SetBus(Bus? bus)

Parameters

bus Bus

SetClock(Clock?)

public bool SetClock(Clock? clock)

Parameters

clock Clock

Returns

bool

SetContext(Context)

public void SetContext(Context context)

Parameters

context Context

SetLockedState(bool)

public bool SetLockedState(bool lockedState)

Parameters

lockedState bool

Returns

bool

SetStartTime(ClockTime)

public void SetStartTime(ClockTime time)

Parameters

time ClockTime

SetState(State)

public StateChangeReturn SetState(State state)

Parameters

state State

Returns

StateChangeReturn

StateChangeReturnGetName(StateChangeReturn)

public static string StateChangeReturnGetName(StateChangeReturn stateRet)

Parameters

stateRet StateChangeReturn

Returns

string

StateGetName(State)

public static string StateGetName(State state)

Parameters

state State

Returns

string

SyncStateWithParent()

public bool SyncStateWithParent()

Returns

bool

TypeSetSkipDocumentation(Type)

[Version("1.20")]
public static void TypeSetSkipDocumentation(Type type)

Parameters

type Type
public void Unlink(Element dest)

Parameters

dest Element

UnlinkPads(string, Element, string)

public void UnlinkPads(string srcpadname, Element dest, string destpadname)

Parameters

srcpadname string
dest Element
destpadname string

Events

OnNoMorePads

public event SignalHandler<Element> OnNoMorePads

Event Type

SignalHandler<Element>

OnPadAdded

public event SignalHandler<Element, Element.PadAddedSignalArgs> OnPadAdded

Event Type

SignalHandler<Element, Element.PadAddedSignalArgs>

OnPadRemoved

public event SignalHandler<Element, Element.PadRemovedSignalArgs> OnPadRemoved

Event Type

SignalHandler<Element, Element.PadRemovedSignalArgs>