# GetVideoWidth

## Description

Returns the width in pixels of the currently loaded video, if this returns 0 then call it in a loop with Sync() to wait for the video to finish loading the meta data. If it returns less than 0 then this platform does not support this command or an error occurred. example: width = GetVideoWidth() if ( width = 0 ) repeat Sync() width = GetVideoWidth() until width != 0 endif

## Definition

float GetVideoWidth()

float agk::GetVideoWidth()