openYoutubeVideo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[([a-zA-Z][a-zA-Z0-9_]+)\]\]([^ ]*)<\/code>" to "$1$2</code>")
m (Some wiki formatting)
Line 6: Line 6:
|gr1= System
|gr1= System


|descr= 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]].
|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
|s1= [[openYoutubeVideo]] youTubeUrl
Line 14: Line 14:
|r1= [[Boolean]]
|r1= [[Boolean]]


|x1= <code>//Open <nowiki>http://www.youtube.com/watch?v=UBIAbm7Rt78</nowiki>
|x1= <sqf>
_isOpened = openYoutubeVideo "watch?v=UBIAbm7Rt78";</code>
// open http://www.youtube.com/watch?v=UBIAbm7Rt78
_isOpened = openYoutubeVideo "watch?v=UBIAbm7Rt78";
</sqf>


|seealso= [[openDSInterface]] [[openMap]]
|seealso= [[openDSInterface]] [[openMap]]
}}
}}


<dl class="command_description">
{{Note
 
|user= celoush
<dt></dt>
|timestamp= 20180525150300
<dd class="notedate">Posted on May 25, 2018 - 15:03 (UTC)</dd>
|text= [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).
<dt class="note">[[User:celoush|celoush]]</dt>
}}
<dd class="note">
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)
</dd>
 
</dl>

Revision as of 12:14, 13 May 2022

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:
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
celoush - c
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).