Overview
Properties
Methods
Properties
streamId
Type: string | null
The ID of the stream this video belongs to.
Returns null if the video is not an archived stream.
Methods
getThumbnailUrl(width, height)
Builds the thumbnail URL of the video using the given dimensions.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
width | number | none | The width of the thumbnail. | |
height | number | none | The height of the thumbnail. |
Return type: string
isMutedAt(offset, duration, partial)
Checks whether the video is muted at a given offset or range.
Parameter | Type | Required | Default | Description |
---|---|---|---|---|
offset | number | none | The start of your range, in seconds from the start of the video, or if no duration is given, the exact offset that is checked. | |
duration | number | none | The duration of your range, in seconds. | |
partial | boolean | false | Whether the range check is only partial. By default, this function returns true only if the passed range is entirely contained in a muted segment. |
Return type: boolean