Skip to content

Commit b518d1f

Browse files
authored
Update index.html
1 parent cc8aba4 commit b518d1f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

identity/demos/self_capture_detection/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ <h3>Demo operation:</h3>
188188
video.srcObject = stream;
189189
let [track] = stream.getVideoTracks();
190190
track.oncapturehandlechange = (event) => {
191-
captureHandle = newVersion ? event.captureHandle() : event.captureHandle;
191+
captureHandle = newVersion ? event.target.getCaptureHandle() : event.captureHandle;
192192
update();
193193
};
194194
captureHandle = getCaptureHandle(stream);

0 commit comments

Comments
 (0)