# Camera Zoom

Zooming the local participant's camera is a feature that users often expect in video applications. The StreamVideo SDK makes this easy by handling all interactions with the device's camera for you.

## Basic Usage

To zoom the camera, simply call the `setZoom` method on the `Call` instance and provide the desired `zoomLevel`:

```dart
await call.setZoom(zoomLevel: 1.5);
```

The `zoomLevel` parameter accepts a double value where:

- `1.0` represents the default zoom (no zoom)
- Values greater than `1.0` increase the zoom level

## Example Implementation

The following example demonstrates how to toggle between normal view and zoomed view when a user double-taps on the local video:

```dart
bool zoomed = false;

StreamCallContainer(
  call: call,
  callContentWidgetBuilder: (
    BuildContext context,
    Call call,
  ) {
    return StreamCallContent(
      call: call,
      callState: callState,
      callParticipantsWidgetBuilder: (context, call) {
        return StreamCallParticipants(
          call: call,
          localVideoParticipantBuilder: (context, call, participant) {
            return GestureDetector(
              onDoubleTap: () {
                call.setZoom(
                  zoomLevel: zoomed ? 1.0 : 2.0,
                );

                setState(() {
                  zoomed = !zoomed;
                });
              },
              child: StreamCallParticipant(
                key: Key(participant.uniqueParticipantKey),
                call: call,
                participant: participant,
              ),
            );
          },
        );
      },
    );
  },
)
```

## Platform Support

Camera zoom functionality is available on both iOS and Android platforms. Support for specific zoom levels may vary depending on the device's camera capabilities.


---

This page was last updated at 2026-03-16T10:45:20.792Z.

For the most recent version of this documentation, visit [https://getstream.io/video/docs/flutter/ui-cookbook/camera-zoom/](https://getstream.io/video/docs/flutter/ui-cookbook/camera-zoom/).