Class Element
- Namespace
- Gst
- Assembly
- Gst-1.0.dll
public class Element : Object, IDisposable, GTypeProvider, InstanceFactory
- Inheritance
-
Element
- Implements
- Derived
- Inherited Members
Constructors
Element(params ConstructArgument[])
public Element(params ConstructArgument[] constructArguments)
Parameters
constructArgumentsConstructArgument[]
Element(ElementHandle)
public Element(ElementHandle handle)
Parameters
handleElementHandle
Fields
NoMorePadsSignal
Signal Descriptor for OnNoMorePads.
public static readonly Signal<Element> NoMorePadsSignal
Field Value
PadAddedSignal
Signal Descriptor for OnPadAdded.
public static readonly Signal<Element, Element.PadAddedSignalArgs> PadAddedSignal
Field Value
PadRemovedSignal
Signal Descriptor for OnPadRemoved.
public static readonly Signal<Element, Element.PadRemovedSignalArgs> PadRemovedSignal
Field Value
Methods
AbortState()
public void AbortState()
AddPad(Pad)
public bool AddPad(Pad pad)
Parameters
padPad
Returns
AddPropertyDeepNotifyWatch(string?, bool)
[Version("1.10")]
public ulong AddPropertyDeepNotifyWatch(string? propertyName, bool includeValue)
Parameters
Returns
AddPropertyNotifyWatch(string?, bool)
[Version("1.10")]
public ulong AddPropertyNotifyWatch(string? propertyName, bool includeValue)
Parameters
Returns
CallAsync(ElementCallAsyncFunc)
[Version("1.10")]
public void CallAsync(ElementCallAsyncFunc func)
Parameters
funcElementCallAsyncFunc
ChangeState(StateChange)
public StateChangeReturn ChangeState(StateChange transition)
Parameters
transitionStateChange
Returns
ContinueState(StateChangeReturn)
public StateChangeReturn ContinueState(StateChangeReturn ret)
Parameters
Returns
CreateAllPads()
public void CreateAllPads()
DecorateStreamId(string)
[Version("1.24")]
public string DecorateStreamId(string streamId)
Parameters
streamIdstring
Returns
DecorateStreamIdPrintfValist(string, nint)
[Version("1.24")]
public string DecorateStreamIdPrintfValist(string format, nint varArgs)
Parameters
Returns
ForeachPad(ElementForeachPadFunc)
[Version("1.14")]
public bool ForeachPad(ElementForeachPadFunc func)
Parameters
Returns
ForeachSinkPad(ElementForeachPadFunc)
[Version("1.14")]
public bool ForeachSinkPad(ElementForeachPadFunc func)
Parameters
Returns
ForeachSrcPad(ElementForeachPadFunc)
[Version("1.14")]
public bool ForeachSrcPad(ElementForeachPadFunc func)
Parameters
Returns
GetBaseTime()
public ClockTime GetBaseTime()
Returns
GetBus()
public Bus? GetBus()
Returns
GetClock()
public Clock? GetClock()
Returns
GetCompatiblePad(Pad, Caps?)
public Pad? GetCompatiblePad(Pad pad, Caps? caps)
Parameters
Returns
GetCompatiblePadTemplate(PadTemplate)
public PadTemplate? GetCompatiblePadTemplate(PadTemplate compattempl)
Parameters
compattemplPadTemplate
Returns
GetContext(string)
[Version("1.8")]
public Context? GetContext(string contextType)
Parameters
contextTypestring
Returns
GetContextUnlocked(string)
[Version("1.8")]
public Context? GetContextUnlocked(string contextType)
Parameters
contextTypestring
Returns
GetContexts()
[Version("1.8")]
public List GetContexts()
Returns
GetCurrentClockTime()
[Version("1.18")]
public ClockTime GetCurrentClockTime()
Returns
GetCurrentRunningTime()
[Version("1.18")]
public ClockTime GetCurrentRunningTime()
Returns
GetFactory()
public ElementFactory? GetFactory()
Returns
GetGType()
public static Type GetGType()
Returns
GetMetadata(string)
[Version("1.14")]
public string GetMetadata(string key)
Parameters
keystring
Returns
GetPadTemplate(string)
[Version("1.14")]
public PadTemplate? GetPadTemplate(string name)
Parameters
namestring
Returns
GetPadTemplateList()
[Version("1.14")]
public List GetPadTemplateList()
Returns
GetRequestPad(string)
public Pad? GetRequestPad(string name)
Parameters
namestring
Returns
GetStartTime()
public ClockTime GetStartTime()
Returns
GetStaticPad(string)
public Pad? GetStaticPad(string name)
Parameters
namestring
Returns
IsLockedState()
public bool IsLockedState()
Returns
IteratePads()
public Iterator IteratePads()
Returns
IterateSinkPads()
public Iterator IterateSinkPads()
Returns
IterateSrcPads()
public Iterator IterateSrcPads()
Returns
Link(Element)
public bool Link(Element dest)
Parameters
destElement
Returns
LinkFiltered(Element, Caps?)
public bool LinkFiltered(Element dest, Caps? filter)
Parameters
Returns
LinkPads(string?, Element, string?)
public bool LinkPads(string? srcpadname, Element dest, string? destpadname)
Parameters
Returns
LinkPadsFiltered(string?, Element, string?, Caps?)
public bool LinkPadsFiltered(string? srcpadname, Element dest, string? destpadname, Caps? filter)
Parameters
Returns
LinkPadsFull(string?, Element, string?, PadLinkCheck)
public bool LinkPadsFull(string? srcpadname, Element dest, string? destpadname, PadLinkCheck flags)
Parameters
srcpadnamestringdestElementdestpadnamestringflagsPadLinkCheck
Returns
LostState()
public void LostState()
MakeFromUri(URIType, string, string?)
public static Element MakeFromUri(URIType type, string uri, string? elementname)
Parameters
Returns
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
typeMessageTypedomainQuarkcodeinttextstringdebugstringfilestringfunctionstringlineint
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
typeMessageTypedomainQuarkcodeinttextstringdebugstringfilestringfunctionstringlineintstructureStructure
NoMorePads()
public void NoMorePads()
PostMessage(Message)
public bool PostMessage(Message message)
Parameters
messageMessage
Returns
ProvideClock()
public Clock? ProvideClock()
Returns
Query(Query)
public bool Query(Query query)
Parameters
queryQuery
Returns
QueryConvert(Format, long, Format, out long)
public bool QueryConvert(Format srcFormat, long srcVal, Format destFormat, out long destVal)
Parameters
Returns
QueryDuration(Format, out long)
public bool QueryDuration(Format format, out long duration)
Parameters
Returns
QueryPosition(Format, out long)
public bool QueryPosition(Format format, out long cur)
Parameters
Returns
Register(Plugin?, string, uint, Type)
public static bool Register(Plugin? plugin, string name, uint rank, Type type)
Parameters
Returns
ReleaseRequestPad(Pad)
public void ReleaseRequestPad(Pad pad)
Parameters
padPad
RemovePad(Pad)
public bool RemovePad(Pad pad)
Parameters
padPad
Returns
RemovePropertyNotifyWatch(ulong)
[Version("1.10")]
public void RemovePropertyNotifyWatch(ulong watchId)
Parameters
watchIdulong
RequestPad(PadTemplate, string?, Caps?)
public Pad? RequestPad(PadTemplate templ, string? name, Caps? caps)
Parameters
templPadTemplatenamestringcapsCaps
Returns
RequestPadSimple(string)
[Version("1.20")]
public Pad? RequestPadSimple(string name)
Parameters
namestring
Returns
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
Returns
SeekSimple(Format, SeekFlags, long)
public bool SeekSimple(Format format, SeekFlags seekFlags, long seekPos)
Parameters
Returns
SendEvent(Event)
public bool SendEvent(Event @event)
Parameters
eventEvent
Returns
SetBaseTime(ClockTime)
public void SetBaseTime(ClockTime time)
Parameters
timeClockTime
SetBus(Bus?)
public void SetBus(Bus? bus)
Parameters
busBus
SetClock(Clock?)
public bool SetClock(Clock? clock)
Parameters
clockClock
Returns
SetContext(Context)
public void SetContext(Context context)
Parameters
contextContext
SetLockedState(bool)
public bool SetLockedState(bool lockedState)
Parameters
lockedStatebool
Returns
SetStartTime(ClockTime)
public void SetStartTime(ClockTime time)
Parameters
timeClockTime
SetState(State)
public StateChangeReturn SetState(State state)
Parameters
stateState
Returns
StateChangeReturnGetName(StateChangeReturn)
public static string StateChangeReturnGetName(StateChangeReturn stateRet)
Parameters
stateRetStateChangeReturn
Returns
StateGetName(State)
public static string StateGetName(State state)
Parameters
stateState
Returns
SyncStateWithParent()
public bool SyncStateWithParent()
Returns
TypeSetSkipDocumentation(Type)
[Version("1.20")]
public static void TypeSetSkipDocumentation(Type type)
Parameters
typeType
Unlink(Element)
public void Unlink(Element dest)
Parameters
destElement
UnlinkPads(string, Element, string)
public void UnlinkPads(string srcpadname, Element dest, string destpadname)
Parameters
Events
OnNoMorePads
public event SignalHandler<Element> OnNoMorePads
Event Type
OnPadAdded
public event SignalHandler<Element, Element.PadAddedSignalArgs> OnPadAdded
Event Type
OnPadRemoved
public event SignalHandler<Element, Element.PadRemovedSignalArgs> OnPadRemoved