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
constructArguments
ConstructArgument[]
Element(ElementHandle)
public Element(ElementHandle handle)
Parameters
handle
ElementHandle
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
pad
Pad
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
func
ElementCallAsyncFunc
ChangeState(StateChange)
public StateChangeReturn ChangeState(StateChange transition)
Parameters
transition
StateChange
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
streamId
string
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
compattempl
PadTemplate
Returns
GetContext(string)
[Version("1.8")]
public Context? GetContext(string contextType)
Parameters
contextType
string
Returns
GetContextUnlocked(string)
[Version("1.8")]
public Context? GetContextUnlocked(string contextType)
Parameters
contextType
string
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
key
string
Returns
GetPadTemplate(string)
[Version("1.14")]
public PadTemplate? GetPadTemplate(string name)
Parameters
name
string
Returns
GetPadTemplateList()
[Version("1.14")]
public List GetPadTemplateList()
Returns
GetRequestPad(string)
public Pad? GetRequestPad(string name)
Parameters
name
string
Returns
GetStartTime()
public ClockTime GetStartTime()
Returns
GetStaticPad(string)
public Pad? GetStaticPad(string name)
Parameters
name
string
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
dest
Element
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
srcpadname
stringdest
Elementdestpadname
stringflags
PadLinkCheck
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
type
MessageTypedomain
Quarkcode
inttext
stringdebug
stringfile
stringfunction
stringline
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
MessageTypedomain
Quarkcode
inttext
stringdebug
stringfile
stringfunction
stringline
intstructure
Structure
NoMorePads()
public void NoMorePads()
PostMessage(Message)
public bool PostMessage(Message message)
Parameters
message
Message
Returns
ProvideClock()
public Clock? ProvideClock()
Returns
Query(Query)
public bool Query(Query query)
Parameters
query
Query
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
pad
Pad
RemovePad(Pad)
public bool RemovePad(Pad pad)
Parameters
pad
Pad
Returns
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
PadTemplatename
stringcaps
Caps
Returns
RequestPadSimple(string)
[Version("1.20")]
public Pad? RequestPadSimple(string name)
Parameters
name
string
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
event
Event
Returns
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
SetContext(Context)
public void SetContext(Context context)
Parameters
context
Context
SetLockedState(bool)
public bool SetLockedState(bool lockedState)
Parameters
lockedState
bool
Returns
SetStartTime(ClockTime)
public void SetStartTime(ClockTime time)
Parameters
time
ClockTime
SetState(State)
public StateChangeReturn SetState(State state)
Parameters
state
State
Returns
StateChangeReturnGetName(StateChangeReturn)
public static string StateChangeReturnGetName(StateChangeReturn stateRet)
Parameters
stateRet
StateChangeReturn
Returns
StateGetName(State)
public static string StateGetName(State state)
Parameters
state
State
Returns
SyncStateWithParent()
public bool SyncStateWithParent()
Returns
TypeSetSkipDocumentation(Type)
[Version("1.20")]
public static void TypeSetSkipDocumentation(Type type)
Parameters
type
Type
Unlink(Element)
public void Unlink(Element dest)
Parameters
dest
Element
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