Event.instant_rate_change


Description:

[ CCode ( has_construct_function = false ) ]
[ Version ( since = "1.18" ) ]
public Event.instant_rate_change (double rate_multiplier, SegmentFlags new_flags)

Create a new instant-rate-change event.

This event is sent by seek handlers (e.g. demuxers) when receiving a seek with the INSTANT_RATE_CHANGE and signals to downstream elements that the playback rate in the existing segment should be immediately multiplied by the rate_multiplier factor.

The flags provided replace any flags in the existing segment, for the flags within the SEGMENT_INSTANT_FLAGS set. Other GstSegmentFlags are ignored and not transferred in the event.

Parameters:

rate_multiplier

the multiplier to be applied to the playback rate

new_flags

A new subset of segment flags to replace in segments

Returns:

the new instant-rate-change event.