Skip to content

Uncaught TypeError: this.stream.stop is not a function #35

@TrySpace

Description

@TrySpace

When I try to call qr.stop() like the example it throws this error:

Uncaught TypeError: this.stream.stop is not a function

Also, it will continuously keep calling the resultHandler after scanning, I'm assuming this would stop, if the qr.stop() would work.

The qr Object does contain this though:

canvasElem: canvas
stream: MediaStream
    active: true
    id: "U1UY73wPzsxXdV1pQXZIXuYOF0VVtmaqFqoc"
    onactive: null
    onaddtrack: null
    onended: null
    oninactive: null
    onremovetrack: null
timerCapture: 21
videoConstraints: Object
videoDimensions: false
videoElem: video

No .stop method

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions