setDuration

abstract fun setDuration(duration: Long)

Set the duration in milliseconds of the content. This needs to be set before the video is stopped to be reflected in the completion event.