BIS_fnc_playVideo

From Bohemia Interactive Community
Revision as of 09:59, 2 February 2021 by R3vo (talk | contribs) (Undo revision 238066 by R3vo (talk))
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Description needed
Execution:
call
Groups:
GUI

Syntax

Syntax:
Syntax needed
Parameters:
content: String - Full path to .ogv file
size (Optional): Array - Screen size in format [x, y, w, h]. Default: [safeZoneX, safeZoneY, safeZoneW, safeZoneH]
color (Optional): Array - Foreground color in format [r, g, b, a]. Default: [1,1,1,1]
skipVarName (Optional): String - missionNamespace variable to skip the video when variable is true. Default: "BIS_fnc_playVideo_skipVideo"
bgColor (Optional): Array - Background color in format [r, g, b, a]. Default: [0,0,0,1]
keepAspect (Optional): Boolean - true to keep original video aspect ratio (background color will fill the void), false to stretch. Default: true
Return Value:
Return value needed

Examples

Example 1:
_video = ["A3\Missions_F_EPA\video\A_in_intro.ogv"] spawn BIS_fnc_playVideo;
Example 2:
_video = ["\a3\missions_f_exp\video\exp_m04_v01.ogv"] call BIS_fnc_playVideo;
Example 3:
_video = "a3\missions_f_exp\video\exp_m07_vout.ogv"; _screen = "Land_TripodScreen_01_large_F" createVehicle (player modelToWorld [0,10,0]); _screen setObjectTexture [0, _video]; [_video, [10, 10]] call BIS_fnc_playVideo;

Additional Information

See also:
See also needed

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 November 11, 2019 - 18:31 (UTC)
Dedmen
Example ffmpeg command to encode a ogv video which can be played back. ffmpeg -i input.mp4 -c:v libtheora -q:v 7 -c:a libvorbis -q:a 4 intro.ogv