Table of Contents

Class BaseSrc

Namespace
GstBase
Assembly
GstBase-1.0.dll
public class BaseSrc : Element, IDisposable, NativeObject, GTypeProvider, InstanceFactory
Inheritance
BaseSrc
Implements
Derived
Inherited Members

Constructors

BaseSrc(params ConstructArgument[])

[Obsolete("Regular C# constructors on native classes will be removed in a future version. Please see the linked documentation for more details. It contains scenarios and possible solutions to prepare for the upcoming changes.", DiagnosticId = "GirCore1007", UrlFormat = "https://gircore.github.io/docs/integration/diagnostic/1007.html")]
public BaseSrc(params ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

BaseSrc(CreationData)

[Obsolete("This constructor is a workaround to keep legacy APIs alive. Do not use it.")]
protected BaseSrc(CreationData data)

Parameters

data CreationData

BaseSrc(BaseSrcHandle)

protected BaseSrc(BaseSrcHandle handle)

Parameters

handle BaseSrcHandle

Fields

AutomaticEosPropertyDefinition

public static readonly Property<bool, BaseSrc> AutomaticEosPropertyDefinition

Field Value

Property<bool, BaseSrc>

BlocksizePropertyDefinition

public static readonly Property<uint, BaseSrc> BlocksizePropertyDefinition

Field Value

Property<uint, BaseSrc>

DoTimestampPropertyDefinition

public static readonly Property<bool, BaseSrc> DoTimestampPropertyDefinition

Field Value

Property<bool, BaseSrc>

NumBuffersPropertyDefinition

public static readonly Property<int, BaseSrc> NumBuffersPropertyDefinition

Field Value

Property<int, BaseSrc>

TypefindPropertyDefinition

public static readonly Property<bool, BaseSrc> TypefindPropertyDefinition

Field Value

Property<bool, BaseSrc>

Properties

AutomaticEos

public bool AutomaticEos { get; set; }

Property Value

bool

Blocksize

public uint Blocksize { get; set; }

Property Value

uint

DoTimestamp

public bool DoTimestamp { get; set; }

Property Value

bool

NumBuffers

public int NumBuffers { get; set; }

Property Value

int

Typefind

public bool Typefind { get; set; }

Property Value

bool

Methods

GetBlocksize()

public uint GetBlocksize()

Returns

uint

GetBufferPool()

public BufferPool? GetBufferPool()

Returns

BufferPool

GetDoTimestamp()

public bool GetDoTimestamp()

Returns

bool

GetGType()

public static Type GetGType()

Returns

Type

IsAsync()

public bool IsAsync()

Returns

bool

IsLive()

public bool IsLive()

Returns

bool

Negotiate()

[Version("1.18")]
public bool Negotiate()

Returns

bool

NewFromPointer(nint, bool)

Creates a new managed BaseSrc instance for a given pointer.

public static BaseSrc NewFromPointer(nint ptr, bool ownsHandle)

Parameters

ptr nint
ownsHandle bool

Returns

BaseSrc

NewSeamlessSegment(long, long, long)

public bool NewSeamlessSegment(long start, long stop, long time)

Parameters

start long
stop long
time long

Returns

bool

NewSegment(Segment)

[Version("1.18")]
public bool NewSegment(Segment segment)

Parameters

segment Segment

Returns

bool

NewWithProperties(ConstructArgument[])

Creates a new BaseSrc and sets the properties specified by the construct arguments.

public static BaseSrc NewWithProperties(ConstructArgument[] constructArguments)

Parameters

constructArguments ConstructArgument[]

The properties to set.

Returns

BaseSrc

PushSegment(Segment)

[Version("1.24")]
public bool PushSegment(Segment segment)

Parameters

segment Segment

Returns

bool

QueryLatency(out bool, out ClockTime, out ClockTime)

public bool QueryLatency(out bool live, out ClockTime minLatency, out ClockTime maxLatency)

Parameters

live bool
minLatency ClockTime
maxLatency ClockTime

Returns

bool

SetAsync(bool)

public void SetAsync(bool async)

Parameters

async bool

SetAutomaticEos(bool)

[Version("1.4")]
public void SetAutomaticEos(bool automaticEos)

Parameters

automaticEos bool

SetBlocksize(uint)

public void SetBlocksize(uint blocksize)

Parameters

blocksize uint

SetCaps(Caps)

public bool SetCaps(Caps caps)

Parameters

caps Caps

Returns

bool

SetDoTimestamp(bool)

public void SetDoTimestamp(bool timestamp)

Parameters

timestamp bool

SetDynamicSize(bool)

public void SetDynamicSize(bool dynamic)

Parameters

dynamic bool

SetFormat(Format)

public void SetFormat(Format format)

Parameters

format Format

SetLive(bool)

public void SetLive(bool live)

Parameters

live bool

StartComplete(FlowReturn)

public void StartComplete(FlowReturn ret)

Parameters

ret FlowReturn

StartWait()

public FlowReturn StartWait()

Returns

FlowReturn

SubmitBufferList(BufferList)

[Version("1.14")]
public void SubmitBufferList(BufferList bufferList)

Parameters

bufferList BufferList

WaitPlaying()

public FlowReturn WaitPlaying()

Returns

FlowReturn