Skip to content

Commit 1ee48df

Browse files
authored
Update play-audio-how-to-python.md
add play started event
1 parent 322b7f7 commit 1ee48df

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

articles/communication-services/how-tos/call-automation/includes/play-audio-how-to-python.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,14 @@ if event.type == "Microsoft.Communication.PlayCompleted":
296296
app.logger.info("Play completed, context=%s", event.data.get("operationContext"))
297297
```
298298

299+
### Example of how you can deserialize the *PlayStarted* event:
300+
301+
```python
302+
if event.type == "Microsoft.Communication.PlayStarted":
303+
304+
app.logger.info("Play started, context=%s", event.data.get("operationContext"))
305+
```
306+
299307
### Example of how you can deserialize the *PlayFailed* event:
300308

301309
```python

0 commit comments

Comments
 (0)