openYoutubeVideo: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Text replacement - "\[ *(https?:\/\/[^ = ]+) +([^= ]+) *\]" to "{{Link|$1|$2}}")
 
(28 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.22


|1.22|Game version=
|gr1= System


|gr1= System |GROUP1=
|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


| 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=
|p1= youTubeUrl: [[String]] - for parameters see: https://developers.google.com/youtube/player_parameters
____________________________________________________________________________________________


| '''openYoutubeVideo''' youTubeUrl |SYNTAX=
|r1= [[Boolean]]


|p1= youTubeUrl: [[String]] - for parameters see: https://developers.google.com/youtube/player_parameters |PARAMETER1=
|x1= <sqf>
// open http://www.youtube.com/watch?v=UBIAbm7Rt78
_isOpened = openYoutubeVideo "watch?v=UBIAbm7Rt78";
</sqf>


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


{{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).
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on May 25, 2018 - 15:03 (UTC)</dd>
<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>
<!-- DISCONTINUE Notes -->

Latest revision as of 15:11, 28 April 2023

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).