P2PClient class

Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
onReceiveNewSession SessionStateCallback<P2PSession>?
getter/setter pairoverride
onSessionClosed SessionStateCallback<P2PSession>?
getter/setter pairoverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createCallSession(int callType, Set<int> opponentsIds, {bool startScreenSharing = false, DesktopCapturerSource? desktopCapturerSource, bool useIOSBroadcasting = false}) P2PSession
Creates the instance of ConferenceSession. callType - can be CallType.VIDEO_CALL or CallType.AUDIO_CALL. opponentsIds - the set of ids of users you want to call. startScreenSharing - set true if want to initialize the call with Screen sharing feature. desktopCapturerSource - the desktop capturer source, if it is null the default Window/Screen will be captured. Use only for desktop platforms. Use ScreenSelectDialog to give the user a choice of the shared Window/Screen. useIOSBroadcasting - set true if the Broadcast Upload Extension was added to your iOS project for implementation Screen Sharing feature, otherwise set false and in-app Screen Sharing will be started. Used for iOS platform only. See our step-by-step guide on how to integrate the Screen Broadcasting feature into your iOS app.
override
destroy() → void
override
init() → void
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onCallAcceptReceive(CubeRTCSessionDescription cubeRtcSdp, CubeUser cubeUser, RTCSessionDescription sdp) → void
onCandidatesReceive(List<RTCIceCandidate?> candidates, CubeRTCSessionDescription cubeRtcSdp, CubeUser cubeUser) → void
onHungUpReceive(CubeRTCSessionDescription cubeRtcSdp, CubeUser cubeUser) → void
onNewCallReceive(CubeRTCSessionDescription cubeRtcSdp, CubeUser cubeUser, RTCSessionDescription sdp) → void
onRejectReceive(CubeRTCSessionDescription cubeRtcSdp, CubeUser cubeUser) → void
onUpdateCallReceive(CubeRTCSessionDescription cubeSdp, CubeUser cubeUser, RTCSessionDescription sdp) → void
removeSession(P2PSession session) → void
sendSignalingMessage(MessageStanza signalingMessage) → void
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance P2PClient
no setter

Constants

TAG → const String