> For the complete documentation index, see [llms.txt](https://docs.vdo.ninja/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vdo.ninja/advanced-settings/video-parameters/and-viewwidth.md).

# \&viewwidth

Does the same thing as \&scale but you pass the width in pixels

Viewer-Side Option! ([`&scene`](/advanced-settings/mixer-scene-parameters/scene.md), [`&room`](/advanced-settings/setup-parameters/room.md), [`&view`](/advanced-settings/mixer-scene-parameters/view.md), [`&solo`](/advanced-settings/mixer-scene-parameters/and-solo.md))

## Aliases

* `&vw`

## Options

Example: `&viewwidth=1920`

| Value           | Description           |
| --------------- | --------------------- |
| (value integer) | video width in pixels |

## Details

Added new viewer-side parameters that can be used in place of [`&scale`](/advanced-settings/video-parameters/scale.md): [`&viewheight=180`](/advanced-settings/video-parameters/and-viewheight.md) and `&viewwidth=320`, which effectively does the same thing as [`&scale`](/advanced-settings/video-parameters/scale.md), but instead you pass a resolution.

It's important to note, that due to flexibility to request width/heights that are not aspect-ratio compatible, and due to bitrate/quality resolution limitations, these values are just 'max' target resolution values; the actual resolution you get could be still less. They also do not impact the actual capture resolution of the remote sender's camera, so its purely for requesting a specific downscaled resolution. This command applies to all video elements in a view port, and it disables the auto-scaler functionality.

Similarly, also added the option to the IFRAME API to request different down-scaled resolutions dynamically, per connection, if you want greater programmatic control vs static URL options.

![](https://2943598173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZHXv1G8N0MDxwotaT9%2Fuploads%2FHe4KtdzdiWUlDo76I2MJ%2Fimage.png?alt=media\&token=9ca426da-5c75-4703-946d-316fb87a92a9)

![](https://2943598173-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MZHXv1G8N0MDxwotaT9%2Fuploads%2F2ovjQmgjitMQymtnww4l%2Fimage.png?alt=media\&token=0d25dde1-4b89-4875-9e6b-765a3361d4b3)

## Related

{% content-ref url="/pages/AbxgsRXjG6dYeYXjuLsB" %}
[\&viewheight](/advanced-settings/video-parameters/and-viewheight.md)
{% endcontent-ref %}

{% content-ref url="/pages/-MZdvi1ReqWtZ6G80iMX" %}
[\&scale](/advanced-settings/video-parameters/scale.md)
{% endcontent-ref %}

{% content-ref url="/pages/BztXqHfF5EKjAMdanJrU" %}
[\&noscale](/advanced-settings/video-parameters/and-noscale.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.vdo.ninja/advanced-settings/video-parameters/and-viewwidth.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
