---
name: "openYoutubeVideo"
type: command
status: ok
groups: ["System"]
arma3_since: "1.22"
locality: {"argument": null, "effect": null, "server_exec": false}
source: https://community.bistudio.com/wiki/openYoutubeVideo
revid: 339601
updated: 2023-04-28T14:11:50Z
---

# openYoutubeVideo

*Command · System · Arma 3 v1.22*

## Description

Opens Steam overlay with given YT video. Video URL is the end part of the YT URL, starting with **watch?v=...**. If the user has Steam overlay disabled, the command will display appropriate message to the user and return [false](../commands/false.md).

## Syntax

```sqf
openYoutubeVideo youTubeUrl
```

**Parameters:**

- `youTubeUrl`: [String](../topics/String.md) - for parameters see: https://developers.google.com/youtube/player_parameters

**Returns:** [Boolean](../topics/Boolean.md)

## Examples

### Example 1

```sqf
// open http://www.youtube.com/watch?v=UBIAbm7Rt78
_isOpened = openYoutubeVideo "watch?v=UBIAbm7Rt78";
```

## See also

openDSInterface · [openMap](../commands/openMap.md)

## Community notes

**celoush** — 2018-05-25

[SITREP 00061](https://dev.arma3.com/post/sitrep-00061): For security reasons we have restricted its use to outside scenarios only (e.g. in the game's UI or a mod's UI).

<sub>Source: [BI Community Wiki — openYoutubeVideo](https://community.bistudio.com/wiki/openYoutubeVideo) (revision 339601).</sub>
