Skip to content

Commit

Permalink
Update index.html
Browse files Browse the repository at this point in the history
getInputDevices is depricated.
Replaced with listVideoInputDevices
  • Loading branch information
iqre8 authored Jul 12, 2020
1 parent 05cc653 commit 0ae0ae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/multi-camera/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ <h1 class="title">Scan 1D/2D Code from Video Camera</h1>
let selectedDeviceId;
const codeReader = new ZXing.BrowserMultiFormatReader()
console.log('ZXing code reader initialized')
codeReader.getVideoInputDevices()
codeReader.listVideoInputDevices()
.then((videoInputDevices) => {
const sourceSelect = document.getElementById('sourceSelect')
selectedDeviceId = videoInputDevices[0].deviceId
Expand Down

0 comments on commit 0ae0ae3

Please sign in to comment.