setClips

open fun setClips(startTimeMs: Int, endTimeMs: Int): VdoInitParams.Builder

Sets the start and end time for a media clip playback.

This method allows you to specify a portion of the media to be played by defining the start time and the end time in milliseconds. The media will start playing from startTimeMs and will stop at endTimeMs.

If startTimeMs is set to a value greater than or equal to endTimeMs, the entire media will be played.

If not specified, the media will start from the beginning (0 ms) and play until the end.

Return

the Builder instance for method chaining.

Parameters

startTimeMs

the start time of the media clip in milliseconds. The playback will begin from this point.

endTimeMs

the end time of the media clip in milliseconds. The playback will stop at this point.