set Clips
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
the start time of the media clip in milliseconds. The playback will begin from this point.
the end time of the media clip in milliseconds. The playback will stop at this point.
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
the start time of the media clip in milliseconds. The playback will begin from this point.
the end time of the media clip in milliseconds. The playback will stop at this point.
a boolean flag to enable or disable the clipping feature. If true
, only the defined clip will be played.