Gjsify LogoGjsify Logo

Various functions for receiving, sending an serializing #GstNetTimePacket structures.

record

Hierarchy

  • NetTimePacket

Index

Constructors

  • Creates a new #GstNetTimePacket from a buffer received over the network. The caller is responsible for ensuring that buffer is at least #GST_NET_TIME_PACKET_SIZE bytes long.

    If buffer is %NULL, the local and remote times will be set to #GST_CLOCK_TIME_NONE.

    MT safe. Caller owns return value (gst_net_time_packet_free to free).

    Parameters

    • buffer: Uint8Array

      a buffer from which to construct the packet, or NULL

    Returns NetTimePacket

Properties

local_time: number

the local time when this packet was sent

field
remote_time: number

the remote time observation

field
name: string

Methods

  • free(): void
  • serialize(): number
  • Serialized a #GstNetTimePacket into a newly-allocated sequence of #GST_NET_TIME_PACKET_SIZE bytes, in network byte order. The value returned is suitable for passing to write(2) or sendto(2) for communication over the network.

    MT safe. Caller owns return value (g_free to free).

    Returns number

  • Creates a new #GstNetTimePacket from a buffer received over the network. The caller is responsible for ensuring that buffer is at least #GST_NET_TIME_PACKET_SIZE bytes long.

    If buffer is %NULL, the local and remote times will be set to #GST_CLOCK_TIME_NONE.

    MT safe. Caller owns return value (gst_net_time_packet_free to free).

    Parameters

    • buffer: Uint8Array

      a buffer from which to construct the packet, or NULL

    Returns NetTimePacket

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method