question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allowed to enable zoom

See original GitHub issue

For some small sized datamatrix or qrcode, base zoom is not enougth to read them easily. Is it possible to enable the zoom with a parameter for the function decodeFromInputVideoDevice ? Below an example of zoom implementation that works in BrowserCodeReader.js / BrowserCodeReader.prototype.decodeFromInputVideoDevice

....
me.videoElement.play();

const track = stream.getVideoTracks()[0];
me.videoElement.addEventListener('loadedmetadata', (e) => {
    window.setTimeout(() => (
        onCapabilitiesReady(track.getCapabilities())
    ), 500);
});

function onCapabilitiesReady(capabilities) {
    if (capabilities.zoom) {
        track.applyConstraints({
        advanced: [{zoom: capabilities.zoom.max}]
        })
        .catch(e => console.log(e));
    }
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
odahcamcommented, Dec 13, 2018

Maybe the lib could return the device capabilities if available and allow the user to apply them on the videioTrack. 🤔

0reactions
github-actions[bot]commented, Aug 27, 2019

Stale issue message

Read more comments on GitHub >

github_iconTop Results From Across the Web

Enabling or disabling participants video - Zoom Support
Sign in to the Zoom web portal. · From the navigation panel, select Settings. · Click the Meeting tab. · In the Schedule...
Read more >
Enabling screen sharing for participants in Zoom meetings
To allow participants to share their screen by default, you can adjust the screen sharing settings from the Settings page on the web...
Read more >
Enabling screen sharing in Zoom meetings - Zoom Support
Screen sharing is enabled by default for most accounts, but can be toggled on or off for certain users or the entire account....
Read more >
Granting macOS permissions for the Zoom client
How to grant or edit permissions · Click the Apple logo at the top left corner of your screen. · Click System Preferences....
Read more >
Managing participants in a meeting - Zoom Support
The Allow host to put participant on hold option must be enabled prior to starting the meeting. Remove: Dismiss a participant from the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found