Documentation
¶
Overview ¶
Package rtp provides Go bindings for android.net.rtp.
Index ¶
- Constants
- func Init(env *jni.Env) error
- type AudioCodec
- type AudioGroup
- type AudioStream
- func (m *AudioStream) GetCodec() (*jni.Object, error)
- func (m *AudioStream) GetDtmfType() (int32, error)
- func (m *AudioStream) GetGroup() (*jni.Object, error)
- func (m *AudioStream) IsBusy() (bool, error)
- func (m *AudioStream) Join(arg0 *jni.Object) error
- func (m *AudioStream) SetCodec(arg0 *jni.Object) error
- func (m *AudioStream) SetDtmfType(arg0 int32) error
- type Stream
- func (m *Stream) Associate(arg0 *jni.Object, arg1 int32) error
- func (m *Stream) GetLocalAddress() (*jni.Object, error)
- func (m *Stream) GetLocalPort() (int32, error)
- func (m *Stream) GetMode() (int32, error)
- func (m *Stream) GetRemoteAddress() (*jni.Object, error)
- func (m *Stream) GetRemotePort() (int32, error)
- func (m *Stream) IsBusy() (bool, error)
- func (m *Stream) Release() error
- func (m *Stream) SetMode(arg0 int32) error
Constants ¶
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 ¶
Types ¶
type AudioCodec ¶
AudioCodec wraps android.net.rtp.AudioCodec.
type AudioGroup ¶
AudioGroup wraps android.net.rtp.AudioGroup.
func NewAudioGroup ¶
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 ¶
AudioStream wraps android.net.rtp.AudioStream.
func NewAudioStream ¶
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 ¶
Stream wraps android.net.rtp.RtpStream.
func (*Stream) GetLocalAddress ¶
GetLocalAddress calls android.net.rtp.RtpStream.getLocalAddress.
func (*Stream) GetLocalPort ¶
GetLocalPort calls android.net.rtp.RtpStream.getLocalPort.
func (*Stream) GetRemoteAddress ¶
GetRemoteAddress calls android.net.rtp.RtpStream.getRemoteAddress.
func (*Stream) GetRemotePort ¶
GetRemotePort calls android.net.rtp.RtpStream.getRemotePort.