# OvrVideoPlayer

### Description

This Node is used to manage the most common interactions with the Unity VideoPlayer Component.

It requires a VideoPlayer to be set up, see [Unity Manual](https://docs.unity3d.com/Manual/class-VideoPlayer.html) for more info.

Based on the action the VideoPlayer is required to perform, this component changes its behavior and requirements.

### Action Types

The OVER SDK provides several ways to interact with Unity Video Component. A list can be found in [OvrVideoPlayerActionType](broken://pages/RuX4plnNz3BaUElQQJMl).

#### Audio

This Component allows the user to customize the behavior of the VideoPlayer Audio.&#x20;

[EnableAudioTrack ](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/unity-components-interactors/ovrvideoplayer/ovrvideoplayeractiontype.md)allows enabling/disabling of a specific Audio track, defined by an index. [SetDirectAudioMute ](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/unity-components-interactors/ovrvideoplayer/ovrvideoplayeractiontype.md)allows the muting of the selected Audio track. [SetDirectAudioVolume ](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/unity-components-interactors/ovrvideoplayer/ovrvideoplayeractiontype.md)allows for a change in the selected Audio track volume. [SetTargetAudioSource ](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/unity-components-interactors/ovrvideoplayer/ovrvideoplayeractiontype.md)allows for a change in the VideoPlayer AudioSource Component.

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode.md)
{% endhint %}

<table><thead><tr><th width="214.7659040188865">Name</th><th width="187.94102357420294">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>VideoPlayer </td><td>VideoPlayer </td><td>Unity VideoPlayer Component</td></tr><tr><td>ActionType</td><td><a href="/pages/eQ8zx2GHLv2YFIef1kLd">OvrVideoPlayerActionType</a></td><td>Action type [<a href="/pages/eQ8zx2GHLv2YFIef1kLd">EnableAudioTrack</a>, <a href="/pages/eQ8zx2GHLv2YFIef1kLd">SetDirectAudioMute</a>, <a href="/pages/eQ8zx2GHLv2YFIef1kLd">SetDirectAudioVolume</a>, <a href="/pages/eQ8zx2GHLv2YFIef1kLd">SetTargetAudioSource</a>]</td></tr><tr><td>TrackIndex</td><td><a href="/pages/3j57sIQWIHtYDfVyTr0d">OvrInt</a></td><td>Index of the Audio track</td></tr><tr><td>Enable</td><td><a href="/pages/TmRWpo9aKcoyy2mh7Rts">OvrBool</a></td><td>[<a href="/pages/eQ8zx2GHLv2YFIef1kLd">EnableAudioTrack</a>] Enable/disable</td></tr><tr><td>Mute</td><td><a href="/pages/dDdc5xWDtFfv79G8FjGe">OvrBool</a></td><td>[<a href="/pages/eQ8zx2GHLv2YFIef1kLd">SetDirectAudioMute</a>] Mute or not</td></tr><tr><td>Volume</td><td><a href="/pages/XQfQFoPQbUdpQHI6RGlQ">OvrFloat</a></td><td>[<a href="/pages/eQ8zx2GHLv2YFIef1kLd">SetDirectAudioVolume</a>] Target volume</td></tr><tr><td>AudioSource</td><td><a href="https://docs.unity3d.com/ScriptReference/AudioSource.html">AudioSource</a></td><td>[<a href="/pages/eQ8zx2GHLv2YFIef1kLd">SetTargetAudioSource</a>] Target AudioSource</td></tr></tbody></table>

![Example of OvrVideoPlayer, in this case on execution the volume of the target audio track will be changed.](/files/cc1VZ8MPlDiIpgCYwSKW)

#### Unity Action

Execute the assigned UnityAction. Use this Type to directly access the functions made available by Unity in the specific component.

{% hint style="info" %}
**Note**: the following attributes are added to the existing ones from the super class [OvrNode](/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/ovrnode.md)
{% endhint %}

<table><thead><tr><th width="214.7659040188865">Name</th><th width="182.94102357420294">Type</th><th width="340.1572968009442">Description</th></tr></thead><tbody><tr><td>VideoPlayer </td><td>VideoPlayer </td><td>Unity VideoPlayer Component</td></tr><tr><td>ActionType</td><td><a href="/pages/eQ8zx2GHLv2YFIef1kLd">OvrVideoPlayerActionType</a></td><td>Action type [<a href="/pages/eQ8zx2GHLv2YFIef1kLd">UnityAction</a>]</td></tr><tr><td>UnityAction</td><td>UnityAction</td><td>UnityAction to be invoked</td></tr></tbody></table>

![](/files/TddXxKkp6zEPxatxdNWe)


---

# 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://docs.overthereality.ai/over-sdk-manual/ovr-component-system-ancient-legacy/nodes/unity-components-interactors/ovrvideoplayer.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.
