Shaka Player Embedded
|
#import <ShakaPlayer.h>
Instance Methods | |
(void) | - onPlayer:networkRequest:ofType:withBlock: |
(void) | - onPlayer:networkResponse:ofType:withBlock: |
Defines an interface for network filters.
Definition at line 144 of file ShakaPlayer.h.
|
optional |
Called before a request is sent. This can modify the request object to change properties of the request.
The block must be called when the filter is done handling the request. The block can be called synchronously within the method or on any other thread after this completes. It should be called with the error that occurred, or nil
on success.
|
optional |
Called after a request sent, but before it is handled by the library. This can modify the response object.
The block must be called when the filter is done handling the response. The block can be called synchronously within the method or on any other thread after this completes. It should be called with the error that occurred, or nil
on success.