{"name":"openYoutubeVideo","operator":null,"title":"openYoutubeVideo","type":"command","url":"https://community.bistudio.com/wiki/openYoutubeVideo","revid":339601,"updated":"2023-04-28T14:11:50Z","groups":["System"],"status":"ok","replaced_by":[],"games":[{"game":"arma3","name":"Arma 3","version":"1.22"}],"since":{"game":"arma3","name":"Arma 3","version":"1.22"},"arma3_since":"1.22","branch":null,"locality":{"argument":null,"effect":null,"server_exec":false},"exec":null,"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.","syntaxes":[{"syntax":"openYoutubeVideo youTubeUrl","since":null,"effect":null,"exec":null,"params":[{"name":"youTubeUrl","type":"String","optional":false,"default":null,"description":"for parameters see: https://developers.google.com/youtube/player_parameters","types":["String"],"since":null,"text":"youTubeUrl: String - for parameters see: https://developers.google.com/youtube/player_parameters"}],"returns":{"type":"Boolean","types":["Boolean"],"description":null,"text":"Boolean"},"form":"unary","operator":null,"left":null,"right":{"text":"youTubeUrl","types":["String"]}}],"examples":[{"text":"```sqf\n// open http://www.youtube.com/watch?v=UBIAbm7Rt78\n_isOpened = openYoutubeVideo \"watch?v=UBIAbm7Rt78\";\n```","code":["// open http://www.youtube.com/watch?v=UBIAbm7Rt78\n_isOpened = openYoutubeVideo \"watch?v=UBIAbm7Rt78\";"]}],"multiplayer":null,"problems":null,"aliases":[],"see_also":["openDSInterface","openMap"],"notes":[{"user":"celoush","date":"2018-05-25T15:03:00Z","text":"[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)."}],"categories":["Arma 3: New Scripting Commands","Arma 3: Scripting Commands","Command Group: System","Introduced with Arma 3 version 1.22","Scripting Commands"]}