Event.newInstantRateChange

gst.event.Event newInstantRateChange(double rateMultiplier, gst.types.SegmentFlags newFlags)

Create a new instant-rate-change event. This event is sent by seek handlers (e.g. demuxers) when receiving a seek with the [gst.types.SeekFlags.InstantRateChange] 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 [gst.types.SEGMENT_INSTANT_FLAGS] set. Other GstSegmentFlags are ignored and not transferred in the event.

Parameters

rateMultiplierthe multiplier to be applied to the playback rate
newFlagsA new subset of segment flags to replace in segments

Returns

the new instant-rate-change event.