rtp

package
v0.0.0-...-37f1e7d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrParticipantExists       = errors.New("participant already exists")
	ErrParticipantMissing      = errors.New("participant is missing")
	ErrSsrcMissing             = errors.New("ssrc is missing")
	ErrSharedMeetingKeyMissing = errors.New("sharedMeetingKey is missing")
)

Functions

func RtcpProcess

func RtcpProcess(rawPkt []byte) ([]rtcp.Packet, error)

Types

type Participant

type Participant struct {
	// contains filtered or unexported fields
}

type StreamType

type StreamType byte
const (
	STREAM_TYPE_VIDEO       StreamType = 0x00
	STREAM_TYPE_AUDIO       StreamType = 0x01
	STREAM_TYPE_SCREENSHARE StreamType = 0x02
)

type ZoomParticipantRoster

type ZoomParticipantRoster struct {
	// contains filtered or unexported fields
}

func NewParticipantRoster

func NewParticipantRoster() *ZoomParticipantRoster

func (*ZoomParticipantRoster) AddParticipant

func (roster *ZoomParticipantRoster) AddParticipant(userId int, secretNonce []byte) error

func (*ZoomParticipantRoster) AddSsrcForParticipant

func (roster *ZoomParticipantRoster) AddSsrcForParticipant(userId int, ssrc int) error

func (*ZoomParticipantRoster) GetSecretNonceForSSRC

func (roster *ZoomParticipantRoster) GetSecretNonceForSSRC(ssrcNeedle int) ([]byte, error)

func (*ZoomParticipantRoster) GetSharedMeetingKey

func (roster *ZoomParticipantRoster) GetSharedMeetingKey() ([]byte, error)

func (*ZoomParticipantRoster) SetSharedMeetingKey

func (roster *ZoomParticipantRoster) SetSharedMeetingKey(sharedMeetingKey []byte)

type ZoomRtpDecoder

type ZoomRtpDecoder struct {
	ParticipantRoster *ZoomParticipantRoster
	// contains filtered or unexported fields
}

func NewZoomRtpDecoder

func NewZoomRtpDecoder(streamType StreamType) *ZoomRtpDecoder

func (*ZoomRtpDecoder) Decode

func (parser *ZoomRtpDecoder) Decode(rawPkt []byte) (*media.Sample, error)

type ZoomRtpEncoder

type ZoomRtpEncoder struct {

	// Encryption information
	ParticipantRoster *ZoomParticipantRoster
	// contains filtered or unexported fields
}

func NewZoomRtpEncoder

func NewZoomRtpEncoder(roster *ZoomParticipantRoster, ssrc int, id int, width, height int) *ZoomRtpEncoder

func (*ZoomRtpEncoder) Encode

func (parser *ZoomRtpEncoder) Encode(payload []byte) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL