Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

about constraints width and height #31

Open
@zhengfen

Description

@zhengfen

to be able to set the width and height of video area, I had to change the code:

          constraints: {
            width:  this.readerSize.width ,
            height: this.readerSize.height ,

          },

I wonder why min is used here:

          constraints: {
            width: { min: this.readerSize.width },
            height: { min: this.readerSize.height },
            facingMode: 'environment',
            aspectRatio: { min: 1, max: 2 },
          },

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