Skip to content
Browse files

Fixes issue #2514 - Zammad Webcam-Avatar-Feature broken.

  • Loading branch information...
znuny-robo committed Mar 14, 2019
1 parent 17ed0a1 commit 124d979e44cbd1d10348f1233ce6584d5ba0c4a1
Showing with 9 additions and 1 deletion.
  1. +9 −1 app/assets/javascripts/app/controllers/_profile/
@@ -301,7 +301,15 @@ class Camera extends App.ControllerModal
# start to update the preview once its playing
@video.on 'playing', @updatePreview

@video.attr 'src', window.URL.createObjectURL(stream)
# start stream
# Apparently this functionality (of creating a URL from a MediaStream) is now deprecated
# and has been removed from current versions of Chrome and Firefox as of mid/late 2018.
# See for details.
# Apparently the new recommended approach is to set the srcObject property to the localStream directly:
@video.get(0).srcObject = stream
catch err
@video.attr 'src', window.URL.createObjectURL(stream)

# start the stream

0 comments on commit 124d979

Please sign in to comment.
You can’t perform that action at this time.