media

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: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CodecModeTagNoinit int32 = 0
	CodecModeTagAmr    int32 = 1
	CodecModeTagEvs    int32 = 2
)
View Source
const (
	CodecSpecificParamsTagAmr int32 = 0
	CodecSpecificParamsTagEvs int32 = 1
)
View Source
const (
	TransactionIImsMediaSetListener  = binder.FirstCallTransaction + 0
	TransactionIImsMediaOpenSession  = binder.FirstCallTransaction + 1
	TransactionIImsMediaCloseSession = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodIImsMediaSetListener  = "setListener"
	MethodIImsMediaOpenSession  = "openSession"
	MethodIImsMediaCloseSession = "closeSession"
)
View Source
const (
	TransactionIImsMediaListenerOnOpenSessionSuccess = binder.FirstCallTransaction + 0
	TransactionIImsMediaListenerOnOpenSessionFailure = binder.FirstCallTransaction + 1
	TransactionIImsMediaListenerOnSessionClosed      = binder.FirstCallTransaction + 2
)
View Source
const (
	MethodIImsMediaListenerOnOpenSessionSuccess = "onOpenSessionSuccess"
	MethodIImsMediaListenerOnOpenSessionFailure = "onOpenSessionFailure"
	MethodIImsMediaListenerOnSessionClosed      = "onSessionClosed"
)
View Source
const (
	TransactionIImsMediaSessionSetListener              = binder.FirstCallTransaction + 0
	TransactionIImsMediaSessionModifySession            = binder.FirstCallTransaction + 1
	TransactionIImsMediaSessionSendDtmf                 = binder.FirstCallTransaction + 2
	TransactionIImsMediaSessionStartDtmf                = binder.FirstCallTransaction + 3
	TransactionIImsMediaSessionStopDtmf                 = binder.FirstCallTransaction + 4
	TransactionIImsMediaSessionSendHeaderExtension      = binder.FirstCallTransaction + 5
	TransactionIImsMediaSessionSetMediaQualityThreshold = binder.FirstCallTransaction + 6
	TransactionIImsMediaSessionRequestRtpReceptionStats = binder.FirstCallTransaction + 7
	TransactionIImsMediaSessionAdjustDelay              = binder.FirstCallTransaction + 8
)
View Source
const (
	MethodIImsMediaSessionSetListener              = "setListener"
	MethodIImsMediaSessionModifySession            = "modifySession"
	MethodIImsMediaSessionSendDtmf                 = "sendDtmf"
	MethodIImsMediaSessionStartDtmf                = "startDtmf"
	MethodIImsMediaSessionStopDtmf                 = "stopDtmf"
	MethodIImsMediaSessionSendHeaderExtension      = "sendHeaderExtension"
	MethodIImsMediaSessionSetMediaQualityThreshold = "setMediaQualityThreshold"
	MethodIImsMediaSessionRequestRtpReceptionStats = "requestRtpReceptionStats"
	MethodIImsMediaSessionAdjustDelay              = "adjustDelay"
)
View Source
const (
	TransactionIImsMediaSessionListenerOnModifySessionResponse    = binder.FirstCallTransaction + 0
	TransactionIImsMediaSessionListenerOnFirstMediaPacketReceived = binder.FirstCallTransaction + 1
	TransactionIImsMediaSessionListenerOnHeaderExtensionReceived  = binder.FirstCallTransaction + 2
	TransactionIImsMediaSessionListenerNotifyMediaQualityStatus   = binder.FirstCallTransaction + 3
	TransactionIImsMediaSessionListenerTriggerAnbrQuery           = binder.FirstCallTransaction + 4
	TransactionIImsMediaSessionListenerOnDtmfReceived             = binder.FirstCallTransaction + 5
	TransactionIImsMediaSessionListenerOnCallQualityChanged       = binder.FirstCallTransaction + 6
	TransactionIImsMediaSessionListenerNotifyRtpReceptionStats    = binder.FirstCallTransaction + 7
)
View Source
const (
	MethodIImsMediaSessionListenerOnModifySessionResponse    = "onModifySessionResponse"
	MethodIImsMediaSessionListenerOnFirstMediaPacketReceived = "onFirstMediaPacketReceived"
	MethodIImsMediaSessionListenerOnHeaderExtensionReceived  = "onHeaderExtensionReceived"
	MethodIImsMediaSessionListenerNotifyMediaQualityStatus   = "notifyMediaQualityStatus"
	MethodIImsMediaSessionListenerTriggerAnbrQuery           = "triggerAnbrQuery"
	MethodIImsMediaSessionListenerOnDtmfReceived             = "onDtmfReceived"
	MethodIImsMediaSessionListenerOnCallQualityChanged       = "onCallQualityChanged"
	MethodIImsMediaSessionListenerNotifyRtpReceptionStats    = "notifyRtpReceptionStats"
)
View Source
const DescriptorIImsMedia = "android.hardware.radio.ims.media.IImsMedia"
View Source
const DescriptorIImsMediaListener = "android.hardware.radio.ims.media.IImsMediaListener"
View Source
const DescriptorIImsMediaSession = "android.hardware.radio.ims.media.IImsMediaSession"
View Source
const DescriptorIImsMediaSessionListener = "android.hardware.radio.ims.media.IImsMediaSessionListener"

Variables

This section is empty.

Functions

This section is empty.

Types

type AmrMode

type AmrMode int32
const (
	AmrModeAmrMode0 AmrMode = (1 << 0)
	AmrModeAmrMode1 AmrMode = (1 << 1)
	AmrModeAmrMode2 AmrMode = (1 << 2)
	AmrModeAmrMode3 AmrMode = (1 << 3)
	AmrModeAmrMode4 AmrMode = (1 << 4)
	AmrModeAmrMode5 AmrMode = (1 << 5)
	AmrModeAmrMode6 AmrMode = (1 << 6)
	AmrModeAmrMode7 AmrMode = (1 << 7)
	AmrModeAmrMode8 AmrMode = (1 << 8)
)

type AmrParams

type AmrParams struct {
	AmrMode             AmrMode
	OctetAligned        bool
	MaxRedundancyMillis int32
}

func (*AmrParams) MarshalParcel

func (s *AmrParams) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AmrParams) UnmarshalParcel

func (s *AmrParams) UnmarshalParcel(
	p *parcel.Parcel,
) error

type AnbrMode

type AnbrMode struct {
	AnbrUplinkMode   CodecMode
	AnbrDownlinkMode CodecMode
}

func (*AnbrMode) MarshalParcel

func (s *AnbrMode) MarshalParcel(
	p *parcel.Parcel,
) error

func (*AnbrMode) UnmarshalParcel

func (s *AnbrMode) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CallQuality

type CallQuality struct {
	DownlinkCallQualityLevel     int32
	UplinkCallQualityLevel       int32
	CallDuration                 int32
	NumRtpPacketsTransmitted     int32
	NumRtpPacketsReceived        int32
	NumRtpPacketsTransmittedLost int32
	NumRtpPacketsNotReceived     int32
	AverageRelativeJitter        int32
	MaxRelativeJitter            int32
	AverageRoundTripTime         int32
	CodecType                    int32
	RtpInactivityDetected        bool
	RxSilenceDetected            bool
	TxSilenceDetected            bool
	NumVoiceFrames               int32
	NumNoDataFrames              int32
	NumDroppedRtpPackets         int32
	MinPlayoutDelayMillis        int64
	MaxPlayoutDelayMillis        int64
	NumRtpSidPacketsReceived     int32
	NumRtpDuplicatePackets       int32
}

func (*CallQuality) MarshalParcel

func (s *CallQuality) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CallQuality) UnmarshalParcel

func (s *CallQuality) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecMode

type CodecMode struct {
	Tag    int32
	Noinit bool
	Amr    AmrMode
	Evs    EvsMode
}

func (*CodecMode) GetAmr

func (u *CodecMode) GetAmr() (AmrMode, bool)

func (*CodecMode) GetEvs

func (u *CodecMode) GetEvs() (EvsMode, bool)

func (*CodecMode) GetNoinit

func (u *CodecMode) GetNoinit() (bool, bool)

func (*CodecMode) MarshalParcel

func (u *CodecMode) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecMode) SetAmr

func (u *CodecMode) SetAmr(
	v AmrMode,
)

func (*CodecMode) SetEvs

func (u *CodecMode) SetEvs(
	v EvsMode,
)

func (*CodecMode) SetNoinit

func (u *CodecMode) SetNoinit(
	v bool,
)

func (*CodecMode) UnmarshalParcel

func (u *CodecMode) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecParams

type CodecParams struct {
	CodecType           CodecType
	RxPayloadTypeNumber byte
	TxPayloadTypeNumber byte
	SamplingRateKHz     byte
	DtxEnabled          bool
	CodecSpecificParams CodecSpecificParams
}

func (*CodecParams) MarshalParcel

func (s *CodecParams) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecParams) UnmarshalParcel

func (s *CodecParams) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecSpecificParams

type CodecSpecificParams struct {
	Tag int32
	Amr AmrParams
	Evs EvsParams
}

func (*CodecSpecificParams) GetAmr

func (u *CodecSpecificParams) GetAmr() (AmrParams, bool)

func (*CodecSpecificParams) GetEvs

func (u *CodecSpecificParams) GetEvs() (EvsParams, bool)

func (*CodecSpecificParams) MarshalParcel

func (u *CodecSpecificParams) MarshalParcel(
	p *parcel.Parcel,
) error

func (*CodecSpecificParams) SetAmr

func (u *CodecSpecificParams) SetAmr(
	v AmrParams,
)

func (*CodecSpecificParams) SetEvs

func (u *CodecSpecificParams) SetEvs(
	v EvsParams,
)

func (*CodecSpecificParams) UnmarshalParcel

func (u *CodecSpecificParams) UnmarshalParcel(
	p *parcel.Parcel,
) error

type CodecType

type CodecType int32
const (
	CodecTypeAMR   CodecType = (1 << 0)
	CodecTypeAmrWb CodecType = (1 << 1)
	CodecTypeEVS   CodecType = (1 << 2)
	CodecTypePCMA  CodecType = (1 << 3)
	CodecTypePCMU  CodecType = (1 << 4)
)

type DtmfParams

type DtmfParams struct {
	RxPayloadTypeNumber byte
	TxPayloadTypeNumber byte
	SamplingRateKHz     byte
}

func (*DtmfParams) MarshalParcel

func (s *DtmfParams) MarshalParcel(
	p *parcel.Parcel,
) error

func (*DtmfParams) UnmarshalParcel

func (s *DtmfParams) UnmarshalParcel(
	p *parcel.Parcel,
) error

type EvsBandwidth

type EvsBandwidth int32
const (
	EvsBandwidthNONE          EvsBandwidth = 0
	EvsBandwidthNarrowBand    EvsBandwidth = (1 << 0)
	EvsBandwidthWideBand      EvsBandwidth = (1 << 1)
	EvsBandwidthSuperWideBand EvsBandwidth = (1 << 2)
	EvsBandwidthFullBand      EvsBandwidth = (1 << 3)
)

type EvsMode

type EvsMode int32
const (
	EvsModeEvsMode0  EvsMode = (1 << 0)
	EvsModeEvsMode1  EvsMode = (1 << 1)
	EvsModeEvsMode2  EvsMode = (1 << 2)
	EvsModeEvsMode3  EvsMode = (1 << 3)
	EvsModeEvsMode4  EvsMode = (1 << 4)
	EvsModeEvsMode5  EvsMode = (1 << 5)
	EvsModeEvsMode6  EvsMode = (1 << 6)
	EvsModeEvsMode7  EvsMode = (1 << 7)
	EvsModeEvsMode8  EvsMode = (1 << 8)
	EvsModeEvsMode9  EvsMode = (1 << 9)
	EvsModeEvsMode10 EvsMode = (1 << 10)
	EvsModeEvsMode11 EvsMode = (1 << 11)
	EvsModeEvsMode12 EvsMode = (1 << 12)
	EvsModeEvsMode13 EvsMode = (1 << 13)
	EvsModeEvsMode14 EvsMode = (1 << 14)
	EvsModeEvsMode15 EvsMode = (1 << 15)
	EvsModeEvsMode16 EvsMode = (1 << 16)
	EvsModeEvsMode17 EvsMode = (1 << 17)
	EvsModeEvsMode18 EvsMode = (1 << 18)
	EvsModeEvsMode19 EvsMode = (1 << 19)
	EvsModeEvsMode20 EvsMode = (1 << 20)
)

type EvsParams

type EvsParams struct {
	Bandwidth         EvsBandwidth
	EvsMode           EvsMode
	ChannelAwareMode  byte
	UseHeaderFullOnly bool
	UseEvsModeSwitch  bool
	CodecModeRequest  byte
}

func (*EvsParams) MarshalParcel

func (s *EvsParams) MarshalParcel(
	p *parcel.Parcel,
) error

func (*EvsParams) UnmarshalParcel

func (s *EvsParams) UnmarshalParcel(
	p *parcel.Parcel,
) error

type IImsMedia

type IImsMedia interface {
	AsBinder() binder.IBinder
	SetListener(ctx context.Context, mediaListener IImsMediaListener) error
	OpenSession(ctx context.Context, sessionId int32, localEndPoint LocalEndPoint, config RtpConfig) error
	CloseSession(ctx context.Context, sessionId int32) error
}

func NewImsMediaStub

func NewImsMediaStub(
	impl IImsMediaServer,
) IImsMedia

NewImsMediaStub creates a server-side IImsMedia wrapping the given server implementation. The returned value satisfies IImsMedia and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IImsMediaListener

type IImsMediaListener interface {
	AsBinder() binder.IBinder
	OnOpenSessionSuccess(ctx context.Context, sessionId int32, session IImsMediaSession) error
	OnOpenSessionFailure(ctx context.Context, sessionId int32, error_ RtpError) error
	OnSessionClosed(ctx context.Context, sessionId int32) error
}

func NewImsMediaListenerStub

func NewImsMediaListenerStub(
	impl IImsMediaListenerServer,
) IImsMediaListener

NewImsMediaListenerStub creates a server-side IImsMediaListener wrapping the given server implementation. The returned value satisfies IImsMediaListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IImsMediaListenerServer

type IImsMediaListenerServer interface {
	OnOpenSessionSuccess(ctx context.Context, sessionId int32, session IImsMediaSession) error
	OnOpenSessionFailure(ctx context.Context, sessionId int32, error_ RtpError) error
	OnSessionClosed(ctx context.Context, sessionId int32) error
}

IImsMediaListenerServer is the server-side interface that user implementations provide to NewImsMediaListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IImsMediaServer

type IImsMediaServer interface {
	SetListener(ctx context.Context, mediaListener IImsMediaListener) error
	OpenSession(ctx context.Context, sessionId int32, localEndPoint LocalEndPoint, config RtpConfig) error
	CloseSession(ctx context.Context, sessionId int32) error
}

IImsMediaServer is the server-side interface that user implementations provide to NewImsMediaStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IImsMediaSession

type IImsMediaSession interface {
	AsBinder() binder.IBinder
	SetListener(ctx context.Context, sessionListener IImsMediaSessionListener) error
	ModifySession(ctx context.Context, config RtpConfig) error
	SendDtmf(ctx context.Context, dtmfDigit uint16, duration int32) error
	StartDtmf(ctx context.Context, dtmfDigit uint16) error
	StopDtmf(ctx context.Context) error
	SendHeaderExtension(ctx context.Context, extensions []RtpHeaderExtension) error
	SetMediaQualityThreshold(ctx context.Context, threshold MediaQualityThreshold) error
	RequestRtpReceptionStats(ctx context.Context, intervalMs int32) error
	AdjustDelay(ctx context.Context, delayMs int32) error
}

func NewImsMediaSessionStub

func NewImsMediaSessionStub(
	impl IImsMediaSessionServer,
) IImsMediaSession

NewImsMediaSessionStub creates a server-side IImsMediaSession wrapping the given server implementation. The returned value satisfies IImsMediaSession and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IImsMediaSessionListener

type IImsMediaSessionListener interface {
	AsBinder() binder.IBinder
	OnModifySessionResponse(ctx context.Context, config RtpConfig, error_ RtpError) error
	OnFirstMediaPacketReceived(ctx context.Context, config RtpConfig) error
	OnHeaderExtensionReceived(ctx context.Context, extensions []RtpHeaderExtension) error
	NotifyMediaQualityStatus(ctx context.Context, quality MediaQualityStatus) error
	TriggerAnbrQuery(ctx context.Context, config RtpConfig) error
	OnDtmfReceived(ctx context.Context, dtmfDigit uint16, durationMs int32) error
	OnCallQualityChanged(ctx context.Context, callQuality CallQuality) error
	NotifyRtpReceptionStats(ctx context.Context, stats RtpReceptionStats) error
}

func NewImsMediaSessionListenerStub

func NewImsMediaSessionListenerStub(
	impl IImsMediaSessionListenerServer,
) IImsMediaSessionListener

NewImsMediaSessionListenerStub creates a server-side IImsMediaSessionListener wrapping the given server implementation. The returned value satisfies IImsMediaSessionListener and can be passed to proxy methods; its AsBinder() returns a *binder.StubBinder that is auto-registered with the binder driver on first use.

type IImsMediaSessionListenerServer

type IImsMediaSessionListenerServer interface {
	OnModifySessionResponse(ctx context.Context, config RtpConfig, error_ RtpError) error
	OnFirstMediaPacketReceived(ctx context.Context, config RtpConfig) error
	OnHeaderExtensionReceived(ctx context.Context, extensions []RtpHeaderExtension) error
	NotifyMediaQualityStatus(ctx context.Context, quality MediaQualityStatus) error
	TriggerAnbrQuery(ctx context.Context, config RtpConfig) error
	OnDtmfReceived(ctx context.Context, dtmfDigit uint16, durationMs int32) error
	OnCallQualityChanged(ctx context.Context, callQuality CallQuality) error
	NotifyRtpReceptionStats(ctx context.Context, stats RtpReceptionStats) error
}

IImsMediaSessionListenerServer is the server-side interface that user implementations provide to NewImsMediaSessionListenerStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type IImsMediaSessionServer

type IImsMediaSessionServer interface {
	SetListener(ctx context.Context, sessionListener IImsMediaSessionListener) error
	ModifySession(ctx context.Context, config RtpConfig) error
	SendDtmf(ctx context.Context, dtmfDigit uint16, duration int32) error
	StartDtmf(ctx context.Context, dtmfDigit uint16) error
	StopDtmf(ctx context.Context) error
	SendHeaderExtension(ctx context.Context, extensions []RtpHeaderExtension) error
	SetMediaQualityThreshold(ctx context.Context, threshold MediaQualityThreshold) error
	RequestRtpReceptionStats(ctx context.Context, intervalMs int32) error
	AdjustDelay(ctx context.Context, delayMs int32) error
}

IImsMediaSessionServer is the server-side interface that user implementations provide to NewImsMediaSessionStub. It contains only the business methods, without AsBinder (which is provided by the stub itself).

type ImsMediaListenerProxy

type ImsMediaListenerProxy struct {
	Remote binder.IBinder
}

func NewImsMediaListenerProxy

func NewImsMediaListenerProxy(
	remote binder.IBinder,
) *ImsMediaListenerProxy

func (*ImsMediaListenerProxy) AsBinder

func (p *ImsMediaListenerProxy) AsBinder() binder.IBinder

func (*ImsMediaListenerProxy) OnOpenSessionFailure

func (p *ImsMediaListenerProxy) OnOpenSessionFailure(
	ctx context.Context,
	sessionId int32,
	error_ RtpError,
) error

func (*ImsMediaListenerProxy) OnOpenSessionSuccess

func (p *ImsMediaListenerProxy) OnOpenSessionSuccess(
	ctx context.Context,
	sessionId int32,
	session IImsMediaSession,
) error

func (*ImsMediaListenerProxy) OnSessionClosed

func (p *ImsMediaListenerProxy) OnSessionClosed(
	ctx context.Context,
	sessionId int32,
) error

type ImsMediaListenerStub

type ImsMediaListenerStub struct {
	Impl      IImsMediaListener
	Transport binder.VersionAwareTransport
}

ImsMediaListenerStub dispatches incoming binder transactions to a typed IImsMediaListener implementation.

func (*ImsMediaListenerStub) Descriptor

func (s *ImsMediaListenerStub) Descriptor() string

func (*ImsMediaListenerStub) OnTransaction

func (s *ImsMediaListenerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type ImsMediaProxy

type ImsMediaProxy struct {
	Remote binder.IBinder
}

func NewImsMediaProxy

func NewImsMediaProxy(
	remote binder.IBinder,
) *ImsMediaProxy

func (*ImsMediaProxy) AsBinder

func (p *ImsMediaProxy) AsBinder() binder.IBinder

func (*ImsMediaProxy) CloseSession

func (p *ImsMediaProxy) CloseSession(
	ctx context.Context,
	sessionId int32,
) error

func (*ImsMediaProxy) OpenSession

func (p *ImsMediaProxy) OpenSession(
	ctx context.Context,
	sessionId int32,
	localEndPoint LocalEndPoint,
	config RtpConfig,
) error

func (*ImsMediaProxy) SetListener

func (p *ImsMediaProxy) SetListener(
	ctx context.Context,
	mediaListener IImsMediaListener,
) error

type ImsMediaSessionListenerProxy

type ImsMediaSessionListenerProxy struct {
	Remote binder.IBinder
}

func NewImsMediaSessionListenerProxy

func NewImsMediaSessionListenerProxy(
	remote binder.IBinder,
) *ImsMediaSessionListenerProxy

func (*ImsMediaSessionListenerProxy) AsBinder

func (*ImsMediaSessionListenerProxy) NotifyMediaQualityStatus

func (p *ImsMediaSessionListenerProxy) NotifyMediaQualityStatus(
	ctx context.Context,
	quality MediaQualityStatus,
) error

func (*ImsMediaSessionListenerProxy) NotifyRtpReceptionStats

func (p *ImsMediaSessionListenerProxy) NotifyRtpReceptionStats(
	ctx context.Context,
	stats RtpReceptionStats,
) error

func (*ImsMediaSessionListenerProxy) OnCallQualityChanged

func (p *ImsMediaSessionListenerProxy) OnCallQualityChanged(
	ctx context.Context,
	callQuality CallQuality,
) error

func (*ImsMediaSessionListenerProxy) OnDtmfReceived

func (p *ImsMediaSessionListenerProxy) OnDtmfReceived(
	ctx context.Context,
	dtmfDigit uint16,
	durationMs int32,
) error

func (*ImsMediaSessionListenerProxy) OnFirstMediaPacketReceived

func (p *ImsMediaSessionListenerProxy) OnFirstMediaPacketReceived(
	ctx context.Context,
	config RtpConfig,
) error

func (*ImsMediaSessionListenerProxy) OnHeaderExtensionReceived

func (p *ImsMediaSessionListenerProxy) OnHeaderExtensionReceived(
	ctx context.Context,
	extensions []RtpHeaderExtension,
) error

func (*ImsMediaSessionListenerProxy) OnModifySessionResponse

func (p *ImsMediaSessionListenerProxy) OnModifySessionResponse(
	ctx context.Context,
	config RtpConfig,
	error_ RtpError,
) error

func (*ImsMediaSessionListenerProxy) TriggerAnbrQuery

func (p *ImsMediaSessionListenerProxy) TriggerAnbrQuery(
	ctx context.Context,
	config RtpConfig,
) error

type ImsMediaSessionListenerStub

type ImsMediaSessionListenerStub struct {
	Impl      IImsMediaSessionListener
	Transport binder.VersionAwareTransport
}

ImsMediaSessionListenerStub dispatches incoming binder transactions to a typed IImsMediaSessionListener implementation.

func (*ImsMediaSessionListenerStub) Descriptor

func (s *ImsMediaSessionListenerStub) Descriptor() string

func (*ImsMediaSessionListenerStub) OnTransaction

func (s *ImsMediaSessionListenerStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type ImsMediaSessionProxy

type ImsMediaSessionProxy struct {
	Remote binder.IBinder
}

func NewImsMediaSessionProxy

func NewImsMediaSessionProxy(
	remote binder.IBinder,
) *ImsMediaSessionProxy

func (*ImsMediaSessionProxy) AdjustDelay

func (p *ImsMediaSessionProxy) AdjustDelay(
	ctx context.Context,
	delayMs int32,
) error

func (*ImsMediaSessionProxy) AsBinder

func (p *ImsMediaSessionProxy) AsBinder() binder.IBinder

func (*ImsMediaSessionProxy) ModifySession

func (p *ImsMediaSessionProxy) ModifySession(
	ctx context.Context,
	config RtpConfig,
) error

func (*ImsMediaSessionProxy) RequestRtpReceptionStats

func (p *ImsMediaSessionProxy) RequestRtpReceptionStats(
	ctx context.Context,
	intervalMs int32,
) error

func (*ImsMediaSessionProxy) SendDtmf

func (p *ImsMediaSessionProxy) SendDtmf(
	ctx context.Context,
	dtmfDigit uint16,
	duration int32,
) error

func (*ImsMediaSessionProxy) SendHeaderExtension

func (p *ImsMediaSessionProxy) SendHeaderExtension(
	ctx context.Context,
	extensions []RtpHeaderExtension,
) error

func (*ImsMediaSessionProxy) SetListener

func (p *ImsMediaSessionProxy) SetListener(
	ctx context.Context,
	sessionListener IImsMediaSessionListener,
) error

func (*ImsMediaSessionProxy) SetMediaQualityThreshold

func (p *ImsMediaSessionProxy) SetMediaQualityThreshold(
	ctx context.Context,
	threshold MediaQualityThreshold,
) error

func (*ImsMediaSessionProxy) StartDtmf

func (p *ImsMediaSessionProxy) StartDtmf(
	ctx context.Context,
	dtmfDigit uint16,
) error

func (*ImsMediaSessionProxy) StopDtmf

func (p *ImsMediaSessionProxy) StopDtmf(
	ctx context.Context,
) error

type ImsMediaSessionStub

type ImsMediaSessionStub struct {
	Impl      IImsMediaSession
	Transport binder.VersionAwareTransport
}

ImsMediaSessionStub dispatches incoming binder transactions to a typed IImsMediaSession implementation.

func (*ImsMediaSessionStub) Descriptor

func (s *ImsMediaSessionStub) Descriptor() string

func (*ImsMediaSessionStub) OnTransaction

func (s *ImsMediaSessionStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type ImsMediaStub

type ImsMediaStub struct {
	Impl      IImsMedia
	Transport binder.VersionAwareTransport
}

ImsMediaStub dispatches incoming binder transactions to a typed IImsMedia implementation.

func (*ImsMediaStub) Descriptor

func (s *ImsMediaStub) Descriptor() string

func (*ImsMediaStub) OnTransaction

func (s *ImsMediaStub) OnTransaction(
	ctx context.Context,
	code binder.TransactionCode,
	_data *parcel.Parcel,
) (*parcel.Parcel, error)

type LocalEndPoint

type LocalEndPoint struct {
	RtpFd   int32
	RtcpFd  int32
	ModemId int32
}

func (*LocalEndPoint) MarshalParcel

func (s *LocalEndPoint) MarshalParcel(
	p *parcel.Parcel,
) error

func (*LocalEndPoint) UnmarshalParcel

func (s *LocalEndPoint) UnmarshalParcel(
	p *parcel.Parcel,
) error

type MediaDirection

type MediaDirection int32
const (
	MediaDirectionNoFlow MediaDirection = 0
	MediaDirectionRtpTx  MediaDirection = (1 << 0)
	MediaDirectionRtpRx  MediaDirection = (1 << 1)
	MediaDirectionRtcpTx MediaDirection = (1 << 2)
	MediaDirectionRtcpRx MediaDirection = (1 << 3)
)

type MediaQualityStatus

type MediaQualityStatus struct {
	RtpInactivityTimeMillis  int32
	RtcpInactivityTimeMillis int32
	RtpPacketLossRate        int32
	RtpJitterMillis          int32
}

func (*MediaQualityStatus) MarshalParcel

func (s *MediaQualityStatus) MarshalParcel(
	p *parcel.Parcel,
) error

func (*MediaQualityStatus) UnmarshalParcel

func (s *MediaQualityStatus) UnmarshalParcel(
	p *parcel.Parcel,
) error

type MediaQualityThreshold

type MediaQualityThreshold struct {
	RtpInactivityTimerMillis    []int32
	RtcpInactivityTimerMillis   int32
	RtpPacketLossDurationMillis int32
	RtpHysteresisTimeInMillis   int32
	RtpPacketLossRate           []int32
	RtpJitterMillis             []int32
	NotifyCurrentStatus         bool
}

func (*MediaQualityThreshold) MarshalParcel

func (s *MediaQualityThreshold) MarshalParcel(
	p *parcel.Parcel,
) error

func (*MediaQualityThreshold) UnmarshalParcel

func (s *MediaQualityThreshold) UnmarshalParcel(
	p *parcel.Parcel,
) error

type RtcpConfig

type RtcpConfig struct {
	CanonicalName       string
	TransmitPort        int32
	TransmitIntervalSec int32
	RtcpXrBlocks        int32
}

func (*RtcpConfig) MarshalParcel

func (s *RtcpConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*RtcpConfig) UnmarshalParcel

func (s *RtcpConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type RtcpXrReportBlockType

type RtcpXrReportBlockType int32
const (
	RtcpXrReportBlockTypeRtcpxrNone                             RtcpXrReportBlockType = 0
	RtcpXrReportBlockTypeRtcpxrLossRleReportBlock               RtcpXrReportBlockType = (1 << 0)
	RtcpXrReportBlockTypeRtcpxrDuplicateRleReportBlock          RtcpXrReportBlockType = (1 << 1)
	RtcpXrReportBlockTypeRtcpxrPacketReceiptTimesReportBlock    RtcpXrReportBlockType = (1 << 2)
	RtcpXrReportBlockTypeRtcpxrReceiverReferenceTimeReportBlock RtcpXrReportBlockType = (1 << 3)
	RtcpXrReportBlockTypeRtcpxrDlrrReportBlock                  RtcpXrReportBlockType = (1 << 4)
	RtcpXrReportBlockTypeRtcpxrStatisticsSummaryReportBlock     RtcpXrReportBlockType = (1 << 5)
	RtcpXrReportBlockTypeRtcpxrVoipMetricsReportBlock           RtcpXrReportBlockType = (1 << 6)
)

type RtpAddress

type RtpAddress struct {
	IpAddress  string
	PortNumber int32
}

func (*RtpAddress) MarshalParcel

func (s *RtpAddress) MarshalParcel(
	p *parcel.Parcel,
) error

func (*RtpAddress) UnmarshalParcel

func (s *RtpAddress) UnmarshalParcel(
	p *parcel.Parcel,
) error

type RtpConfig

type RtpConfig struct {
	Direction      int32
	AccessNetwork  radio.AccessNetwork
	RemoteAddress  RtpAddress
	SessionParams  RtpSessionParams
	RtcpConfig     RtcpConfig
	AnbrModeParams AnbrMode
}

func (*RtpConfig) MarshalParcel

func (s *RtpConfig) MarshalParcel(
	p *parcel.Parcel,
) error

func (*RtpConfig) UnmarshalParcel

func (s *RtpConfig) UnmarshalParcel(
	p *parcel.Parcel,
) error

type RtpError

type RtpError int32
const (
	RtpErrorNONE            RtpError = 0
	RtpErrorInvalidParam    RtpError = 1
	RtpErrorNotReady        RtpError = 2
	RtpErrorNoMemory        RtpError = 3
	RtpErrorNoResources     RtpError = 4
	RtpErrorPortUnavailable RtpError = 5
	RtpErrorNotSupported    RtpError = 6
)

type RtpHeaderExtension

type RtpHeaderExtension struct {
	LocalId int32
	Data    []byte
}

func (*RtpHeaderExtension) MarshalParcel

func (s *RtpHeaderExtension) MarshalParcel(
	p *parcel.Parcel,
) error

func (*RtpHeaderExtension) UnmarshalParcel

func (s *RtpHeaderExtension) UnmarshalParcel(
	p *parcel.Parcel,
) error

type RtpReceptionStats

type RtpReceptionStats struct {
	RtpTimestamp       int32
	RtcpSrTimestamp    int32
	RtcpSrNtpTimestamp int64
	JitterBufferMs     int32
	RoundTripTimeMs    int32
}

func (*RtpReceptionStats) MarshalParcel

func (s *RtpReceptionStats) MarshalParcel(
	p *parcel.Parcel,
) error

func (*RtpReceptionStats) UnmarshalParcel

func (s *RtpReceptionStats) UnmarshalParcel(
	p *parcel.Parcel,
) error

type RtpSessionParams

type RtpSessionParams struct {
	PTimeMillis    byte
	MaxPtimeMillis int32
	Dscp           byte
	DtmfParams     DtmfParams
	CodecParams    CodecParams
}

func (*RtpSessionParams) MarshalParcel

func (s *RtpSessionParams) MarshalParcel(
	p *parcel.Parcel,
) error

func (*RtpSessionParams) UnmarshalParcel

func (s *RtpSessionParams) UnmarshalParcel(
	p *parcel.Parcel,
) error

Jump to

Keyboard shortcuts

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