object.totalTime

Type Number
Object Video
Library native.*
Revision Release 2024.3703
Keywords time, video
See also native.newVideo()

Overview

The read-only length of the currently loaded video, in seconds.

Gotchas

This should be called after the video is ready to play, otherwise an inaccurate value might be returned. You can detect this via a video event where event.phase is equal to "ready".