Methods
-
getUserAgentUsername()
-
Returns:
- Type
- string
-
setLogLevel(level)
-
Sets log level for the Api using ApiRTC.LOG_LEVEL_
constants Parameters:
Name Type Description levelInteger log level to set
Returns:
- Type
- Void
-
updateConferencePresence()
-
Wrapper for updateConferencePresence so it always resolves.
Returns:
Always resolved.
- Type
- Promise.<any>
Type Definitions
-
Agent
-
Type:
- Object
Properties:
Name Type Description contactContact titlestring nicknamestring isPreferedboolean -
AIEDrawingConfig
-
Type:
- Object
Properties:
Name Type Description colorString The default color used for bounding boxes and text backgrounds
textColorString The default color used for text
lineWidthnumber Width of the bounding boxes lines
fontString The font of the canvas rendering context
colorMapobject Object which fields are classes to detect and which values are the color to use to draw the respecting class
-
AIEFilter
-
Type:
- Object
Properties:
Name Type Argument Default Description modelNameString The name of the model loaded in the AI server to call for object detection
scoreThreshnumber <optional>
Score threshold to apply on the objectness scores of detected objects, between 0 and 1
maxBoxesnumber <optional>
Maximum number of boxes detected by the model
forceReloadboolean <optional>
If set to true the model will be loaded even if it has already been loaded
classFilterList.<string> <optional>
all List of the classes to detect, set "all" to detect all objects, "all" is the default value if not set
drawingConfigAIEDrawingConfig <optional>
Object containing the parameters for bounding box drawing
-
AnswerOptions
-
Type:
- Object
Properties:
Name Type Description mediaTypeForIncomingCallString This enables to choose the media type to establish a call.
Value can be : VIDEO (audio and video will be used to establish call), AUDIO (audio only), VIDEOONLY, NONE (establishing call without sharing any media)mediaRoutingModeString This enables to choose the media routing mode.
Value can be : hostOnly, stun, stunOnly, turn, turnOnlyturnServerAddressString This enables to change the turn server used for the call
mutedString This parameter enables to start a muted call.
Value can be : VIDEO (audio and video will be muted), AUDIOONLY (only audio will be muted), VIDEOONLY (only video will be muted)preferVP9CodecBoolean True to activate VP9 as preferred codec
-
BackgroundFilter
-
Type:
- Object
Properties:
Name Type Argument Description backgroundModeString The name of the effect to apply on background. Accepted values are : blur, transparent and image
imageobject <optional>
The data of the image to show in background if backgroundMode is set to : image
-
CallIceErrorDescriptor
-
Type:
- object
Properties:
Name Type Description iceStatestring Either 'failed' or 'disconnected'.
previousIceStatestring Either 'disconnected' or undefined.
clientIdstring Local user ID from where this descriptor come from.
remoteIdstring Distant user ID from where this descriptor come from.
-
CallOptions
-
Type:
- Object
Properties:
Name Type Description audioOnlyBoolean sets the call to audio only, defaults to false
mediaTypeForOutgoingCallString This enables to choose the media type to establish a call.
Value can be : VIDEO (audio and video will be used to establish call), AUDIO (audio only), VIDEOONLY, NONE (establishing call without sharing any media)mediaRoutingModeString This enables to choose the media routing mode.
Value can be : hostOnly, stun, stunOnly, turn, turnOnlyturnServerAddressString This enables to change the turn server used for the call
recordBoolean True to activate the call recording on server side
mutedString This parameter enables to start a muted call.
Value can be : VIDEO (audio and video will be muted), AUDIOONLY (only audio will be muted), VIDEOONLY (only video will be muted)cloudConversationIdString Set Cloud Conversation ID.
preferVP9CodecBoolean True to activate VP9 as preferred codec
-
CallStats
-
Type:
- Object
Properties:
Name Type Description audioSentObject Statistics about audio sent.
videoSentObject Statistics about video sent.
audioReceivedObject Statistics about audio received.
videoReceivedObject Statistics about video received.
qualityObject Overall quality score.
-
CloudMediaInfo
-
Type:
- Object
Properties:
Name Type Description urlstring idstring -
ConferenceAccessStatus
-
Type:
- Object
Properties:
Name Type Description accessstring Either GRANTED or NEED_MODERATOR_ACCEPTATION.
rolestring Either moderator, contributor or guest.
moderatorstring User id of conference moderator.
friendlyNamestring Display name of the conference.
-
ConferenceInfo
-
Type:
- Object
Properties:
Name Type Description dtmfCodestring The DTMF code to join via SIP.
endTimenumber The end time (seconds since the epoch).
hasPasswordboolean Whether the conference requires a password to join.
sipNumberstring The telephone number to join the conference.
startTimenumber The start time (seconds since the epoch).
statestring The state of the conference. Either 'archived'. 'closed', 'ongoing', 'open', 'scheduled'.
typestring The type of the conference, Either 'private' or 'public'.
-
ConversationIceErrorDescriptor
-
Type:
- object
Properties:
Name Type Description iceStatestring Either 'failed' or 'disconnected'.
previousIceStatestring Either 'disconnected' or undefined.
modestring Either 'mesh' or 'sfu'.
typestring Either 'publish' or 'subscribe'.
clientIdstring Local user ID from where this descriptor come from.
remoteIdstring Distant user ID from where this descriptor come from.
meshobject Additional information when mode is 'mesh'.
Properties
Name Type Description callerIdstring User ID of caller (subscriber).
callerCallIdstring Call ID for the caller (subscriber).
calleeIdstring User ID of the feed.
calleeCallIdstring Call ID of the feed.
streamobject Feed information when type is 'subscribe'.
Properties
Name Type Description attributesobject Feed attributes when type is 'subscribe'.
Properties
Name Type Description callerIdobject User ID of the feed.
callIdobject Call ID of the feed.
-
ConversationMessage
-
Type:
- Object
Properties:
Name Type Description contentstring timestampnumber uuidstring fromContactBoolean -
ConversationMessage
-
Type:
- Object
Properties:
Name Type Description contentstring content of the message
senderContact sender_idstring timestampDate message send time
dateDate message send time
display_namestring username of the sender
-
CreateStreamFromUserMediaOptions
-
Type:
- Object
Properties:
Name Type Default Description enhancedAudioActivatedboolean add possibility to create an enhanced audio flow (echoCancellation deactivated, noiseReduction deactivated ...) - Only supported on Chrome
facingModestring facingMode should be equal to 'user', 'environment', 'left', 'right' or 'deactivated'.
tryAudioOnlyAfterUserMediaErrorboolean true whether apiRTC should try the call in audio if a userMediaError was detected
-
CreateStreamOptions
-
Type:
- Object
Properties:
Name Type Default Description audioInputIdstring | boolean audio input device id (obtained from UserAgent.fetchUserMediaDevices); set to false if audio track is not requested
videoInputIdstring | boolean video input device id (obtained from UserAgent.fetchUserMediaDevices); set to false if video track is not requested
constraintsobject other MediaTrackConstraints
enhancedAudioActivatedboolean add possibility to create an enhanced audio flow (echoCancellation deactivated, noiseReduction deactivated ...) - Only supported on Chrome
facingModestring facingMode should be equal to 'user', 'environment', 'left', 'right' or 'deactivated'.
filtersArray.<FilterDescriptor> descriptors of media stream filters
tryAudioOnlyAfterUserMediaErrorboolean true whether apiRTC should try the call in audio if a userMediaError was detected. This parameters is prioritary on the registerInformation parameter
-
DefaultDevices
-
Type:
- Object
Properties:
Name Type Description audioInputMediaDevice audioOutputMediaDevice videoInputMediaDevice -
DisconnectOptions
-
Type:
- Object
Properties:
Name Type Description invalidateUserTokenboolean should the user token be invalidated upon disconnection?
-
E2EEOptions
-
Type:
- object
Properties:
Name Type Argument Default Description agreementstring <optional>
"megolm" encryptionstring <optional>
"aes-256-gcm" storagestring <optional>
"circular-buffer" encapsulationstring <optional>
"apzframe" -
EnterpriseInformation
-
Type:
- Object
Properties:
Name Type Description idstring namestring logostring citystring addressstring timeRangesany preferedCCSstring apiKeystring -
EnterpriseTag
-
Type:
- object
Properties:
Name Type Description idstring namestring selectedboolean -
fetchEnterpriseInformationOptions
-
Type:
- Object
Properties:
Name Type Description idstring optional
apiKeystring optional
siteKeystring optional
cloudUrlstring optional
-
fetchSiteAgentsOptions
-
Type:
- Object
Properties:
Name Type Description usePresenceboolean optional
useAcdboolean optional
cloudUrlstring optional
convIdstring optional
-
FileInfo
-
Type:
- Object
Properties:
Name Type Description nameString typeString -
FileInfo
-
Type:
- Object
Properties:
Name Type Description nameString typeString -
FilterDescriptor
-
Type:
- Object
Properties:
Name Type Description typeString Accepted values are : backgroundSubtraction and AIEFilter
optionsBackgroundFilter | AIEFilter -
GeolocationCoordonates
-
Type:
- Object
Properties:
Name Type Description latitudenumber Representing the position's latitude in decimal degrees
longitudenumber Representing the position's longitude in decimal degrees
altitudenumber Representing the psoition's altitude in meters, relative to sea level.
accuracynumber Representing the accuracy of the latitude and longitude properties, expressed in meters
altitudeAccuracynumber Representing the accuracy of the altitude expressed in meters. This value can be null
headingnumber Representing the direction in which the device is traveling. This value specified in degrees. 0 = True North, 90 = East, 270 = West
speednumber Representing the velocity of the device in meters per seconds. This value can be null
-
GeolocationPosition
-
Type:
- Object
Properties:
Name Type Description coordsGeolocationCoordonates Coordinates object defining the current position
timestampnumber A DOMTimestamp representing the time at which the location was retrieved
-
GeolocationPositionError
-
Type:
- Object
Properties:
Name Type Description codenumber Representing the error code: PERMISSION_DENIED, POSITION_UNAVAILABLE or TIMEOUT
messagestring Human-readable DOMString describing the details of the error
-
GeolocationPositionOptions
-
Type:
- Object
Properties:
Name Type Description enableHighAccuracyboolean If false, the device can take the liberty to save resources by responding more quickly and/or using less power.
timeoutnumber Meaning that getCurrentPosition() won't return until the position is available
maximumAgenumber If set to Infinity the device must return a cached position regardless of its age
-
JoinOptions
-
Properties:
Name Type Description sessionSession Needed if user is moderator and to save group messages to cloud
passwordstring Used for password-protected conferences
qualityAdaptationEnabledboolean Enables quality adaptation and disables slowLink adaptation.
-
JoinResult
-
Properties:
Name Type Description modestring Either 'mesh' or undefined.
meshOnlyboolean Whether the mesh mode is the only mode allowed, i.e. no transition to another mode will occur.
-
MediaDeviceList
-
Type:
- Object
Properties:
Name Type Description audioinputObject.<string, MediaDevice> audiooutputObject.<string, MediaDevice> videoinputObject.<string, MediaDevice> -
MediaRecorderOptions
-
Type:
- Object
Properties:
Name Type Description mimeTypeDOMString The container and codec format(s) [RFC2046] for the recording, which may include any parameters that are defined for the format
audioBitsPerSecondunsigned_Long Aggregate target bits per second for encoding of the Audio track(s), if any.
This is a hint for the encoder and the value might be surpassed, not achieved, or only be achieved over a long period of time.videoBitsPerSecondunsigned_Long Aggregate target bits per second for encoding of the Video track(s), if any.
This is a hint for the encoder and the value might be surpassed, not achieved, or only be achieved over a long period of time.bitsPerSecondunsigned_Long Aggregate target bits per second for encoding of all Video and Audio Track(s) present.
This parameter overrides either audioBitsPerSecond or videoBitsPerSecond if present, and might be distributed among the present track encoders as the UA sees fit.
This parameter is a hint for the encoder(s) and the total value might be surpassed, not achieved, or only be achieved over a long period of time. -
MediaStreamTrackFlowStatus
-
Type:
- Object
Properties:
Name Type Description enabledboolean the status of the track that is handled by apiRTC at the application level
mutedboolean the status of the track that is NOT handled by apiRTC, maybe at a browser level, network error, or something else.
-
MediaStreamTrackFlowStatusWithType
-
Type:
- Object
Properties:
Name Type Description typestring the type of track for which a value changed. 'audio'|'video'
enabledboolean the status of the track that is handled by apiRTC at the application level
mutedboolean the status of the track that is NOT handled by apiRTC, maybe at a browser level, network error, or something else.
-
NetworkInformation
-
Type:
- Object
Properties:
Name Type Description testServerstring Server used for network tests
httpPingnumber Http ping RTT value with cloud server (value might be higher than a standard ping)
uploadObject Upload test information
downloadObject Download test information
-
PrivateConferenceCreationOptions
-
Type:
- Object
Properties:
Name Type Description passwordstring optional: if this conference is to be protected via a password, if this option is not set, users will need moderator approval to enter the conference
friendlyNamestring optional: friendly name for this conference to display in your ApiRTC cloud platform
-
PublishOptions
-
Type:
- Object
Properties:
Name Type Description turnServerAddressString Modify the turn server used for the call.
qosObject QoS preferences.
Properties
Name Type Description videoMinBitrateNumber Defines minimum video bitrate.
videoMinQualityString Defines minimum video quality (one of excellent, good, medium or bad).
videoStartBitrateNumber Defines start video bitrate.
videoStartQualityString Defines start video quality (one of upper, excellent, good, medium or bad).
videoForbidInactiveBoolean Forbids video disabling.
audioLabelsObject Array of string(s). Used for stream selection, for conversation recording.
videoLabelsObject Array of string(s). Used for stream selection, for conversation recording.
audioOnlyBoolean true if publish is to be done in audio only. Video is used by default.
videoOnlyBoolean true if publish is to be done in video only. Video is used by default, audioOnly parameter is used in priority.
contextObject User defined context.
distributedBroadcastEnabledBoolean Whether the broadcast of given stream can be distributed on multiple conference servers.
simulcastSimulcastOptions To activate and configure simulcasting.
-
PushDataBufferDescriptor
-
Type:
- Object
Properties:
Name Type Description bufferArrayBuffer The buffer to transfer.
filenameString The name of the data.
filetypeString The MIME type of the data.
sourceTypeString An optional source type.
overwriteboolean Whether the overwriting is enabled. By default, overwriting is not enabled.
ttlnumber The time to live (in seconds) of the data after being successfully pushed. By default, the data is persistent.
checksumEnabledboolean Whether the checksum validation is enabled. Enabled by default.
metadataObject Optional user data.
-
PushDataFileDescriptor
-
Type:
- Object
Properties:
Name Type Description fileFile The file to transfer.
filenameString Optional override of the file name.
filetypeString Optional override of the MIME type.
sourceTypeString An optional source type.
overwriteboolean Whether the overwriting is enabled. By default, overwriting is not enabled.
ttlnumber The time to live (in seconds) of the data after being successfully pushed. By default, the data is persistent.
checksumEnabledboolean Whether the checksum validation is enabled. Enabled by default.
metadataObject Optional user data.
-
PushDataOptions
-
Type:
- Object
Properties:
Name Type Description tokenString token
sessionSession apiRTC session
turnServerAddressString This enables to change the turn server used for the call
-
RecordInformation
-
Type:
- Object
Properties:
Name Type Description filenamestring urlstring -
RecordingInfo
-
Type:
- Object
Properties:
Name Type Description roomNameString Room name.
callIdString Call identifier.
recordTypeString Type of record. Either 'userStream' or 'composite'.
convIdString Conversation identifier.
mediaIdString Media identifier.
mediaURLString Media URL.
recordedFileNameString File name.
-
RegisterInformation
-
Type:
- Object
Properties:
Name Type Default Description cloudUrlstring Registration ApiRTC cloud platform url
cloudFetchRetriesnumber 100 Number of fetch retry when sending request to your ApiRTC cloud platform
cloudFetchRetryDelaynumber 200 Delay in ms between fetch retry when sending request to your ApiRTC cloud platform. This delay is increased on each retry : retryDelay = retryDelay x retryNumber.
idstring Set a predefined id for the session instead of the cloud id or a random id
uristring Set this user agent uri for registration
mcustring Preferred MCU server
ccsstring Preferred CCS server
passwordstring UserAgent password for 'apirtc:' user agents
groupsArray.<string> Presence groups the user agent will join on registration
subscribeToArray.<string> Presence groups the user agent will subscribe to on registration
userDataObject Set initial userData like photo, nickname...
extJsLoadingRetryNbnumber 100 Number of retry on external Js loading
extJsLoadingRetryDelaynumber 200 Delay in ms between two retries on external Js loading. This delay is increased on each retry : retryDelay = retryDelay x retryNumber.
ccsConnectionRetryNbnumber Infinity Number of retry on CCS connection
ccsConnectionRetryDelaynumber 1000 Delay in ms to initially wait before attempting a new reconnection to CCS. Then it is affected with a random factor of 0.5
contactDisconnectionDelaynumber 10000 Delay in ms before a contact is actually seen as offline after it disconnected (eg. short reconnection after page switching)
turnServerAddressstring mp1.apizee.com Turn server address to be used for all calls
userAcceptOnIncomingDataCallboolean true This option will enables you to request user to accept or refuse the data call
userAcceptOnIncomingScreenSharingCallboolean false This option will enables you to request user to accept or refuse the screenSharing call.
idConversionActivatedboolean When this option is activated if id is a string, it will be converted to a numeric value. This is deactivated by default.
idPersistenceTimeoutnumber Time in ms to keep a given id after unregistration.
tokenstring token parameter to be used for user authentication
captcha_tokenstring captcha_token parameter to be used for user authentication
tryAudioOnlyAfterUserMediaErrorboolean true whether apiRTC should try the call in audio if a userMediaError was detected
applicationUUIDstring Application UUID to be used on mobile context (Ionic) to identify the application
-
sendMessageOptions
-
Type:
- Object
Properties:
Name Type Description sessionSession Set this option to save messages in cloud
-
SessionHistoryOptions
-
Type:
- Object
Properties:
Name Type Description countnumber optional : How many messages shold be fetched
lastMessTimestampnumber optional : Date to fetch messages from
lastUUIDnumber optional : first message uuid to fetch from
onlyDestMessageBoolean optional : only fetch messages sent by contact
-
Type:
- Object
- on Chrome, captureSourceTypevalue value is an array that can be ["screen", "window", "tab", "audio"]. This array is used to restrict what will be proposed to the user
- on Firefox, captureSourceTypevalue value is a string that can be "screen", "window" or "application". This string is used to choose what will be proposed to the user
Properties:
Name Type Description captureSourceTypeJSON This enables to choose what the user will be propose to share between screen, applications, browser tab and audio.
Usage is different depending the browser : -
Simulcast
-
Represents user preferences for simulcasting.
The object itself activates the simulcast feature.
The outgoing bitrate may be configured with either the maxBitrate
property or with the encodings property.
If none of the properties is defined, the default settings will be:{ high: { maxBitrate: 900 }, medium: { maxBitrate: 300, scaleResolutionDownBy: 2 }, low: { maxBitrate: 100, scaleResolutionDownBy: 4 } }Type:
- SimulcastOptions
Properties:
Name Type Description maxBitratenumber The maximum outgoing bitrate. In kbps. Optional.
encodingsSimulcastEncodingsOptions If maxBitrate is undefined. Optional.
-
SimulcastEncodingsOptions
-
Represents the encodings preferences for simulcasting. Encodings are
devided into three substreams (high, medium and low), each one with its
own properties.
For every substream, the maxBitrate property is mandatory and the
scaleResolutionDownBy property is optional.
Regarding the maxBitrate property, it is recommended to set sensible
values: the value must be different for every substream, with the highest
value for the high substream and the lowest value for the low substream.
Regarding the scaleResolutionDownBy property, it is recommended to either
not set the value at all, or to set to 2 the medium substream and to 4
the low substream.Type:
- Object
Properties:
Name Type Description highSimulcastQualityOptions The highest quality.
mediumSimulcastQualityOptions The intermediate quality.
lowSimulcastQualityOptions The lowest quality.
-
SimulcastQualityOptions
-
Represents a simulcast stream quality (a.k.a. substream).
Type:
- Object
Properties:
Name Type Description maxBitratenumber The maximum outgoing bitrate. In kbps.
scaleResolutionDownBynumber The resolution scaling factor for medium and low quality. Optional.
-
SnapshotOptions
-
Type:
- Object
Properties:
Name Type Argument Default Description filtersObject <optional>
Properties
Name Type Argument Description blurObject <optional>
A CSS
. Applies a Gaussian blur to the drawing.
It defines the value of the standard deviation to the Gaussian function, i.e., how many pixels on the screen blend into each other;
thus, a larger value will create more blur. A value of 0 leaves the input unchanged.brightnessObject <optional>
A CSS
. Applies a linear multiplier to the drawing, making it appear brighter or darker.
A value under 100% darkens the image, while a value over 100% brightens it.
A value of 0% will create an image that is completely black, while a value of 100% leaves the input unchanged.contrastObject <optional>
A CSS
. Adjusts the contrast of the drawing. A value of 0% will create a drawing that is completely black.
A value of 100% leaves the drawing unchanged.grayscaleObject <optional>
A CSS
. Converts the drawing to grayscale. A value of 100% is completely grayscale.
A value of 0% leaves the drawing unchanged.hue-rotateObject <optional>
A CSS
. Applies a hue rotation on the drawing. A value of 0deg leaves the input unchanged. invertObject <optional>
A CSS
. Inverts the drawing. A value of 100% means complete inversion.
A value of 0% leaves the drawing unchanged.opacityObject <optional>
A CSS
. Applies transparency to the drawing. A value of 0% means completely transparent.
A value of 100% leaves the drawing unchanged.saturateObject <optional>
A CSS
. Saturates the drawing. A value of 0% means completely un-saturated.
A value of 100% leaves the drawing unchanged.sepiaObject <optional>
A CSS
. Converts the drawing to sepia. A value of 100% means completely sepia.
A value of 0% leaves the drawing unchanged.outputObject <optional>
Enable to select the output format . Default format is a Data URI with image/png type. Value can be set to blob
output === 'blob'outputMimeTypeObject <optional>
A DOMString indicating the image format. The default type is image/png.
outputQualityArgumentObject <optional>
A Number between 0 and 1 indicating image quality if the requested type is image/jpeg or image/webp.
If this argument is anything else, the default values 0.92 and 0.80 are used for image/jpeg and image/webp respectively. Other arguments are ignored.widthObject <optional>
Enable to select the width of the snapshot. Default value is the video width
heightObject <optional>
Enable to select the height of the snapshot. Default value is the video height
divIdObject <optional>
div identifier. If defined, snapshot will be done from the defined video div
applyRemotelyboolean <optional>
false This can be used on a remote stream. Set to true if takesnapshot has to be applied remotely.
ie : it will be applied on contact side and then transfered to the resquester using datachannel. -
StatusChangeInfo
-
Type:
- Object
Properties:
Name Type Description statusSymbol idstring id of the invitation
-
StopReason
-
Type:
- Object
- DISPLAY_MEDIA_PUBLISH_ERROR : an error has occured on screen sharing stream publishing
- CREATE_DISPLAY_MEDIA_ERROR : an error has occurred on screen sharing stream creation
- USER_DECLINE : user has declined the remote access invitation
- USER_STOP : user has stopped the remote access process
- AGENT_STOP : agent has stopped the remote access process
- USER_LEFT : user has left the remote access conversation
- AGENT_LEFT : agent has left the remote access conversation
- SCREEN_SHARING_STOP : screen sharing stream has been stopped
Properties:
Name Type Description codeString Used to identify the stop reason
Values setted by apiRTC can be :errorJSON only added for CREATE_DISPLAY_MEDIA_ERROR , DISPLAY_MEDIA_PUBLISH_ERROR
-
StopReason
-
Type:
- Object
- DISPLAY_MEDIA_PUBLISH_ERROR : an error has occured on screen sharing stream publishing
- CREATE_DISPLAY_MEDIA_ERROR : an error has occurred on screen sharing stream creation
- USER_DECLINE : user has declined the remote access invitation
- USER_STOP : user has stopped the remote access process
- AGENT_STOP : agent has stopped the remote access process
- USER_LEFT : user has left the remote access conversation
- AGENT_LEFT : agent has left the remote access conversation
- SCREEN_SHARING_STOP : screen sharing stream has been stopped
Properties:
Name Type Description codeString Used to identify the stop reason
Values setted by apiRTC can be :errorJSON only added for CREATE_DISPLAY_MEDIA_ERROR , DISPLAY_MEDIA_PUBLISH_ERROR
-
StreamInfo
-
Type:
- Object
Properties:
Name Type Description streamIdstring Stream identifier.
contactContact Owner of the stream, null if self or composite.
hasAudioboolean Whether the audio track is active.
hasVideoboolean Whether the video track is active.
isAudioMutedboolean Whether the audio track is muted.
isVideoMutedboolean Whether the video track is muted.
isScreensharingboolean Whether the stream is a screen share.
isSIPboolean Whether the stream comes from a SIP gateway.
isRemoteboolean Whether the stream belongs to a contact (not self).
timeDate receive time
callIdstring Call ID.
typestring Either 'regular', 'composite' or 'replay'.
-
StreamingInfo
-
Type:
- Object
Properties:
Name Type Description roomNameString callIdString clientIdString -
StreamingOptions
-
Type:
- Object
Properties:
Name Type Description servicestring serverstring streamKeystring -
StreamLabels
-
Type:
- Object
Properties:
Name Type Description audioSourceLabelstring Label of the audio source. If the corresponding source has or had no label, the attribute MUST instead return the empty string.
videoSourceLabelstring Label of the video source. If the corresponding source has or had no label, the attribute MUST instead return the empty string.
-
StreamOptions
-
Type:
- Object
Properties:
Name Type Argument Description typestring type of stream value can be 'audio' or 'video'
screensharingboolean <optional>
indicate whether stream in a screensharing or not. Value : true or false
contactContact <optional>
associated contact of the stream
streamIdstreamId <optional>
Identifier of the stream
audioInputMediaDevice <optional>
audioInput device id, can be null
videoInputMediaDevice <optional>
videoInput device id, can be null
-
StreamReleaseOptions
-
Type:
- Object
Properties:
Name Type Default Description releaseParentStreamBoolean true release will also apply on parent streams if exist (streams for noiseReduction, blur ...)
releaseChildrenStreamBoolean true release will also apply on children streams if exist (streams for noiseReduction, blur ...)
-
SubscribeOptions
-
Type:
- Object
Properties:
Name Type Description audioOnlyBoolean : true if publish is to be done in audio only. Video is used by default
videoOnlyBoolean : true if publish is to be done in video only. Video is used by default, audioOnly parameter is used in priority.
turnServerAddressString This enables to change the turn server used for the call
qosObject QoS preferences.
Properties
Name Type Description videoForbidInactiveBoolean Forbids video disabling.
simulcastObject Properties
Name Type Description streamQualitystring Substream selection. Either 'high', 'medium' or 'low'. Default is 'high'.
streamFrameRatestring Temporal layer selection. Either 'high', 'medium' or 'low'. Default is 'high'.
-
TransferInformation
-
Type:
- Object
Properties:
Name Type Description uuidstring file identifier
fileSizenumber total size of the file being transfered
remainingSizenumber remaining data size to be transfered
percentagenumber progress percentage of the transfer
sendChunkNbnumber transfer chunk number
transferDurationnumber current duration of the transfer
lastPacketboolean is this the last packet?
-
UploadOptions
-
Type:
- Object
Properties:
Name Type Description titlestring descriptionstring typestring -
UserAgentCapabities
-
Type:
- Object
Properties:
Name Type Description whiteboardCursorstring value is 'ON' whether cursor on whiteboard is supported on device. 'OFF' if not supported
mediaDeviceChangedstring value is 'ON' whether mediaDeviceChanged event is supported on device. 'OFF' if not supported
webRTCCompliantstring value is 'ON' whether WebRTC is supported on browser. 'OFF' if not supported
screenSharingCompliantstring value is 'ON' whether screenSharing is supported on browser. 'OFF' if not supported
qoSStatCompliantstring value is 'ON' whether QoS Statitics are supported on browser. 'OFF' if not supported
backgroundRemovalstring value is 'ON' whether backgroundRemoval functions (blur/imageBackground) are supported on browser. 'OFF' if not supported
streamCapabilitiesstring value is 'ON' wether Stream capabilities functions are supported on browser. 'OFF' if not supported
noiseReductionstring value is 'ON' wether Noise Reduction functions are supported on browser. 'OFF' if not supported
-
UserAgentOptions
-
Type:
- Object
Properties:
Name Type Default Description uristring Registration URI, must be have the form 'apirtc:<cloud_login>' for cloud users or 'apiKey:<api_key>' for anonymous users
apiRTCMediaDeviceDetectionEnabledboolean Used to enable media device detection on apiRTC when event is not managed by browser (Ex : mediaDeviceChanged not supported on Chrome/Android)
apiRTCMediaDeviceDetectionDelaystring 10000 Used to define the delay of Media Device detection. Check apiRTCMediaDeviceDetectionEnabled.
-
VideoProcessorOptions
-
Type:
- Object
Properties:
Name Type Description backgroundImageUrlstring imageUrl to be used for background subtraction
-
WebSessionInfo
-
Type:
- Object
Properties:
Name Type Description webSessionIdstring conversationIdstring siteKeystring