Skip to content

Commit 322b7f7

Browse files
authored
Update play-audio-quickstart-java.md
add play started event
1 parent b12c2fc commit 322b7f7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

articles/communication-services/how-tos/call-automation/includes/play-audio-quickstart-java.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,15 @@ if (acsEvent instanceof PlayCompleted) {
297297
}
298298
```
299299

300+
### Example of how you can deserialize the *PlayStarted* event:
301+
302+
``` java
303+
if (acsEvent instanceof PlayStarted) {
304+
PlayStarted event = (PlayStarted) acsEvent;
305+
log.info("Play started, context=" + event.getOperationContext());
306+
}
307+
```
308+
300309
### Example of how you can deserialize the *PlayFailed* event:
301310

302311
``` java

0 commit comments

Comments
 (0)