Constructor
new MediaSourcePlayheadObserver(videonon-null, mediaSourceEnginenon-null, manifest)
Parameters:
Name | Type | Description |
---|---|---|
video |
HTMLMediaElement | |
mediaSourceEngine |
shaka.media.MediaSourceEngine | |
manifest |
shaka.extern.Manifest |
- 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