Interface ISessionListener
Methods
Optional onTrackSubscribeFail
- onTrackSubscribeFail(code: RCRTCCode, session: RCCallSession): void
Optional onRTCStateReport
- onRTCStateReport(report: IRCRTCStateReport, session: RCCallSession): void
Parameters
report: IRCRTCStateReport
Returns void
Optional onTrackPublishFail
- onTrackPublishFail(code: RCRTCCode, session: RCCallSession): void
Optional onICEConnectionStateChange
- onICEConnectionStateChange(state: RTCIceConnectionState, session: RCCallSession): void
Parameters
state: RTCIceConnectionState
Returns void
Optional onSendPacketLoss
- onSendPacketLoss(packetLostRate: number, delay: number, session: RCCallSession): void
Parameters
packetLostRate: number
delay: number
Returns void
Optional onReceivePacketLoss
session上的监听