# Choose Video Device for input

## VideoDeviceContext

{% embed url="<https://github.com/Off-Live/myty-sdk/blob/pre-release/dev/examples/react_2d_mp/react/src/context/VideoDeviceContext.tsx>" %}

A context to share video reference throughout the application. As explained in <mark style="color:purple;">`Handle WebGL view & interaction`</mark>, video should be included as a part of HeadOnly(AR) mode, and also, it should be an input for motion capture tool to get motion captured results.&#x20;

## VideoDeviceSelect

{% embed url="<https://github.com/Off-Live/myty-sdk/blob/pre-release/dev/examples/react_2d_mp/react/src/components/VideoDeviceSelect.tsx>" %}

Simple component that wraps react-select. It is just for providing simple dropdown to users, delivering selected device information to <mark style="color:purple;">`VideoDeviceContext`</mark>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://myty.gitbook.io/products/sdk/react-example/choose-video-device-for-input.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
