@theolive/player
Advanced tools
Comparing version 2.3.1 to 2.4.0
@@ -6,3 +6,3 @@ { | ||
"types": "./types/THEOLive.d.ts", | ||
"version": "2.3.1", | ||
"version": "2.4.0", | ||
"description": "The official THEOlive video player.", | ||
@@ -9,0 +9,0 @@ "author": "THEO Technologies", |
@@ -55,2 +55,5 @@ import { Event } from "./Event"; | ||
} | ||
export declare type HeaderProvider = (url: string) => Headers; | ||
export interface PlayerConfig { | ||
} | ||
export declare class Player { | ||
@@ -62,3 +65,3 @@ /** | ||
*/ | ||
constructor(domElement: HTMLElement, config?: {}); | ||
constructor(domElement: HTMLElement, config?: PlayerConfig); | ||
/** | ||
@@ -128,2 +131,10 @@ * | ||
set muted(value: boolean); | ||
/** | ||
* Add a header provider which allows adding headers to the requests the player makes. | ||
*/ | ||
addHeaderProvider(provider: HeaderProvider): void; | ||
/** | ||
* Remove a previously added header provider. | ||
*/ | ||
removeHeaderProvider(provider: HeaderProvider): void; | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4306488
21267