# GstRtphdrext

## Functions

### gst_rtp_hdrext_get_ntp_56

    gboolean
    gst_rtp_hdrext_get_ntp_56 (gpointer data,
                               guint size,
                               guint64 * ntptime)

Reads the NTP time from the size NTP-56 extension bytes in data and store the result in ntptime.

Parameters:

`data` ( [arraylength=size][element-typeguint8] ) –

the data to read from

`size` –

the size of data

`ntptime` ( [out] ) –

the result NTP time

Returns –

TRUE on success.

### GstRtp.prototype.rtp_hdrext_get_ntp_56

    function GstRtp.prototype.rtp_hdrext_get_ntp_56(data: [ Number ], size: Number): {
        // javascript wrapper for 'gst_rtp_hdrext_get_ntp_56'
    }

Reads the NTP time from the size NTP-56 extension bytes in data and store the result in ntptime.

Parameters:

`data` ( [ Number ] ) –

the data to read from

`size` ( Number ) –

the size of data

Returns a tuple made of:

( Number ) –

true on success.

`ntptime` ( Number ) –

true on success.

### GstRtp.rtp_hdrext_get_ntp_56

    def GstRtp.rtp_hdrext_get_ntp_56 (data, size):
        #python wrapper for 'gst_rtp_hdrext_get_ntp_56'

Reads the NTP time from the size NTP-56 extension bytes in data and store the result in ntptime.

Parameters:

`data` ( [ int ] ) –

the data to read from

`size` ( int ) –

the size of data

Returns a tuple made of:

( bool ) –

True on success.

`ntptime` ( int ) –

True on success.

### gst_rtp_hdrext_get_ntp_64

    gboolean
    gst_rtp_hdrext_get_ntp_64 (gpointer data,
                               guint size,
                               guint64 * ntptime)

Reads the NTP time from the size NTP-64 extension bytes in data and store the result in ntptime.

Parameters:

`data` ( [arraylength=size][element-typeguint8] ) –

the data to read from

`size` –

the size of data

`ntptime` ( [out] ) –

the result NTP time

Returns –

TRUE on success.

### GstRtp.prototype.rtp_hdrext_get_ntp_64

    function GstRtp.prototype.rtp_hdrext_get_ntp_64(data: [ Number ], size: Number): {
        // javascript wrapper for 'gst_rtp_hdrext_get_ntp_64'
    }

Reads the NTP time from the size NTP-64 extension bytes in data and store the result in ntptime.

Parameters:

`data` ( [ Number ] ) –

the data to read from

`size` ( Number ) –

the size of data

Returns a tuple made of:

( Number ) –

true on success.

`ntptime` ( Number ) –

true on success.

### GstRtp.rtp_hdrext_get_ntp_64

    def GstRtp.rtp_hdrext_get_ntp_64 (data, size):
        #python wrapper for 'gst_rtp_hdrext_get_ntp_64'

Reads the NTP time from the size NTP-64 extension bytes in data and store the result in ntptime.

Parameters:

`data` ( [ int ] ) –

the data to read from

`size` ( int ) –

the size of data

Returns a tuple made of:

( bool ) –

True on success.

`ntptime` ( int ) –

True on success.

### gst_rtp_hdrext_set_ntp_56

    gboolean
    gst_rtp_hdrext_set_ntp_56 (gpointer data,
                               guint size,
                               guint64 ntptime)

Writes the NTP time in ntptime to the format required for the NTP-56 header extension. data must hold at least GST_RTP_HDREXT_NTP_56_SIZE bytes.

Parameters:

`data` –

the data to write to

`size` –

the size of data

`ntptime` –

the NTP time

Returns –

TRUE on success.

### GstRtp.prototype.rtp_hdrext_set_ntp_56

    function GstRtp.prototype.rtp_hdrext_set_ntp_56(data: Object, size: Number, ntptime: Number): {
        // javascript wrapper for 'gst_rtp_hdrext_set_ntp_56'
    }

Writes the NTP time in ntptime to the format required for the NTP-56 header extension. data must hold at least GstRtp.RTP_HDREXT_NTP_56_SIZE bytes.

Parameters:

`data` ( Object ) –

the data to write to

`size` ( Number ) –

the size of data

`ntptime` ( Number ) –

the NTP time

Returns ( Number ) –

true on success.

### GstRtp.rtp_hdrext_set_ntp_56

    def GstRtp.rtp_hdrext_set_ntp_56 (data, size, ntptime):
        #python wrapper for 'gst_rtp_hdrext_set_ntp_56'

Writes the NTP time in ntptime to the format required for the NTP-56 header extension. data must hold at least GstRtp.RTP_HDREXT_NTP_56_SIZE bytes.

Parameters:

`data` ( object ) –

the data to write to

`size` ( int ) –

the size of data

`ntptime` ( int ) –

the NTP time

Returns ( bool ) –

True on success.

### gst_rtp_hdrext_set_ntp_64

    gboolean
    gst_rtp_hdrext_set_ntp_64 (gpointer data,
                               guint size,
                               guint64 ntptime)

Writes the NTP time in ntptime to the format required for the NTP-64 header extension. data must hold at least GST_RTP_HDREXT_NTP_64_SIZE bytes.

Parameters:

`data` –

the data to write to

`size` –

the size of data

`ntptime` –

the NTP time

Returns –

TRUE on success.

### GstRtp.prototype.rtp_hdrext_set_ntp_64

    function GstRtp.prototype.rtp_hdrext_set_ntp_64(data: Object, size: Number, ntptime: Number): {
        // javascript wrapper for 'gst_rtp_hdrext_set_ntp_64'
    }

Writes the NTP time in ntptime to the format required for the NTP-64 header extension. data must hold at least GstRtp.RTP_HDREXT_NTP_64_SIZE bytes.

Parameters:

`data` ( Object ) –

the data to write to

`size` ( Number ) –

the size of data

`ntptime` ( Number ) –

the NTP time

Returns ( Number ) –

true on success.

### GstRtp.rtp_hdrext_set_ntp_64

    def GstRtp.rtp_hdrext_set_ntp_64 (data, size, ntptime):
        #python wrapper for 'gst_rtp_hdrext_set_ntp_64'

Writes the NTP time in ntptime to the format required for the NTP-64 header extension. data must hold at least GstRtp.RTP_HDREXT_NTP_64_SIZE bytes.

Parameters:

`data` ( object ) –

the data to write to

`size` ( int ) –

the size of data

`ntptime` ( int ) –

the NTP time

Returns ( bool ) –

True on success.

## Constants

### GST_RTP_HDREXT_BASE

    #define GST_RTP_HDREXT_BASE "urn:ietf:params:rtp-hdrext:"

### GstRtp.RTP_HDREXT_BASE

### GST_RTP_HDREXT_NTP_56

    #define GST_RTP_HDREXT_NTP_56 "ntp-56"

### GstRtp.RTP_HDREXT_NTP_56

### GST_RTP_HDREXT_NTP_56_SIZE

    #define GST_RTP_HDREXT_NTP_56_SIZE 7

### GstRtp.RTP_HDREXT_NTP_56_SIZE

### GST_RTP_HDREXT_NTP_64

    #define GST_RTP_HDREXT_NTP_64 "ntp-64"

### GstRtp.RTP_HDREXT_NTP_64

### GST_RTP_HDREXT_NTP_64_SIZE

    #define GST_RTP_HDREXT_NTP_64_SIZE 8

### GstRtp.RTP_HDREXT_NTP_64_SIZE

The results of the search are