Farstream.RtpHeaderExtension

Fields

Name

Type

Access

Description

direction

Farstream.StreamDirection

r/w

the direction in which this extension can be used

id

int

r/w

The identifier of the RTP header extension

uri

str

r/w

The URI that defines this extension

Methods

class

new (id, direction, uri)

are_equal (extension2)

Details

class Farstream.RtpHeaderExtension

Defines a RTP header extension with its negotiated identifier, direction and URI. They should only be created with Farstream.RtpHeaderExtension.new().

classmethod new(id, direction, uri)
Parameters:
  • id (int) – The identifier of the RTP header extension

  • direction (Farstream.StreamDirection) – the direction in which this extension can be used

  • uri (str) – The URI that defines this extension

Returns:

a new Farstream.RtpHeaderExtension

Return type:

Farstream.RtpHeaderExtension

Creates a new Farstream.RtpHeaderExtension

are_equal(extension2)
Parameters:

extension2 (Farstream.RtpHeaderExtension) – The second Farstream.RtpHeaderExtension

Returns:

True if they are identical, False otherwise

Return type:

bool

Compares two Farstream.RtpHeaderExtension structures