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
||[Send and receive file attachments](../../../tutorials/file-sharing-tutorial-acs-chat.md)|[Receive file attachments\*](../../../tutorials/file-sharing-tutorial-interop-chat.md)|
50
50
| Chat events | Send and receive typing indicators | Send and receive typing indicators\*\*|
51
51
|| Send and receive read receipts | Send and receive read receipts |
52
52
|| Show when a participant is added or removed | Show when a participant is added or removed |
53
53
| Participants | Show a participant roster | Show a participant roster |
54
54
55
55
56
-
\*Inline image and file attachment support are currently in public preview. Preview APIs and SDKs are provided without a service-level agreement. We recommend that you don't use them for production workloads. Some features might not be supported, or they might have constrained capabilities. For more information, review [Supplemental Terms of Use for Microsoft Azure Previews.](https://azure.microsoft.com/support/legal/preview-supplemental-terms/)
56
+
\*Send rich text messages and file attachment support are currently in public preview. Preview APIs and SDKs are provided without a service-level agreement. We recommend that you don't use them for production workloads. Some features might not be supported, or they might have constrained capabilities. For more information, review [Supplemental Terms of Use for Microsoft Azure Previews.](https://azure.microsoft.com/support/legal/preview-supplemental-terms/)
57
57
58
58
\*\*The display name of typing event from the Teams user might not be shown properly.
Copy file name to clipboardExpand all lines: articles/communication-services/tutorials/inline-image-tutorial-interop-chat.md
+31-8Lines changed: 31 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,19 @@ ms.subservice: chat
13
13
14
14
# Enable inline image using UI Library in Teams Interoperability Chat
15
15
16
-
In a Teams Interoperability Chat ("Interop Chat"), we can enable Azure Communication Service end users to receive inline images sent by Teams users. Currently, the Azure Communication Service end user is able to only receive inline images from the Teams user. Refer to [UI Library Use Cases](../concepts/ui-library/ui-library-use-cases.md) to learn more.
16
+
In a Teams Interoperability Chat ("Interop Chat"), we can enable Azure Communication Service end users to receive inline images sent by Teams users. Additionally, when rich text editor is enabled, Azure Communication Service end users can send inline images to Teams users. Refer to [UI Library Use Cases](../concepts/ui-library/ui-library-use-cases.md) to learn more.
17
17
18
-
>[!IMPORTANT]
18
+
>[!IMPORTANT]
19
19
>
20
-
>Inline image feature comes with the CallWithChat Composite without additional setups.
20
+
> Receiving inline images feature comes with the CallWithChat Composite without additional setups.
21
+
> Sending inline images feature can be enabled by set `richTextEditor` to true under the CallWithChatCompositeOptions.
22
+
23
+
> [!IMPORTANT]
24
+
> The sending inline image feature of Azure Communication Services is currently in preview.
25
+
>
26
+
> Preview APIs and SDKs are provided without a service-level agreement. We recommend that you don't use them for production workloads. Some features might not be supported, or they might have constrained capabilities.
21
27
>
28
+
> For more information, review [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
22
29
23
30
24
31
## Download code
@@ -31,14 +38,14 @@ Access the code for this tutorial on [GitHub](https://github.com/Azure-Samples/c
31
38
-[Visual Studio Code](https://code.visualstudio.com/) on one of the [supported platforms](https://code.visualstudio.com/docs/supporting/requirements#_platforms).
32
39
-[Node.js](https://nodejs.org/), Active LTS and Maintenance LTS versions. Use the `node --version` command to check your version.
33
40
- An active Communication Services resource and connection string. [Create a Communication Services resource](../quickstarts/create-communication-resource.md).
34
-
- Using the UI library version [1.15.0](https://www.npmjs.com/package/@azure/communication-react/v/1.15.0) or the latest.
41
+
- Using the UI library version [1.15.0](https://www.npmjs.com/package/@azure/communication-react/v/1.15.0) or the latest for receiving inline images. Using the UI library version [1.19.0-beta.1](https://www.npmjs.com/package/@azure/communication-react/v/1.19.0-beta.1) or the latest beta version for sending inline images.
35
42
- Have a Teams meeting created and the meeting link ready.
36
43
- Be familiar with how [ChatWithChat Composite](https://azure.github.io/communication-ui-library/?path=/docs/composites-call-with-chat-basicexample--basic-example) works.
37
44
38
45
39
46
## Background
40
47
41
-
First of all, we need to understand that Teams Interop Chat has to part of a Teams meeting currently. When the Teams user creates an online meeting, a chat thread would be created and associated with the meeting. To enable the Azure Communication Service end user joining the chat and starting to send/receive messages, a meeting participant (a Teams user) would need to admit them to the call first. Otherwise, they don't have access to the chat.
48
+
First of all, we need to understand that Teams Interop Chat has to be part of a Teams meeting currently. When the Teams user creates an online meeting, a chat thread would be created and associated with the meeting. To enable the Azure Communication Service end user joining the chat and starting to send/receive messages, a meeting participant (a Teams user) would need to admit them to the call first. Otherwise, they don't have access to the chat.
42
49
43
50
Once the Azure Communication Service end user is admitted to the call, they would be able to start to chat with other participants on the call. In this tutorial, we're checking out how inline image works in Interop chat.
44
51
@@ -65,15 +72,24 @@ export type CallWithChatExampleProps = {
65
72
callInvitationURL?: string;
66
73
};
67
74
75
+
```
76
+
There no specific setup needed to enable receiving inline images. However, to be able to send inline images, `richTextEditor` function need to be enabled through the `CallWithChatExampleProps`. Here's a code snippet on how to enable it:
77
+
```js
78
+
<CallWithChatExperience
79
+
// ...any other call with chat props
80
+
compositeOptions={{ richTextEditor:true }}
81
+
/>
82
+
68
83
```
69
84
85
+
70
86
To be able to start the Composite for meeting chat, we need to pass `TeamsMeetingLinkLocator`, which looks like this:
71
87
72
88
```js
73
89
{ "meetingLink":"<TEAMS_MEETING_LINK>" }
74
90
```
75
91
76
-
This is all you need - and there's no other setup needed to enable inline image specifically.
92
+
This is all you need - and there's no other setup needed.
77
93
78
94
79
95
## Run the code
@@ -88,12 +104,19 @@ Simply click on the chat button located in the bottom to reveal the chat panel a
88
104
89
105

90
106
91
-
Note that in a Teams Interop Chat, we currently only support Azure Communication Service end user to receive inline images sent by the Teams user. To learn more about what features are supported, refer to the [UI Library use cases](../concepts/ui-library/ui-library-use-cases.md)
107
+
108
+
When sending inline images is enabled, you should see something like the following screenshot:
109
+

110
+
111
+

112
+
92
113
93
114
## Known Issues
94
115
95
116
* The UI library might not support certain GIF images at this time. The user might receive a static image instead.
96
-
* the Web UI library doesn't support Clips (short videos) sent by the Teams users at this time.
117
+
* The Web UI library doesn't support Clips (short videos) sent by the Teams users at this time.
118
+
* For certain Android devices, pasting of a single image is only supported when long pressing on the rich text editor and choosing
119
+
paste. Selecting from the clipboard view from keyboard may not be supported.
0 commit comments