Julian Steenbakker
Committed by GitHub

Merge pull request #94 from EricRode/fix_bad_state

fix: bad state stream has already been listened to
@@ -30,7 +30,7 @@ class MobileScannerWebPlugin { @@ -30,7 +30,7 @@ class MobileScannerWebPlugin {
30 } 30 }
31 31
32 // Controller to send events back to the framework 32 // Controller to send events back to the framework
33 - StreamController controller = StreamController(); 33 + StreamController controller = StreamController.broadcast();
34 34
35 // The video stream. Will be initialized later to see which camera needs to be used. 35 // The video stream. Will be initialized later to see which camera needs to be used.
36 html.MediaStream? _localStream; 36 html.MediaStream? _localStream;