Constructor
new VideoPlayheadObserver(videonon-null)
Parameters:
Name | Type | Description |
---|---|---|
video |
HTMLMediaElement |
- Implements:
- Source:
Members
Methods
(export) destroy() → (non-null) {Promise}
Request that this object be destroyed, releasing all resources and shutting
down all operations. Returns a Promise which is resolved when destruction
is complete. This Promise should never be rejected.
- Inherited From:
- Implements:
- Source:
Returns:
- Type
- Promise
getPeriodIndex(time) → {number}
Get the period for the given time.
Parameters:
Name | Type | Description |
---|---|---|
time |
number |
- Implements:
- Source:
Returns:
- Type
- number
isBufferedToEnd(bufferedEnd) → {boolean}
Check if we have buffered to the end of the content given the current end
of the buffered range.
Parameters:
Name | Type | Description |
---|---|---|
bufferedEnd |
number |
- Implements:
- Source:
Returns:
- Type
- boolean