openYoutubeVideo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\{\{GameCategory\|(arma[0123])\|[ _]?New[ _]Scripting[ _]Commands[ _]List\}\}" to "{{GameCategory|$1|New Scripting Commands}}")
m (Text replacement - "_{10,} " to "")
Line 1: Line 1:
{{Command|Comments=
{{Command|Comments=
____________________________________________________________________________________________


| arma3 |Game name=
| arma3 |Game name=
Line 8: Line 7:
|gr1= System |GROUP1=
|gr1= System |GROUP1=


____________________________________________________________________________________________


| Opens Steam overlay with given YT video. Video URL is the end part of the YT URL, starting with '''watch?v<nowiki>=</nowiki>...'''. If the user has Steam overlay disabled, the command will display appropriate message to the user and return [[false]]. |DESCRIPTION=
| Opens Steam overlay with given YT video. Video URL is the end part of the YT URL, starting with '''watch?v<nowiki>=</nowiki>...'''. If the user has Steam overlay disabled, the command will display appropriate message to the user and return [[false]]. |DESCRIPTION=
____________________________________________________________________________________________


| '''openYoutubeVideo''' youTubeUrl |SYNTAX=
| '''openYoutubeVideo''' youTubeUrl |SYNTAX=
Line 18: Line 15:


| [[Boolean]] |RETURNVALUE=
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
   
   
|x1= <code>//Open <nowiki>http://www.youtube.com/watch?v=UBIAbm7Rt78</nowiki>
|x1= <code>//Open <nowiki>http://www.youtube.com/watch?v=UBIAbm7Rt78</nowiki>
_isOpened = [[openYoutubeVideo]] "watch?v=UBIAbm7Rt78";</code> |EXAMPLE1=
_isOpened = [[openYoutubeVideo]] "watch?v=UBIAbm7Rt78";</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[openDSInterface]], [[openMap]] |SEEALSO=
| [[openDSInterface]], [[openMap]] |SEEALSO=

Revision as of 02:13, 17 January 2021

Hover & click on the images for description

Description

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.
Groups:
System

Syntax

Syntax:
openYoutubeVideo youTubeUrl
Parameters:
youTubeUrl: String - for parameters see: https://developers.google.com/youtube/player_parameters
Return Value:
Boolean

Examples

Example 1:
//Open http://www.youtube.com/watch?v=UBIAbm7Rt78 _isOpened = openYoutubeVideo "watch?v=UBIAbm7Rt78";

Additional Information

See also:
openDSInterfaceopenMap

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section

Posted on May 25, 2018 - 15:03 (UTC)
celoush
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). (https://dev.arma3.com/post/sitrep-00061)