Table of Contents

Class TimeRanges

Namespace
CSharpToJavaScript.APIs.JS
Assembly
CSharpToJavaScript.dll

A TimeRanges object includes one or more ranges of time, each specified by a starting time offset and an ending time offset. You reference each time range by using the start() and end() methods, passing the index number of the time range you want to retrieve.

[Value("TimeRanges")]
public class TimeRanges
Inheritance
TimeRanges
Inherited Members

Remarks

Constructors

TimeRanges()

public TimeRanges()

Properties

Length

The TimeRanges.length read-only property returns the
number of ranges in the object.

[Value("length")]
public ulong Length { get; }

Property Value

ulong

A number.

Remarks

Methods

End(ulong)

The end() method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range ends.

[Value("end")]
public Number End(ulong index)

Parameters

index ulong

Returns

Number

A number.

Remarks

Start(ulong)

The start() method of the TimeRanges interface returns the time offset (in seconds) at which a specified time range begins.

[Value("start")]
public Number Start(ulong index)

Parameters

index ulong

Returns

Number

A number.

Remarks