mirror of
https://github.com/serratus/quaggaJS.git
synced 2026-08-12 21:21:42 +08:00
Rebuild latest changes
This commit is contained in:
Vendored
+5
-2
@@ -7359,11 +7359,14 @@ function(Code128Reader, EANReader, InputStream, ImageWrapper, BarcodeLocator, Ba
|
||||
} else if (_config.inputStream.type == "ImageStream") {
|
||||
_inputStream = InputStream.createImageStream();
|
||||
} else if (_config.inputStream.type == "LiveStream") {
|
||||
video = document.createElement("video");
|
||||
var $viewport = document.querySelector("#interactive.viewport");
|
||||
if($viewport) {
|
||||
if ($viewport) {
|
||||
video = $viewport.querySelector("video");
|
||||
if (!video) {
|
||||
video = document.createElement("video");
|
||||
$viewport.appendChild(video);
|
||||
}
|
||||
}
|
||||
_inputStream = InputStream.createLiveStream(video);
|
||||
CameraAccess.request(video, _config.inputStream.constraints, function(err) {
|
||||
if (!err) {
|
||||
|
||||
Reference in New Issue
Block a user