mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:11:59 +08:00
Fixed error in live_example; Working for iOS in Safari 11 beta
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
quaggaJS
|
||||
========
|
||||
|
||||
- [Changelog](#changelog) (2017-06-06)
|
||||
- [Changelog](#changelog) (2017-06-07)
|
||||
- [Browser Support](#browser-support)
|
||||
- [Installing](#installing)
|
||||
- [Getting Started](#gettingstarted)
|
||||
@@ -703,6 +703,13 @@ on the ``singleChannel`` flag in the configuration when using ``decodeSingle``.
|
||||
|
||||
## <a name="changelog">Changelog</a>
|
||||
|
||||
### 2017-06-07
|
||||
- Improvements
|
||||
- added `muted` and `playsinline` to `<video/>` to make it work for Safari 11
|
||||
Beta (even iOS)
|
||||
- Fixes
|
||||
- Fixed [example/live_w_locator.js](https://github.com/serratus/quaggaJS/blob/master/example/live_w_locator.js)
|
||||
|
||||
### 2017-06-06
|
||||
- Features
|
||||
- Support for Standard 2of5 barcodes (See
|
||||
|
||||
Vendored
+4
-2
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -81,7 +81,6 @@ $(function() {
|
||||
}
|
||||
return;
|
||||
}
|
||||
node.parentNode.style.display = 'none';
|
||||
},
|
||||
initCameraSelection: function(){
|
||||
var streamLabel = Quagga.CameraAccess.getActiveStreamLabel();
|
||||
|
||||
+4
-2
File diff suppressed because one or more lines are too long
@@ -42,7 +42,9 @@ function initCamera(video, constraints) {
|
||||
.then((stream) => {
|
||||
return new Promise((resolve) => {
|
||||
streamRef = stream;
|
||||
video.setAttribute("autoplay", 'true');
|
||||
video.setAttribute("autoplay", true);
|
||||
video.setAttribute('muted', true);
|
||||
video.setAttribute('playsinline', true);
|
||||
video.srcObject = stream;
|
||||
video.addEventListener('loadedmetadata', () => {
|
||||
video.play();
|
||||
|
||||
Reference in New Issue
Block a user