Interface: RequestHooks
Called for every SUBSCRIBE and FETCH a media source sends: start, retry, reconnect, seek, switch, ranges. How a parent such as an SSTS source adds to the requests. The hooks run last, after the source built its own options, and subscribed and fetched get the options that were actually sent. They aren't called for rejected requests.
Methods
fetch()?
optionalfetch(track,options):FetchOptions
Parameters
track
object & object & object
options
Returns
fetched()?
optionalfetched(track,result,options):void
Parameters
track
object & object & object
result
options
Returns
void
subscribe()?
optionalsubscribe(track,options):SubscribeOptions
Parameters
track
object & object & object
options
Returns
subscribed()?
optionalsubscribed(track,result,options):void
Parameters
track
object & object & object
result
options
Returns
void