Browse Source

set stream first

Artur Paikin 8 years ago
parent
commit
d30702029a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/plugins/Webcam/index.js

+ 1 - 1
src/plugins/Webcam/index.js

@@ -64,11 +64,11 @@ export default class Webcam extends Plugin {
 
     this.webcam.start()
       .then((stream) => {
+        this.stream = stream
         this.updateState({
           // videoStream: stream,
           cameraReady: true
         })
-        this.stream = stream
       })
       .catch((err) => {
         this.updateState({