Remove stream property rom QRScanner.
This commit is contained in:
parent
bd36e9f5ea
commit
ffa9eecb9a
|
@ -15,7 +15,6 @@ export type QRScannerProps = {
|
||||||
export class QRScanner extends Component<QRScannerProps, unknown> {
|
export class QRScanner extends Component<QRScannerProps, unknown> {
|
||||||
videoElement = createRef<HTMLVideoElement>();
|
videoElement = createRef<HTMLVideoElement>();
|
||||||
|
|
||||||
stream: MediaStream;
|
|
||||||
qrScanner: QrScanner;
|
qrScanner: QrScanner;
|
||||||
|
|
||||||
componentDidMount(): void {
|
componentDidMount(): void {
|
||||||
|
@ -27,7 +26,6 @@ export class QRScanner extends Component<QRScannerProps, unknown> {
|
||||||
audio: false,
|
audio: false,
|
||||||
})
|
})
|
||||||
.then((stream) => {
|
.then((stream) => {
|
||||||
this.stream = stream;
|
|
||||||
this.videoElement.current.srcObject = stream;
|
this.videoElement.current.srcObject = stream;
|
||||||
const lastSeenValue = "";
|
const lastSeenValue = "";
|
||||||
const qrScanner = new QrScanner(this.videoElement.current, (value) => {
|
const qrScanner = new QrScanner(this.videoElement.current, (value) => {
|
||||||
|
|
Loading…
Reference in a new issue