Navaron Bracke

add stream & video element getters to JS interop definition

@@ -59,4 +59,10 @@ extension ZXingBrowserMultiFormatReaderExt on ZXingBrowserMultiFormatReader { @@ -59,4 +59,10 @@ extension ZXingBrowserMultiFormatReaderExt on ZXingBrowserMultiFormatReader {
59 /// 59 ///
60 /// See https://github.com/zxing-js/library/blob/master/src/browser/BrowserCodeReader.ts#L396 60 /// See https://github.com/zxing-js/library/blob/master/src/browser/BrowserCodeReader.ts#L396
61 external JSFunction stopContinuousDecode; 61 external JSFunction stopContinuousDecode;
  62 +
  63 + /// Get the current MediaStream of the barcode reader.
  64 + external MediaStream? get stream;
  65 +
  66 + /// Get the current HTMLVideoElement of the barcode reader.
  67 + external HTMLVideoElement? get videoElement;
62 } 68 }