Skip to content

Commit 072cc16

Browse files
committed
add java code
1 parent e5a8b0f commit 072cc16

File tree

2 files changed

+7
-2
lines changed
  • articles/communication-services/how-tos/ui-library-sdk/includes/closed-captions

2 files changed

+7
-2
lines changed

articles/communication-services/how-tos/ui-library-sdk/includes/closed-captions/android.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ ms.service: azure-communication-services
1414

1515
```kotlin
1616
val captionsOptions = CallCompositeCaptionsOptions()
17-
captionsOptions.setCaptionsOn(false)
17+
captionsOptions.setCaptionsOn(true)
1818
captionsOptions.setSpokenLanguage("en-US")
1919

2020
val localOptions = CallCompositeLocalOptions()
@@ -25,5 +25,10 @@ localOptions.setCaptionsOptions(captionsOptions)
2525
#### [Java](#tab/java)
2626

2727
```java
28+
CallCompositeCaptionsOptions captionsOptions = new CallCompositeCaptionsOptions();
29+
captionsOptions.setCaptionsOn(true);
30+
captionsOptions.setSpokenLanguage("en-us");
2831

32+
CallCompositeLocalOptions localOptions = new CallCompositeLocalOptions();
33+
localOptions.setCaptionsOptions(captionsOptions);
2934
```

articles/communication-services/how-tos/ui-library-sdk/includes/closed-captions/ios.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ ms.service: azure-communication-services
1212

1313
```swift
1414
let captionsOptions = CaptionsOptions(
15-
captionsOn: false,
15+
captionsOn: true,
1616
spokenLanguage: "en-US"
1717
)
1818

0 commit comments

Comments
 (0)