Skip to content

Commit e4d45fd

Browse files
authored
Merge pull request #179726 from jasonxian-msft/patch-11
Add zone drawer configure
2 parents 6c7a70a + a718d0e commit e4d45fd

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

articles/azure-video-analyzer/video-analyzer-docs/player-widget.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Use the Video Analyzer player widget
33
description: This article explains how to add a Video Analyzer player widget to your application.
44
ms.service: azure-video-analyzer
55
ms.topic: how-to
6-
ms.date: 11/04/2021
6+
ms.date: 11/12/2021
77
ms.custom: ignite-fall-2021
88
---
99

@@ -137,6 +137,10 @@ The Zone Drawer component allows you to draw lines and polygons on top of the Vi
137137
```javascript
138138
zoneDrawer.load();
139139
```
140+
1. Configure the zone drawer:
141+
```javascript
142+
zoneDrawer.configure();
143+
```
140144
1. To create and save zones, you have to add event listeners here:
141145
```javascript
142146
zoneDrawer.addEventListener('ZONE_DRAWER_ADDED_ZONE', (event) => {
@@ -190,6 +194,7 @@ Combining the preceding web elements, you get the following static HTML page. Th
190194
191195
const zoneDrawer = document.getElementById("zoneDrawer");
192196
zoneDrawer.load();
197+
zoneDrawer.configure();
193198
194199
zoneDrawer.addEventListener('ZONE_DRAWER_ADDED_ZONE', (event) => {
195200
console.log(event);

0 commit comments

Comments
 (0)