Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add @svta/common-media-library dependency * Add MediaPlayer API to register/unregister request and response plugins * Refacotr HTTPLoader to integrate CommonMediaLibrary Request and Response API - use CommonMediaRequest and CommonMediaResponse as base types for processing requests and responses - apply request and response plugins - mutualize RequestModifier usage in HTTPLoader and apply RequestModifier before request plugins - update CmsdModel since response headers are now returned as a record of key:value * Add sample demo for RequestPlugin (in typescript) * Fix @svta/common-media-library import * Upgrade @svta/common-media-library to v0.4.5 * CommonMediaRequest: - rename Request/ResponsePlugin to Request/ResponseInterceptor - Request/ResponseInterceptor resolve Promise with returned request/response - rename sample request-plugin to network-interceptor * HTTPLoader: fix aborted requests metrics * Update package-lock.json * Update common-media-library version (0.5.0) * Fix RequestModifier.modifyRequest returned promise * Fix XHRLoader unit tests * Fix HTTPLoader unit tests - HTTLoader.load returned a Promise resolved once the inner loader (e.g. XHR) is loaded in order to get the XMLHttpRequest * Fix HTTPLoader unit tests - HTTLoader.load returned a Promise resolved once the inner loader (e.g. XHR) is loaded in order to get the XMLHttpRequest * Update network-interceptor sample to use samples template * XHRLoader/FetchLoader: add jsdoc for load() method * FetchLoader: rename requestObj into fragmentRequest * HTTPLoader: refactor request timing info completion * HTTPLoader: clean and some refactor (reduce _handleLoaded() parameters) * Add circleci command to build samples * Add circleci command to build samples * Update network-interceptor sample to include typescriopt source code * Set request handlers (onload, onerror etc) in customData property * Fix unit tests * Remove RequestModifier * Remove SegmentResponseModifier * Remove SegmentResponseModifier * Use Resource Timing info when available for CommonMediaResponse * Complete HTTPLoader refactoring * HTTPLoader: fix request/response info completion on timeout * Fix BolaRule when abandoning segments (before any quality switch has been done)
- Loading branch information