You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/voice-video-calling/includes/data-channel/data-channel-android.md
+30-31Lines changed: 30 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,12 +5,11 @@ titleSuffix: An Azure Communication Services document
5
5
description: In this quickstart, you learn how to add data channel messaging to your existing Android calling app using Azure Communication Services.
> Please be aware that the current Data Channel feature API doesn't support direct messaging between a web browser and a native app in a peer-to-peer call scenario.
@@ -25,24 +24,21 @@ Refer to the [Voice Calling Quickstart](../../getting-started-with-calling.md?pi
25
24
| DataChannelCallFeature | Used to start and manage data channel feature. |
26
25
| DataChannelSender | Used to manage a data channel as a sender and send data. |
27
26
| DataChannelReceiver | Used to manage a data channel as a receiver and receive data. |
28
-
| DataChannelSenderCreateOptions | Used for representing options to create a data channel sender. |
29
-
### Events
30
-
| Name | Description |
31
-
| - | - |
32
-
| DataChannelReceiverCreatedEvent | Describes the event when a receiver is created. A new receiver is created when receiving a data message from another endpoint through a new data channel for the first time. |
33
-
| DataChannelReceiverMessageReceivedEvent | Describes the event when a data message is received and ready to be fetched. |
34
-
| DataChannelReceiverClosedEvent | Describes the event when a data channel receiver is to be closed. |
35
-
### Listeners
36
-
| Name | Description |
37
-
| - | - |
38
-
| DataChannelReceiverCreatedListener | Used to handle `DataChannelReceiverCreatedEvent`. |
39
-
| DataChannelReceiverMessageReceivedListener | Used to handle `DataChannelReceiverMessageReceivedEvent`. |
40
-
| DataChannelReceiverClosedListener | Used to handle `DataChannelReceiverClosedEvent`. |
27
+
| DataChannelSenderOptions | Used for representing options to create a data channel sender. |
41
28
### Enums
42
29
| Name | Description |
43
30
| - | - |
44
31
| DataChannelPriority | Describes the priority options of data channel. Values: { `NORMAL`, `HIGH` }. |
45
32
| DataChannelReliability | Describes the reliability options of data channel. Values: { `LOSSY`, `DURABLE` }. |
33
+
### Error Code
34
+
| Name | Description |
35
+
| - | - |
36
+
|_DATA_CHANNEL_FAILED_TO_START_|`getDataChannelSender()` can fail with this error code, indicating underlying Data Channel is not ready to be used. |
37
+
|_DATA_CHANNEL_RANDOM_ID_NOT_AVAILABLE_|`getDataChannelSender()` can fail with this error code, indicating all available random channel IDs have already been used. |
38
+
|_DATA_CHANNEL_SENDER_CLOSED_|`sendMessage()` can fail with this error code, indicating the sender has already been closed previously. |
39
+
|_DATA_CHANNEL_MESSAGE_SIZE_OVER_LIMIT_|`sendMessage()` can fail with this error code, indicating the message data size exceeds the limit. You can get the message size limit using `getMaxMessageSizeInBytes()` in `DataChannelSender`. |
40
+
|_DATA_CHANNEL_MESSAGE_FAILURE_FOR_BANDWIDTH_|`sendMessage()` can fail with this error code, indicating a failure in sending the message due to not enough bandwidth. |
41
+
|_DATA_CHANNEL_MESSAGE_FAILURE_FOR_TRAFFIC_LIMIT_|`sendMessage()` can fail with this error code, indicating a failure in sending the message due to the overall usage of Data Channel not in compliance with the traffic limit rules. Refer to [Data Channel Concept Document](../../../../concepts/voice-video-calling/data-channel.md) for details of the traffic limit. |
Copy file name to clipboardExpand all lines: articles/communication-services/quickstarts/voice-video-calling/includes/data-channel/data-channel-ios.md
+37-35Lines changed: 37 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ titleSuffix: An Azure Communication Services document
5
5
description: In this quickstart, you learn how to add data channel messaging to your existing iOS calling app using Azure Communication Services.
6
6
author: sloanster
7
7
services: azure-communication-services
8
-
ms.date: 05/04/2023
8
+
ms.date: 03/01/2024
9
9
ms.topic: include
10
10
ms.service: azure-communication-services
11
11
ms.subservice: calling
@@ -25,18 +25,21 @@ Refer to the [Voice Calling Quickstart](../../getting-started-with-calling.md?pi
25
25
| DataChannelCallFeature | Used to start and manage data channel feature. |
26
26
| DataChannelSender | Used to manage a data channel as a sender and send data. |
27
27
| DataChannelReceiver | Used to manage a data channel as a receiver and receive data. |
28
-
| DataChannelSenderCreateOptions | Used for representing options to create a data channel sender. |
29
-
### Delegates
30
-
| Name | Description |
31
-
| - | - |
32
-
| didCreateDataChannelReceiver | Handles the event when a receiver is created. A new receiver is created when receiving a data message from another endpoint through a new data channel for the first time. |
33
-
| didReceiveMessage | Handles the event when a data message is received and ready to be fetched. |
34
-
| didClose | Handles the event when a data channel receiver is to be closed. |
28
+
| DataChannelSenderOptions | Used for representing options to create a data channel sender. |
35
29
### Enums
36
30
| Name | Description |
37
31
| - | - |
38
32
| DataChannelPriority | Describes the priority options of data channel. Values: { `normal`, `high` }. |
39
33
| DataChannelReliability | Describes the reliability options of data channel. Values: { `lossy`, `durable` }. |
34
+
### Error Code
35
+
| Name | Description |
36
+
| - | - |
37
+
|_dataChannelFailedToStart_|`getDataChannelSender()` can fail with this error code, indicating underlying Data Channel is not ready to be used. |
38
+
|_dataChannelRandomIdNotAvailable_|`getDataChannelSender()` can fail with this error code, indicating all available random channel IDs have already been used. |
39
+
|_dataChannelSenderClosed_|`sendMessage()` can fail with this error code, indicating the sender has already been closed previously. |
40
+
|_dataChannelMessageSizeOverLimit_|`sendMessage()` can fail with this error code, indicating the message data size exceeds the limit. You can get the message size limit using `maxMessageSizeInBytes` in `DataChannelSender`. |
41
+
|_dataChannelMessageFailureForBandwidth_|`sendMessage()` can fail with this error code, indicating a failure in sending the message due to not enough bandwidth. |
42
+
|_dataChannelMessageFailureForTrafficLimit_|`sendMessage()` can fail with this error code, indicating a failure in sending the message due to the overall usage of Data Channel not in compliance with the traffic limit rules. Refer to [Data Channel Concept Document](../../../../concepts/voice-video-calling/data-channel.md) for details of the traffic limit. |
40
43
### Methods
41
44
#### Enable Data Channel feature
42
45
@@ -47,41 +50,36 @@ var dataChannelCallFeature = self.call!.feature(Features.dataChannel)
0 commit comments