This version of Unity is unsupported.

VideoPlayer.length

public double length;

Description

The length of the VideoClip, or the URL, in seconds. (Read Only)

For URL sources, this will only be set once the source preparation is completed. See VideoPlayer.Prepare.