We don’t have the duration parameter on the video object itself, so what you can do is get it from the video status API https://docs.api.video/reference/get-video-status. We have the duration in the metadata object.
The duration will be provided in minutes or seconds.
Another option if you are using the playerSDK is to use the getDuration() method.
