From 622fba2d0d0c50debf49dec4c07928d96cb1401d Mon Sep 17 00:00:00 2001 From: Adam Riyadi Date: Tue, 2 Oct 2018 04:01:22 +0700 Subject: [PATCH] Update jpeg_camera_html5.coffee Patch for invalidargument URL.createObjectURL in FF 62.0.2 --- src/jpeg_camera_html5.coffee | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/jpeg_camera_html5.coffee b/src/jpeg_camera_html5.coffee index 5c4ad89..9df56e2 100644 --- a/src/jpeg_camera_html5.coffee +++ b/src/jpeg_camera_html5.coffee @@ -87,10 +87,13 @@ if navigator.getUserMedia (stream) -> that._remove_message() - if window.URL - that.video.src = URL.createObjectURL stream + #patch for FF 62 + if typeof that.video.srcObject is "object" + that.video.srcObject = stream + else if window.URL + that.video.src = URL.createObjectURL stream else - that.video.src = stream + that.video.src = stream that._block_element_access()