Skip to content

Commit

Permalink
fix video stream on flutter web (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
clintpurser authored Jan 12, 2024
1 parent e311c3a commit d058b04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/widgets/camera_stream.dart
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class _ViamCameraStreamViewState extends State<ViamCameraStreamView> {
final stream = widget.streamClient.getStream();
_streamSub = stream.listen((event) {
_error = null;
_renderer.setSrcObject(stream: event);
_renderer.srcObject = event;
_renderer.onResize = () {
setState(() {
if (_renderer.videoWidth > 0 && _renderer.videoHeight > 0) {
Expand Down

0 comments on commit d058b04

Please sign in to comment.