# Video View

This content view is represented by `video` value for the field `type`.  The video for the video player can be sourced from a local source (as part of the App package) or from a remote source.  This is identified by the `sourceType` field value.  The image source is represented by the field `source`.

Following are the possible values of `sourceType` field:

* "remote" -- identifies that the source is a remote url
* "local" -- identifies that the source is an application bundled video file source.
* missing sourceType defaults to remote

Following example shows a video content view:

```json
{
    "type": "video",
    "source": "https://storage.googleapis.com/exoplayer-test-media-0/BigBuckBunny_320x180.mp4",
    "height": 480,
    "autoplay": true,
    "showPlaybackControls": true
}
```

### Video Scaling Mode

Video Content Views support scaling mode with the field `scalingMode`.  The `scalingMode` field can have the following values: &#x20;

* "scaledToFill" -- scales the video to fill its parent, maintaining it's aspect ratio
* "scaledToFit" -- scales the video to fit its parent, maintaining it's aspect ratio

### Scaling Dimensions

Apart from trying to fit or fill the video to its parent view, a video can be rendered to a specific width / height.  Appstent CMS supports adding `width` and/or `height` fields to the video view content.  As video's aspect ratio is always maintained, specifying either width or height suffices in most cases.

### Video Player Properties

Video Content Views can be customized with the following playback properties:

* "autoplay" -- a boolean field representing whether the video should be started as soon as it is rendered on the screen for the first time.
* "showPlaybackControls" -- a boolean field representing whether the video player should show playback controls or not.
* "autoLoop" -- a boolean field representing whether the video should loop back to beginning once its completed.


---

# 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://appversation.gitbook.io/appstent/content-authoring/individual-views/video-view.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.
