rtp

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: CC0-1.0 Imports: 6 Imported by: 0

Documentation

Overview

Package rtp provides Go bindings for android.net.rtp.

Index

Constants

View Source
const (
	ModeNormal          = consts.ModeNormal
	ModeReceiveOnly     = consts.ModeReceiveOnly
	ModeSendOnly        = consts.ModeSendOnly
	ModeEchoSuppression = consts.ModeEchoSuppression
	ModeMuted           = consts.ModeMuted
	ModeOnHold          = consts.ModeOnHold
	Amr                 = consts.Amr
	Gsm                 = consts.Gsm
	GsmEfr              = consts.GsmEfr
	Pcma                = consts.Pcma
	Pcmu                = consts.Pcmu
)

Variables

This section is empty.

Functions

func Init

func Init(env *jni.Env) error

Init resolves all JNI class and method references for this package. It is safe to call multiple times (uses sync.Once internally). Exported for E2E testing on Android.

Types

type AudioCodec

type AudioCodec struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

AudioCodec wraps android.net.rtp.AudioCodec.

func (*AudioCodec) GetCodec

func (m *AudioCodec) GetCodec(
	arg0 int32,
	arg1 string,
	arg2 string,
) (*jni.Object, error)

GetCodec calls android.net.rtp.AudioCodec.getCodec.

func (*AudioCodec) GetCodecs

func (m *AudioCodec) GetCodecs() (*jni.Object, error)

GetCodecs calls android.net.rtp.AudioCodec.getCodecs.

type AudioGroup

type AudioGroup struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

AudioGroup wraps android.net.rtp.AudioGroup.

func NewAudioGroup

func NewAudioGroup(vm *jni.VM, arg0 *jni.Object) (*AudioGroup, error)

NewAudioGroup creates a new android.net.rtp.AudioGroup instance.

func (*AudioGroup) Clear

func (m *AudioGroup) Clear() error

Clear calls android.net.rtp.AudioGroup.clear.

func (*AudioGroup) GetMode

func (m *AudioGroup) GetMode() (int32, error)

GetMode calls android.net.rtp.AudioGroup.getMode.

func (*AudioGroup) GetStreams

func (m *AudioGroup) GetStreams() (*jni.Object, error)

GetStreams calls android.net.rtp.AudioGroup.getStreams.

func (*AudioGroup) SendDtmf

func (m *AudioGroup) SendDtmf(arg0 int32) error

SendDtmf calls android.net.rtp.AudioGroup.sendDtmf.

func (*AudioGroup) SetMode

func (m *AudioGroup) SetMode(arg0 int32) error

SetMode calls android.net.rtp.AudioGroup.setMode.

type AudioStream

type AudioStream struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

AudioStream wraps android.net.rtp.AudioStream.

func NewAudioStream

func NewAudioStream(vm *jni.VM, arg0 *jni.Object) (*AudioStream, error)

NewAudioStream creates a new android.net.rtp.AudioStream instance.

func (*AudioStream) GetCodec

func (m *AudioStream) GetCodec() (*jni.Object, error)

GetCodec calls android.net.rtp.AudioStream.getCodec.

func (*AudioStream) GetDtmfType

func (m *AudioStream) GetDtmfType() (int32, error)

GetDtmfType calls android.net.rtp.AudioStream.getDtmfType.

func (*AudioStream) GetGroup

func (m *AudioStream) GetGroup() (*jni.Object, error)

GetGroup calls android.net.rtp.AudioStream.getGroup.

func (*AudioStream) IsBusy

func (m *AudioStream) IsBusy() (bool, error)

IsBusy calls android.net.rtp.AudioStream.isBusy.

func (*AudioStream) Join

func (m *AudioStream) Join(arg0 *jni.Object) error

Join calls android.net.rtp.AudioStream.join.

func (*AudioStream) SetCodec

func (m *AudioStream) SetCodec(arg0 *jni.Object) error

SetCodec calls android.net.rtp.AudioStream.setCodec.

func (*AudioStream) SetDtmfType

func (m *AudioStream) SetDtmfType(arg0 int32) error

SetDtmfType calls android.net.rtp.AudioStream.setDtmfType.

type Stream

type Stream struct {
	VM  *jni.VM
	Obj *jni.GlobalRef
}

Stream wraps android.net.rtp.RtpStream.

func (*Stream) Associate

func (m *Stream) Associate(arg0 *jni.Object, arg1 int32) error

Associate calls android.net.rtp.RtpStream.associate.

func (*Stream) GetLocalAddress

func (m *Stream) GetLocalAddress() (*jni.Object, error)

GetLocalAddress calls android.net.rtp.RtpStream.getLocalAddress.

func (*Stream) GetLocalPort

func (m *Stream) GetLocalPort() (int32, error)

GetLocalPort calls android.net.rtp.RtpStream.getLocalPort.

func (*Stream) GetMode

func (m *Stream) GetMode() (int32, error)

GetMode calls android.net.rtp.RtpStream.getMode.

func (*Stream) GetRemoteAddress

func (m *Stream) GetRemoteAddress() (*jni.Object, error)

GetRemoteAddress calls android.net.rtp.RtpStream.getRemoteAddress.

func (*Stream) GetRemotePort

func (m *Stream) GetRemotePort() (int32, error)

GetRemotePort calls android.net.rtp.RtpStream.getRemotePort.

func (*Stream) IsBusy

func (m *Stream) IsBusy() (bool, error)

IsBusy calls android.net.rtp.RtpStream.isBusy.

func (*Stream) Release

func (m *Stream) Release() error

Release calls android.net.rtp.RtpStream.release.

func (*Stream) SetMode

func (m *Stream) SetMode(arg0 int32) error

SetMode calls android.net.rtp.RtpStream.setMode.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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