UnityEngine.VideoModule Methods used to fit a video in the target area. Resize proportionally so that width fits the target area, cropping or adding black bars above and below if needed. Resize proportionally so that content fits the target area, adding black bars if needed. Resize proportionally so that content fits the target area, cropping if needed. Resize proportionally so that height fits the target area, cropping or adding black bars on each side if needed. Preserve the pixel size without adjusting for target area. Resize non-proportionally to fit the target area. Places where the audio embedded in a video can be sent. Send the embedded audio into a specified AudioSource. Send the embedded audio direct to the platform's audio hardware. Disable the embedded audio. A container for video data. Number of audio tracks in the clip. The length of the VideoClip in frames. (Read Only). The frame rate of the clip in frames/second. (Read Only). The height of the images in the video clip in pixels. (Read Only). The length of the video clip in seconds. (Read Only). The video clip path in the project's assets. (Read Only). Denominator of the pixel aspect ratio (num:den). (Read Only). Numerator of the pixel aspect ratio (num:den). (Read Only). The width of the images in the video clip in pixels. (Read Only). The number of channels in the audio track. E.g. 2 for a stereo track. Index of the audio queried audio track. The number of channels. Get the audio track language. Can be unknown. Index of the audio queried audio track. The abbreviated name of the language. Get the audio track sampling rate in Hertz. Index of the audio queried audio track. The sampling rate in Hertz. Plays video content onto a target. Defines how the video content will be stretched to fill the target area. Destination for the audio embedded in the video. Number of audio tracks found in the data source currently configured. Whether direct-output volume controls are supported for the current platform and video format. (Read Only) Whether the playback speed can be changed. (Read Only) Determines whether the VideoPlayer skips frames to catch up with current time. (Read Only) Whether current time can be changed using the time or timeFrames property. (Read Only) Whether the time source followed by the VideoPlayer can be changed. (Read Only) Returns true if the VideoPlayer can step forward through the video content. (Read Only) The clip being played by the VideoPlayer. Invoked when the VideoPlayer's clock is synced back to its Video.VideoTimeReference. Number of audio tracks that this VideoPlayer will take control of. The other ones will be silenced. A maximum of 64 tracks are allowed. The actual number of audio tracks cannot be known in advance when playing URLs, which is why this value is independent of the Video.VideoPlayer.audioTrackCount property. Maximum number of audio tracks that can be controlled. Errors such as HTTP connection problems are reported through this callback. Reference time of the external clock the Video.VideoPlayer uses to correct its drift. The frame index currently being displayed by the VideoPlayer. Number of frames in the current video content. [NOT YET IMPLEMENTED] Invoked when the video decoder does not produce a frame as per the time source during playback. The frame rate of the clip or URL in frames/second. (Read Only). Invoked when a new frame is ready. Determines whether the VideoPlayer restarts from the beginning when it reaches the end of the clip. Whether content is being played. (Read Only) Whether the VideoPlayer has successfully prepared the content to be played. (Read Only) Invoked when the VideoPlayer reaches the end of the content to play. Factor by which the basic playback rate will be multiplied. Whether the content will start playing back as soon as the component awakes. Invoked when the VideoPlayer preparation is complete. Where the video content will be drawn. Invoke after a seek operation completes. Enables the frameReady events. Whether the VideoPlayer is allowed to skip frames to catch up with current time. The source that the VideoPlayer uses for playback. Invoked immediately after Play is called. Camera component to draw to when Video.VideoPlayer.renderMode is set to either Video.VideoTarget.CameraFarPlane or Video.VideoTarget.CameraNearPlane. Overall transparency level of the target camera plane video. Material texture property which is targeted when Video.VideoPlayer.renderMode is set to Video.VideoTarget.MaterialOverride. Renderer which is targeted when Video.VideoPlayer.renderMode is set to Video.VideoTarget.MaterialOverride RenderTexture to draw to when Video.VideoPlayer.renderMode is set to Video.VideoTarget.RenderTexture. For optimal performance, the dimensions of the RenderTexture should match those of the video media exactly. Internal texture in which video content is placed. The VideoPlayer current time in seconds. The clock that the Video.VideoPlayer observes to detect and correct drift. [NOT YET IMPLEMENTED] The source used used by the VideoPlayer to derive its current time. The file or HTTP URL that the VideoPlayer will read content from. Determines whether the VideoPlayer will wait for the first frame to be loaded into the texture before starting playback when Video.VideoPlayer.playOnAwake is on. Enable/disable audio track decoding. Only effective when the VideoPlayer is not currently playing. Index of the audio track to enable/disable. True for enabling the track. False for disabling the track. Delegate type for VideoPlayer events that contain an error message. The VideoPlayer that is emitting the event. Message describing the error just encountered. Delegate type for all parameter-less events emitted by VideoPlayers. The VideoPlayer that is emitting the event. Delegate type for VideoPlayer events that carry a frame number. The VideoPlayer that is emitting the event. The frame the VideoPlayer is now at. The number of audio channels in the specified audio track. Index for the audio track being queried. Number of audio channels. Returns the language code, if any, for the specified track. Index of the audio track to query. Language code. Get the direct-output audio mute status for the specified track. Return the direct-output volume for specified track. Track index for which the volume is queried. Volume, between 0 and 1. Gets the AudioSource that will receive audio samples for the specified track if Video.VideoPlayer.audioOutputMode is set to Video.VideoAudioOutputMode.AudioSource. Index of the audio track for which the AudioSource is wanted. The source associated with the audio track. Returns whether decoding for the specified audio track is enabled. See Video.VideoPlayer.EnableAudioTrack for distinction with mute. Index of the audio track being queried. True if decoding for the specified audio track is enabled. Pauses the playback and leaves the current time intact. Starts playback. Initiates playback engine prepration. Set the direct-output audio mute status for the specified track. Track index for which the mute is set. Mute on/off. Set the direct-output audio volume for the specified track. Track index for which the volume is set. New volume, between 0 and 1. Sets the AudioSource that will receive audio samples for the specified track if this audio target is selected with Video.VideoPlayer.audioOutputMode. Index of the audio track to associate with the specified AudioSource. AudioSource to associate with the audio track. Advances the current time by one frame immediately. Pauses the playback and sets the current time to 0. Delegate type for VideoPlayer events that carry a time position. The VideoPlayer that is emitting the event. Time position. Type of destination for the images read by a VideoPlayer. Don't draw the video content anywhere, but still make it available via the VideoPlayer's texture property in the API. Draw video content behind a camera's scene. Draw video content in front of a camera's scene. Draw the video content into a user-specified property of the current GameObject's material. Draw video content into a RenderTexture. Source of the video content for a VideoPlayer. Use the current URL as the video content source. Use the current clip as the video content source. The clock that the Video.VideoPlayer observes to detect and correct drift. External reference clock the Video.VideoPlayer observes to detect and correct drift. Disables the drift detection. Internal reference clock the Video.VideoPlayer observes to detect and correct drift. Time source followed by the Video.VideoPlayer when reading content. The audio hardware clock. The unscaled game time as defined by Time.realtimeSinceStartup.