Table of Contents

Class Event

Namespace
Gst.Internal
Assembly
Gst-1.0.dll
public class Event
Inheritance
Event
Inherited Members

Methods

CopySegment(EventHandle, SegmentHandle)

Calls native method gst_event_copy_segment.

public static extern void CopySegment(EventHandle @event, SegmentHandle segment)

Parameters

event EventHandle
segment SegmentHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function gst_event_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

GetRunningTimeOffset(EventHandle)

Calls native method gst_event_get_running_time_offset. Version: 1.4

[Version("1.4")]
public static extern long GetRunningTimeOffset(EventHandle @event)

Parameters

event EventHandle

Returns

long

Transfer ownership: None Nullable: False

GetSeqnum(EventHandle)

Calls native method gst_event_get_seqnum.

public static extern uint GetSeqnum(EventHandle @event)

Parameters

event EventHandle

Returns

uint

Transfer ownership: None Nullable: False

GetStructure(EventHandle)

Calls native method gst_event_get_structure.

public static extern StructureUnownedHandle GetStructure(EventHandle @event)

Parameters

event EventHandle

Returns

StructureUnownedHandle

Transfer ownership: None Nullable: True

HasName(EventHandle, NonNullableUtf8StringHandle)

Calls native method gst_event_has_name.

public static extern bool HasName(EventHandle @event, NonNullableUtf8StringHandle name)

Parameters

event EventHandle
name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

HasNameId(EventHandle, Quark)

Calls native method gst_event_has_name_id. Version: 1.18

[Version("1.18")]
public static extern bool HasNameId(EventHandle @event, Quark name)

Parameters

event EventHandle
name Quark

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

NewBufferSize(Format, long, long, bool)

Calls native constructor gst_event_new_buffer_size.

public static extern EventOwnedHandle NewBufferSize(Format format, long minsize, long maxsize, bool async)

Parameters

format Format

Transfer ownership: None Nullable: False

minsize long

Transfer ownership: None Nullable: False

maxsize long

Transfer ownership: None Nullable: False

async bool

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewCaps(CapsHandle)

Calls native constructor gst_event_new_caps.

public static extern EventOwnedHandle NewCaps(CapsHandle caps)

Parameters

caps CapsHandle

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewCustom(EventType, StructureUnownedHandle)

Calls native constructor gst_event_new_custom.

public static extern EventOwnedHandle NewCustom(EventType type, StructureUnownedHandle structure)

Parameters

type EventType

Transfer ownership: None Nullable: False

structure StructureUnownedHandle

Transfer ownership: Full Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewEos()

Calls native constructor gst_event_new_eos.

public static extern EventOwnedHandle NewEos()

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewFlushStart()

Calls native constructor gst_event_new_flush_start.

public static extern EventOwnedHandle NewFlushStart()

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewFlushStop(bool)

Calls native constructor gst_event_new_flush_stop.

public static extern EventOwnedHandle NewFlushStop(bool resetTime)

Parameters

resetTime bool

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewGap(ClockTime, ClockTime)

Calls native constructor gst_event_new_gap.

public static extern EventOwnedHandle NewGap(ClockTime timestamp, ClockTime duration)

Parameters

timestamp ClockTime

Transfer ownership: None Nullable: False

duration ClockTime

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewInstantRateChange(double, SegmentFlags)

Calls native constructor gst_event_new_instant_rate_change. Version: 1.18

[Version("1.18")]
public static extern EventOwnedHandle NewInstantRateChange(double rateMultiplier, SegmentFlags newFlags)

Parameters

rateMultiplier double

Transfer ownership: None Nullable: False

newFlags SegmentFlags

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewInstantRateSyncTime(double, ClockTime, ClockTime)

Calls native constructor gst_event_new_instant_rate_sync_time. Version: 1.18

[Version("1.18")]
public static extern EventOwnedHandle NewInstantRateSyncTime(double rateMultiplier, ClockTime runningTime, ClockTime upstreamRunningTime)

Parameters

rateMultiplier double

Transfer ownership: None Nullable: False

runningTime ClockTime

Transfer ownership: None Nullable: False

upstreamRunningTime ClockTime

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewLatency(ClockTime)

Calls native constructor gst_event_new_latency.

public static extern EventOwnedHandle NewLatency(ClockTime latency)

Parameters

latency ClockTime

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewNavigation(StructureUnownedHandle)

Calls native constructor gst_event_new_navigation.

public static extern EventOwnedHandle NewNavigation(StructureUnownedHandle structure)

Parameters

structure StructureUnownedHandle

Transfer ownership: Full Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewProtection(NonNullableUtf8StringHandle, BufferHandle, NonNullableUtf8StringHandle)

Calls native constructor gst_event_new_protection. Version: 1.6

[Version("1.6")]
public static extern EventOwnedHandle NewProtection(NonNullableUtf8StringHandle systemId, BufferHandle data, NonNullableUtf8StringHandle origin)

Parameters

systemId NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

data BufferHandle

Transfer ownership: None Nullable: False

origin NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewQos(QOSType, double, ClockTimeDiff, ClockTime)

Calls native constructor gst_event_new_qos.

public static extern EventOwnedHandle NewQos(QOSType type, double proportion, ClockTimeDiff diff, ClockTime timestamp)

Parameters

type QOSType

Transfer ownership: None Nullable: False

proportion double

Transfer ownership: None Nullable: False

diff ClockTimeDiff

Transfer ownership: None Nullable: False

timestamp ClockTime

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewReconfigure()

Calls native constructor gst_event_new_reconfigure.

public static extern EventOwnedHandle NewReconfigure()

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

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

Calls native constructor gst_event_new_seek.

public static extern EventOwnedHandle NewSeek(double rate, Format format, SeekFlags flags, SeekType startType, long start, SeekType stopType, long stop)

Parameters

rate double

Transfer ownership: None Nullable: False

format Format

Transfer ownership: None Nullable: False

flags SeekFlags

Transfer ownership: None Nullable: False

startType SeekType

Transfer ownership: None Nullable: False

start long

Transfer ownership: None Nullable: False

stopType SeekType

Transfer ownership: None Nullable: False

stop long

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewSegment(SegmentHandle)

Calls native constructor gst_event_new_segment.

public static extern EventOwnedHandle NewSegment(SegmentHandle segment)

Parameters

segment SegmentHandle

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewSegmentDone(Format, long)

Calls native constructor gst_event_new_segment_done.

public static extern EventOwnedHandle NewSegmentDone(Format format, long position)

Parameters

format Format

Transfer ownership: None Nullable: False

position long

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewSelectStreams(ListHandle)

Calls native constructor gst_event_new_select_streams. Version: 1.10

[Version("1.10")]
public static extern EventOwnedHandle NewSelectStreams(ListHandle streams)

Parameters

streams ListHandle

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewSinkMessage(NonNullableUtf8StringHandle, MessageHandle)

Calls native constructor gst_event_new_sink_message.

public static extern EventOwnedHandle NewSinkMessage(NonNullableUtf8StringHandle name, MessageHandle msg)

Parameters

name NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

msg MessageHandle

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewStep(Format, ulong, double, bool, bool)

Calls native constructor gst_event_new_step.

public static extern EventOwnedHandle NewStep(Format format, ulong amount, double rate, bool flush, bool intermediate)

Parameters

format Format

Transfer ownership: None Nullable: False

amount ulong

Transfer ownership: None Nullable: False

rate double

Transfer ownership: None Nullable: False

flush bool

Transfer ownership: None Nullable: False

intermediate bool

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewStreamCollection(IntPtr)

Calls native constructor gst_event_new_stream_collection. Version: 1.10

[Version("1.10")]
public static extern EventOwnedHandle NewStreamCollection(IntPtr collection)

Parameters

collection IntPtr

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewStreamGroupDone(uint)

Calls native constructor gst_event_new_stream_group_done. Version: 1.10

[Version("1.10")]
public static extern EventOwnedHandle NewStreamGroupDone(uint groupId)

Parameters

groupId uint

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewStreamStart(NonNullableUtf8StringHandle)

Calls native constructor gst_event_new_stream_start.

public static extern EventOwnedHandle NewStreamStart(NonNullableUtf8StringHandle streamId)

Parameters

streamId NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewTag(TagListUnownedHandle)

Calls native constructor gst_event_new_tag.

public static extern EventOwnedHandle NewTag(TagListUnownedHandle taglist)

Parameters

taglist TagListUnownedHandle

Transfer ownership: Full Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewToc(TocHandle, bool)

Calls native constructor gst_event_new_toc.

public static extern EventOwnedHandle NewToc(TocHandle toc, bool updated)

Parameters

toc TocHandle

Transfer ownership: None Nullable: False

updated bool

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

NewTocSelect(NonNullableUtf8StringHandle)

Calls native constructor gst_event_new_toc_select.

public static extern EventOwnedHandle NewTocSelect(NonNullableUtf8StringHandle uid)

Parameters

uid NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

EventOwnedHandle

Transfer ownership: Full Nullable: False

ParseBufferSize(EventHandle, out IntPtr, out long, out long, out bool)

Calls native method gst_event_parse_buffer_size.

public static extern void ParseBufferSize(EventHandle @event, out IntPtr format, out long minsize, out long maxsize, out bool async)

Parameters

event EventHandle
format IntPtr

Transfer ownership: Full Nullable: False

minsize long

Transfer ownership: Full Nullable: False

maxsize long

Transfer ownership: Full Nullable: False

async bool

Transfer ownership: Full Nullable: False

ParseFlushStop(EventHandle, out bool)

Calls native method gst_event_parse_flush_stop.

public static extern void ParseFlushStop(EventHandle @event, out bool resetTime)

Parameters

event EventHandle
resetTime bool

Transfer ownership: Full Nullable: False

ParseGap(EventHandle, out ClockTime, out ClockTime)

Calls native method gst_event_parse_gap.

public static extern void ParseGap(EventHandle @event, out ClockTime timestamp, out ClockTime duration)

Parameters

event EventHandle
timestamp ClockTime

Transfer ownership: Full Nullable: False

duration ClockTime

Transfer ownership: Full Nullable: False

ParseGapFlags(EventHandle, out GapFlags)

Calls native method gst_event_parse_gap_flags. Version: 1.20

[Version("1.20")]
public static extern void ParseGapFlags(EventHandle @event, out GapFlags flags)

Parameters

event EventHandle
flags GapFlags

Transfer ownership: Full Nullable: False

ParseGroupId(EventHandle, out uint)

Calls native method gst_event_parse_group_id. Version: 1.2

[Version("1.2")]
public static extern bool ParseGroupId(EventHandle @event, out uint groupId)

Parameters

event EventHandle
groupId uint

Transfer ownership: Full Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

ParseInstantRateChange(EventHandle, out double, out SegmentFlags)

Calls native method gst_event_parse_instant_rate_change. Version: 1.18

[Version("1.18")]
public static extern void ParseInstantRateChange(EventHandle @event, out double rateMultiplier, out SegmentFlags newFlags)

Parameters

event EventHandle
rateMultiplier double

Transfer ownership: Full Nullable: False

newFlags SegmentFlags

Transfer ownership: Full Nullable: False

ParseInstantRateSyncTime(EventHandle, out double, out ClockTime, out ClockTime)

Calls native method gst_event_parse_instant_rate_sync_time. Version: 1.18

[Version("1.18")]
public static extern void ParseInstantRateSyncTime(EventHandle @event, out double rateMultiplier, out ClockTime runningTime, out ClockTime upstreamRunningTime)

Parameters

event EventHandle
rateMultiplier double

Transfer ownership: Full Nullable: False

runningTime ClockTime

Transfer ownership: Full Nullable: False

upstreamRunningTime ClockTime

Transfer ownership: Full Nullable: False

ParseLatency(EventHandle, out ClockTime)

Calls native method gst_event_parse_latency.

public static extern void ParseLatency(EventHandle @event, out ClockTime latency)

Parameters

event EventHandle
latency ClockTime

Transfer ownership: Full Nullable: False

ParseQos(EventHandle, out IntPtr, out double, out ClockTimeDiff, out ClockTime)

Calls native method gst_event_parse_qos.

public static extern void ParseQos(EventHandle @event, out IntPtr type, out double proportion, out ClockTimeDiff diff, out ClockTime timestamp)

Parameters

event EventHandle
type IntPtr

Transfer ownership: Full Nullable: False

proportion double

Transfer ownership: Full Nullable: False

diff ClockTimeDiff

Transfer ownership: Full Nullable: False

timestamp ClockTime

Transfer ownership: Full Nullable: False

ParseSeek(EventHandle, out double, out IntPtr, out SeekFlags, out IntPtr, out long, out IntPtr, out long)

Calls native method gst_event_parse_seek.

public static extern void ParseSeek(EventHandle @event, out double rate, out IntPtr format, out SeekFlags flags, out IntPtr startType, out long start, out IntPtr stopType, out long stop)

Parameters

event EventHandle
rate double

Transfer ownership: Full Nullable: False

format IntPtr

Transfer ownership: Full Nullable: False

flags SeekFlags

Transfer ownership: Full Nullable: False

startType IntPtr

Transfer ownership: Full Nullable: False

start long

Transfer ownership: Full Nullable: False

stopType IntPtr

Transfer ownership: Full Nullable: False

stop long

Transfer ownership: Full Nullable: False

ParseSeekTrickmodeInterval(EventHandle, out ClockTime)

Calls native method gst_event_parse_seek_trickmode_interval. Version: 1.16

[Version("1.16")]
public static extern void ParseSeekTrickmodeInterval(EventHandle @event, out ClockTime interval)

Parameters

event EventHandle
interval ClockTime

Transfer ownership: Full Nullable: False

ParseSegmentDone(EventHandle, out IntPtr, out long)

Calls native method gst_event_parse_segment_done.

public static extern void ParseSegmentDone(EventHandle @event, out IntPtr format, out long position)

Parameters

event EventHandle
format IntPtr

Transfer ownership: Full Nullable: False

position long

Transfer ownership: Full Nullable: False

ParseStep(EventHandle, out IntPtr, out ulong, out double, out bool, out bool)

Calls native method gst_event_parse_step.

public static extern void ParseStep(EventHandle @event, out IntPtr format, out ulong amount, out double rate, out bool flush, out bool intermediate)

Parameters

event EventHandle
format IntPtr

Transfer ownership: Full Nullable: False

amount ulong

Transfer ownership: Full Nullable: False

rate double

Transfer ownership: Full Nullable: False

flush bool

Transfer ownership: Full Nullable: False

intermediate bool

Transfer ownership: Full Nullable: False

ParseStream(EventHandle, out IntPtr)

Calls native method gst_event_parse_stream. Version: 1.10

[Version("1.10")]
public static extern void ParseStream(EventHandle @event, out IntPtr stream)

Parameters

event EventHandle
stream IntPtr

Transfer ownership: Full Nullable: False

ParseStreamCollection(EventHandle, out IntPtr)

Calls native method gst_event_parse_stream_collection. Version: 1.10

[Version("1.10")]
public static extern void ParseStreamCollection(EventHandle @event, out IntPtr collection)

Parameters

event EventHandle
collection IntPtr

Transfer ownership: Full Nullable: False

ParseStreamFlags(EventHandle, out StreamFlags)

Calls native method gst_event_parse_stream_flags. Version: 1.2

[Version("1.2")]
public static extern void ParseStreamFlags(EventHandle @event, out StreamFlags flags)

Parameters

event EventHandle
flags StreamFlags

Transfer ownership: Full Nullable: False

ParseStreamGroupDone(EventHandle, out uint)

Calls native method gst_event_parse_stream_group_done. Version: 1.10

[Version("1.10")]
public static extern void ParseStreamGroupDone(EventHandle @event, out uint groupId)

Parameters

event EventHandle
groupId uint

Transfer ownership: Full Nullable: False

ParseStreamStart(EventHandle, out NonNullableUtf8StringUnownedHandle)

Calls native method gst_event_parse_stream_start.

public static extern void ParseStreamStart(EventHandle @event, out NonNullableUtf8StringUnownedHandle streamId)

Parameters

event EventHandle
streamId NonNullableUtf8StringUnownedHandle

Transfer ownership: None Nullable: False

ParseTocSelect(EventHandle, out NonNullableUtf8StringOwnedHandle)

Calls native method gst_event_parse_toc_select.

public static extern void ParseTocSelect(EventHandle @event, out NonNullableUtf8StringOwnedHandle uid)

Parameters

event EventHandle
uid NonNullableUtf8StringOwnedHandle

Transfer ownership: Full Nullable: False

SetGapFlags(EventHandle, GapFlags)

Calls native method gst_event_set_gap_flags. Version: 1.20

[Version("1.20")]
public static extern void SetGapFlags(EventHandle @event, GapFlags flags)

Parameters

event EventHandle
flags GapFlags

Transfer ownership: None Nullable: False

SetGroupId(EventHandle, uint)

Calls native method gst_event_set_group_id. Version: 1.2

[Version("1.2")]
public static extern void SetGroupId(EventHandle @event, uint groupId)

Parameters

event EventHandle
groupId uint

Transfer ownership: None Nullable: False

SetRunningTimeOffset(EventHandle, long)

Calls native method gst_event_set_running_time_offset. Version: 1.4

[Version("1.4")]
public static extern void SetRunningTimeOffset(EventHandle @event, long offset)

Parameters

event EventHandle
offset long

Transfer ownership: None Nullable: False

SetSeekTrickmodeInterval(EventHandle, ClockTime)

Calls native method gst_event_set_seek_trickmode_interval. Version: 1.16

[Version("1.16")]
public static extern void SetSeekTrickmodeInterval(EventHandle @event, ClockTime interval)

Parameters

event EventHandle
interval ClockTime

Transfer ownership: None Nullable: False

SetSeqnum(EventHandle, uint)

Calls native method gst_event_set_seqnum.

public static extern void SetSeqnum(EventHandle @event, uint seqnum)

Parameters

event EventHandle
seqnum uint

Transfer ownership: None Nullable: False

SetStream(EventHandle, IntPtr)

Calls native method gst_event_set_stream. Version: 1.10

[Version("1.10")]
public static extern void SetStream(EventHandle @event, IntPtr stream)

Parameters

event EventHandle
stream IntPtr

Transfer ownership: None Nullable: False

SetStreamFlags(EventHandle, StreamFlags)

Calls native method gst_event_set_stream_flags. Version: 1.2

[Version("1.2")]
public static extern void SetStreamFlags(EventHandle @event, StreamFlags flags)

Parameters

event EventHandle
flags StreamFlags

Transfer ownership: None Nullable: False

WritableStructure(EventHandle)

Calls native method gst_event_writable_structure.

public static extern StructureUnownedHandle WritableStructure(EventHandle @event)

Parameters

event EventHandle

Returns

StructureUnownedHandle

Transfer ownership: None Nullable: False