Methods
-
getMediaOptions()
-
Get media options (WebRTC and/or Flash) that are supported by the browser.
Returns:
mediaOptions Object that contains properties flash and webrtc.
Type Definitions
-
ChatConfig
-
A type that represents the configuration for wsc.Chat.
Type:
- Object
- Default Value:
- {'acceptTypes' : ['text/plain']}
Properties:
Name Type Description acceptTypesArray The "accept-types" attribute contains a list of media types that the endpoint is willing to receive. It may contain zero or more registered media-types, or "*".
acceptWrappedTypesArray The "accept-wrapped-types" attribute contains a list of media types that the endpoint is willing to receive in an MSRP message with multipart content, but may not be used as the outermost type of the message. It may contain zero or more registered media-types, or "*".
selfMaxSizeNumber indicates the largest message self wishes to accept. It may take any whole numeric value, specified in octets.
targetMaxSizeNumber indicates the largest message target wished to accept. It may take any whole numeric value, specified in octets.
-
ChatMessage
-
A type that represents the chat message that send/receive by wsc.Chat.
Type:
- Object
Properties:
Name Type Description contentTypeString The type of the chat message.
contentString The content of the chat message.
-
ConnectionState
-
A type that represents the connection state for Chat or File Transfer.
Type:
- Object
Properties:
Name Type Description fileTransferIdString Optional, the file transfer ID.
statewsc.ConnectionStateEnum the current state.
descriptionString Optional. The description for current state.
-
FileConfig
-
A type that represents the configuration of the file that to be sent or received by wsc.FileTransfer package.
Type:
- Object
Properties:
Name Type Description filewindow.File The file instance.
propsFileProperty The file properties.
-
FileData
-
A type that represents the data received by wsc.FileTransfer.
Type:
- Object
Properties:
Name Type Description fileTransferIdString The file transfer id.
rangeObject The range of the data in the total file.
Properties
Name Type Description startNumber The start byte of the data.
endNumber The end byte of the data.
totalNumber The total file data byte number.
contentwindow.Uint8Array The content.
-
FileProgressData
-
A type that represents the current sending file progress.
Type:
- Object
Properties:
Name Type Description fileTransferIdString The file transfer ID.
rangeObject The range of the data in the total file.
Properties
Name Type Description startNumber The start byte of the data.
endNumber The end byte of the data.
totalNumber The total file data byte number.
-
FileProperty
-
A type that represents the properties of the file that to be sent or received by wsc.FileTransfer package.
Type:
- Object
Properties:
Name Type Description nameString The file name.
sizeNumber The file size in octets.
typeString The MIME type of the file.
hashesArray Hash computation of the file, it includes a set of hash algorithm and its value that in format : {algorithmName : '', value : ''}.
dispositionString It is the suggestion to peer point how to handle the file. There are 2 options: 'render' indicates that a file should be automatically rendered; 'attachment' indicates to the file receiver that the file should not be rendered at the reception of the file. The default value is 'render', that is, the absence of a 'disposition' attribute has the same semantics as 'render'.
descriptionString The description of the file.
creationTimeString The file creation time.
modificationTimeString The file modification time.
readTimeString The file read time.
iconString cid-url for icon of the file (for image files in general).
startOffsetString Start offset of file range, refers to the octet position of the file where the file transfer should start. The first octet of a file is denoted by the ordinal number "1".
stopOffsetString Stop offset of file range, refers to the octet position of the file where the file transfer should stop, inclusive of this octet. The "stop offset" value MAY contain a "*" if the total size of the file is not known in advance.
directionString Direction of the file transfer. There are two options: 'send' to push file, and 'receive' to pull the file.
-
MessagingMessage
-
An type that represents the message that was sent or received by wsc.Messaging
Type:
- Object
Properties:
Name Type Description msgIdString the message ID, it is generated by SDK.
initiatorString the sender of the message.
targetString the receiver of the message.
contentString the text message content.
-
Query
-
A type that represents the query information that was sent or received by wsc.CapabilityExchange
Type:
- Object
Properties:
Name Type Description ssidString the subSession ID; it is generated by SDK.
initiatorString the initiator of the capability enquiry.
targetString the capability enquiry target.
initiatorCapabilityString the capability description of the enquiry initiator.
targetCapabilityString the capability description of the enquiry target.