Skip to content

Commit

Permalink
Mute video element using setAttribute (#204)
Browse files Browse the repository at this point in the history
[Issue#198](#198) fixed - Fixing autoplay in Cordova Android apps
  • Loading branch information
mebjas authored May 28, 2021
1 parent 6bfeb25 commit 4bf6b0d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
### Version 2.0.4
- **Source code migrated from javascript to typescript.**
- [Issue#198](https://github.com/mebjas/html5-qrcode/issues/198) fixed - Fixing autoplay in Cordova Android apps

### Version 2.0.3
- Show specific error message if web-cam access fails due to insecure context like web page being neither `https` or `localhost`.
- Show specific error messages if web-cam access fails due to insecure contexts like web page being neither `https` or `localhost`.

### Version 2.0.2
- Bug fix: [Compatibility - [Android 11] [Chrome 88.0 ] - [Call stopScan will cause crash]](https://github.com/mebjas/html5-qrcode/issues/159) with PR from [MrGussio](https://github.com/MrGussio) - https://github.com/mebjas/html5-qrcode/pull/169
Expand Down
2 changes: 1 addition & 1 deletion dist/html5-qrcode.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/html5-qrcode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,7 @@ export class Html5Qrcode {
const videoElement = document.createElement('video');
videoElement.style.width = `${width}px`;
videoElement.muted = true;
videoElement.setAttribute("muted", "true");
(<any>videoElement).playsInline = true;
return videoElement;
}
Expand Down

0 comments on commit 4bf6b0d

Please sign in to comment.