partkeepr

fork of partkeepr
git clone https://git.e1e0.net/partkeepr.git
Log | Files | Refs | Submodules | README | LICENSE

commit d4d1006f7f6937827825345003352eeea1f5113e
parent 8a6380e46efc81fd52c650995ad4ab62b7cbcedf
Author: Felicia Hummel <felicia@drachenkatze.org>
Date:   Fri, 20 Dec 2019 19:00:31 +0100

Merge pull request #1011 from thomas-nilsson-irfu/thomas-nilsson-irfu-patch-1002-1

Closes #1002 (before it also effects Chrome)
Diffstat:
Msrc/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/WebcamPanel.js | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/WebcamPanel.js b/src/PartKeepr/FrontendBundle/Resources/public/js/Components/Widgets/WebcamPanel.js @@ -49,7 +49,11 @@ Ext.define('PartKeepr.WebcamPanel', { }, handleVideo: function (stream) { this.stream = stream; - this.video.src = window.URL.createObjectURL(stream); + try { + this.video.srcObject = stream; + } catch (error) { + this.video.src = window.URL.createObjectURL(stream); + } }, videoError: function () { // @todo: Implement video error handler