Function

GstVideo-1.0GstVideovideo_event_new_upstream_force_key_unit

  • Creates a new upstream force key unit event. An upstream force key unit event can be sent to request upstream elements to produce a key unit.

    running_time can be set to request a new key unit at a specific running_time. If set to GST_CLOCK_TIME_NONE, upstream elements will produce a new key unit as soon as possible.

    To parse an event created by gst_video_event_new_downstream_force_key_unit() use gst_video_event_parse_downstream_force_key_unit().

    Parameters

    • running_time: number

      the running_time at which a new key unit should be produced

    • all_headers: boolean

      true to produce headers when starting a new key unit

    • count: number

      integer that can be used to number key units

    Returns Gst.Event

    The new GstEvent