From 12fe7748449d76495f7ab2f240b1754b54c8a2f1 Mon Sep 17 00:00:00 2001 From: Chris Bradfield Date: Sun, 20 May 2018 13:43:48 -0700 Subject: [PATCH] [DOCS] Update VideoPlayer classref (cherry picked from commit 393125a6a4bbe97f4e7ebe3ac5e652a321be324c) --- doc/classes/TextureRect.xml | 8 ++++---- doc/classes/VideoPlayer.xml | 31 ++++++++++++++++++++++--------- 2 files changed, 26 insertions(+), 13 deletions(-) diff --git a/doc/classes/TextureRect.xml b/doc/classes/TextureRect.xml index 1eb506f8b94..803cf5b8146 100644 --- a/doc/classes/TextureRect.xml +++ b/doc/classes/TextureRect.xml @@ -1,10 +1,10 @@ - Draws a sprite or a texture inside a User Interface. The texture can tile or not. + Control for drawing textures. - Use TextureRect to draw icons and sprites in your User Interfaces. To create panels and menu boxes, take a look at [NinePatchFrame]. Its Stretch Mode property controls the texture's scale and placement. It can scale, tile and stay centered inside its bounding rectangle. TextureRect is one of the 5 most common nodes to create game UI. + Used to draw icons and sprites in a user interface. The texture's placement can be controlled with the [member stretch_mode] property. It can scale, tile, or stay centered inside its bounding rectangle. @@ -14,10 +14,10 @@ - If [code]true[/code], the texture scales to fit its bounding rectangle. Default value: [code]false[/code]. + If [code]true[/code] the texture scales to fit its bounding rectangle. Default value: [code]false[/code]. - Controls the texture's behavior when you resize the node's bounding rectangle. Set it to one of the [code]STRETCH_*[/code] constants. See the constants to learn more. + Controls the texture's behavior when resizing the node's bounding rectangle. See [enum StretchMode]. The node's [Texture] resource. diff --git a/doc/classes/VideoPlayer.xml b/doc/classes/VideoPlayer.xml index 95a4979e663..2b91f4cf30a 100644 --- a/doc/classes/VideoPlayer.xml +++ b/doc/classes/VideoPlayer.xml @@ -1,10 +1,10 @@ - Control to play video files. + Control for playing video streams. - This control has the ability to play video streams. The only format accepted is the OGV Theora, so any other format must be converted before using in a project. + Control node for playing video streams. Supported formats are WebM and OGV Theora. @@ -15,51 +15,56 @@ - Get the name of the video stream. + Returns the video stream's name. - Get the current frame of the video as a [Texture]. + Returns the current frame as a [Texture]. - Get whether or not the video is playing. + Returns [code]true[/code] if the video is playing. - Start the video playback. + Starts the video playback. - Stop the video playback. + Stops the video playback. + The embedded audio track to play. + If [code]true[/code] playback starts when the scene loads. Default value: [code]false[/code]. - The amount of milliseconds to store in buffer while playing. + Amount of time in milliseconds to store in buffer while playing. + Audio bus to use for sound playback. + If [code]true[/code] the video scales to the control size. Default value: [code]true[/code]. + If [code]true[/code] the video is paused. @@ -67,11 +72,19 @@ The current position of the stream, in seconds. - The volume of the audio track as a linear value. + Audio volume as a linear value. + Audio volume in dB. + + + + Emitted when playback is finished. + + +