openYoutubeVideo: Difference between revisions
Jump to navigation
Jump to search
m (Text replacement - " {{GameCategory|arma3|New Scripting Commands}} {{GameCategory|arma3|Scripting Commands}} {{uc:{{PAGENAME}}}} " to "") |
Lou Montana (talk | contribs) m (Text replacement - "\[ *(https?:\/\/[^ = ]+) +([^= ]+) *\]" to "{{Link|$1|$2}}") |
||
(16 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma3 | |game1= arma3 | ||
|version1= 1.22 | |||
|1.22 | |||
|gr1= System | |gr1= System | ||
| Opens Steam overlay with given YT video. Video URL is the end part of the YT URL, starting with '''watch?v | |descr= 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]]. | ||
| | |s1= [[openYoutubeVideo]] youTubeUrl | ||
|p1= youTubeUrl: [[String]] - for parameters see: https://developers.google.com/youtube/player_parameters | |p1= youTubeUrl: [[String]] - for parameters see: https://developers.google.com/youtube/player_parameters | ||
| [[Boolean]] | |r1= [[Boolean]] | ||
| [[openDSInterface]] | |x1= <sqf> | ||
// open http://www.youtube.com/watch?v=UBIAbm7Rt78 | |||
_isOpened = openYoutubeVideo "watch?v=UBIAbm7Rt78"; | |||
</sqf> | |||
|seealso= [[openDSInterface]] [[openMap]] | |||
}} | }} | ||
{{Note | |||
|user= celoush | |||
|timestamp= 20180525150300 | |||
|text= {{Link|https://dev.arma3.com/post/sitrep-00061|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). | |||
}} | |||
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). | |||
Latest revision as of 15:11, 28 April 2023
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:
- openDSInterface openMap
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
- Posted on May 25, 2018 - 15:03 (UTC)
- 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).