Constructor
new JoinGate(callback, description)
Parameters:
| Name | Type | Description |
|---|---|---|
callback |
shaka.msf.Utils.ObjectCallback | |
description |
string | Used in log messages. |
- Source:
Members
held_ :Array<shaka.msf.Utils.MOQObject>
The subscription's Objects, while the fill is still running; null once
it is over.
Type:
- Array<shaka.msf.Utils.MOQObject>
- Source:
largestObject_ :shaka.msf.Utils.Location
Where the fill ends, once the SUBSCRIBE_OK has said.
Type:
- Source:
Methods
compare_(a, b) → {number}
Parameters:
| Name | Type | Description |
|---|---|---|
a |
shaka.msf.Utils.Location | |
b |
shaka.msf.Utils.Location |
- Source:
Returns:
- Type
- number
expect(largestObject, timeoutSeconds)
Says what the SUBSCRIBE_OK reported as the Largest Object, which is where
the fill ends, and starts waiting for it.
Parameters:
| Name | Type | Description |
|---|---|---|
largestObject |
shaka.msf.Utils.Location | undefined | Null when nothing has been published on the track, so there is nothing to fill; undefined when the SUBSCRIBE_OK could not tell, so the fill ends only when its stream does. |
timeoutSeconds |
number | How long to wait for the fill. |
- Source:
fromFill(obj)
Hands on an Object of the fill.
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
shaka.msf.Utils.MOQObject |
- Source:
fromSubscription(obj)
Hands on an Object of the subscription, or holds it until the fill is
over.
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
shaka.msf.Utils.MOQObject |
- Source:
isFilled_(obj) → {boolean}
Parameters:
| Name | Type | Description |
|---|---|---|
obj |
shaka.msf.Utils.MOQObject |
- Source:
Returns:
Whether the fill already delivered this Object.
- Type
- boolean
open()
Ends the fill and hands on what the subscription delivered meanwhile.
- Source: