The Clip API helps you configure a clip within your content. This allows you to only show a certain part of a video.

Properties 

Property Type Description
startTime number Controls the startTime of the clip. Default value is 0.
endTime number Controls the endTime of the clip. Default value is Infinity.

 Methods

Method Arguments Type Description
addEventListener

type: 'change',

listener: EventListener

void Add a listener for the change event which is dispatched when either the start time or the end time of the clip changes.
removeEventListener

type: 'change',

listener: EventListener

void Remove a listener for the change event which is dispatched when either the start time or the end time of the clip changes.