Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-4327

Barcodescanner doesn't close camera API or JS scanner object when unloading

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.6.2
    • Fix Version/s: 9.0.0
    • Component/s: None
    • Security Level: Jean
    • Labels:
      None

      Description

      Steps to Reproduce

      Run code in localhost (to have camera API access, need secure source)
      zkfiddle.org/sample/2uale3u/1-barcode-scanner-not-unloading

      Click the remove button

      Current Result

      Camera API is still open (see camera icon in url bar)
      JS plugin still outputs camera event (see errors in console)

      Expected Result

      barcode scanner should release the camera API when no scanner is currently using it, and close active scanners on unbind

      Debug Info

      Root Cause

      Workaround

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rudyhuang rudyhuang
                Reporter:
                MDuchemin MDuchemin
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 4 hours
                  4h