Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions docs/how-to/client/ios-simulator-camera.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
sidebar_position: 17
sidebar_label: "iOS Simulator Camera 📱"
description: Use SimCam to test camera features in the iOS Simulator without a physical device.
---

# iOS Simulator Camera <span className="badge badge--mobile">Mobile</span>

The iOS Simulator has no camera, which means you normally need a physical device to test video streaming with Fishjam.

[SimCam](https://simcam.swmansion.com/) is a macOS app that injects a virtual camera into the simulator. It works through standard AVFoundation APIs, so `@fishjam-cloud/react-native-client` picks it up without any changes to your code.

## What SimCam provides

- **Live camera feed**: your Mac's camera streamed into the simulator
- **Video file**: a video clip you can replay for consistent test scenarios
- **QR code**: inject QR codes without holding a phone up to the screen

## Getting started

1. Download and install SimCam from [simcam.swmansion.com](https://simcam.swmansion.com/).
2. Launch SimCam and pick a camera source.
3. Run your app in the simulator. The virtual camera shows up just like a real one.
4 changes: 4 additions & 0 deletions docs/how-to/client/managing-devices.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export function FlipButton() {
</TabItem>
</Tabs>

:::tip[Testing on iOS Simulator]
The iOS Simulator has no camera. [SimCam](https://simcam.swmansion.com/) solves this by injecting a virtual feed (your Mac's camera or a video file), so you can test without a physical device. See [Camera on iOS Simulator](./ios-simulator-camera).
:::

## Turning Camera On and Off

<Tabs groupId="platform">
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials/react-native-quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default function Root() {
```

:::important
This won't work on the iOS Simulator, as the Simulator can't access the camera. Test on a real device.
The iOS Simulator has no camera. To test camera features, use a real device or [SimCam](https://simcam.swmansion.com/), which injects a virtual camera the simulator picks up automatically. See [Camera on iOS Simulator](../how-to/client/ios-simulator-camera).
:::

For more detailed implementation follow the steps below.
Expand Down
2 changes: 2 additions & 0 deletions spelling.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,3 +110,5 @@ RTCPIP
VAPI
vapi
remuxing
swmansion
SimCam
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
sidebar_position: 17
sidebar_label: "iOS Simulator Camera 📱"
description: Use SimCam to test camera features in the iOS Simulator without a physical device.
---

# iOS Simulator Camera <span className="badge badge--mobile">Mobile</span>

The iOS Simulator has no camera, which means you normally need a physical device to test video streaming with Fishjam.

[SimCam](https://simcam.swmansion.com/) is a macOS app that injects a virtual camera into the simulator. It works through standard AVFoundation APIs, so `@fishjam-cloud/react-native-client` picks it up without any changes to your code.

## What SimCam provides

- **Live camera feed**: your Mac's camera streamed into the simulator
- **Video file**: a video clip you can replay for consistent test scenarios
- **QR code**: inject QR codes without holding a phone up to the screen

## Getting started

1. Download and install SimCam from [simcam.swmansion.com](https://simcam.swmansion.com/).
2. Launch SimCam and pick a camera source.
3. Run your app in the simulator. The virtual camera shows up just like a real one.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ export function FlipButton() {
</TabItem>
</Tabs>

:::tip[Testing on iOS Simulator]
The iOS Simulator has no camera. [SimCam](https://simcam.swmansion.com/) solves this by injecting a virtual feed (your Mac's camera or a video file), so you can test without a physical device. See [Camera on iOS Simulator](./ios-simulator-camera).
:::

## Turning Camera On and Off

<Tabs groupId="platform">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export default function Root() {
```

:::important
This won't work on the iOS Simulator, as the Simulator can't access the camera. Test on a real device.
The iOS Simulator has no camera. To test camera features, use a real device or [SimCam](https://simcam.swmansion.com/), which injects a virtual camera the simulator picks up automatically. See [Camera on iOS Simulator](../how-to/client/ios-simulator-camera).
:::

For more detailed implementation follow the steps below.
Expand Down
Loading