jwplayer-capacitor
Advanced tools
Comparing version 0.2.9 to 0.3.0
@@ -42,3 +42,3 @@ { | ||
"name": "create", | ||
"signature": "(options: { webConfiguration?: { container: string; properties?: any; }; nativeConfiguration?: JWPlayerNativeConfiguration; advertisingConfig?: JWPlayerAd[]; }) => any", | ||
"signature": "(options: { webConfiguration?: { container: string; properties?: any; }; nativeConfiguration?: JWPlayerNativeConfiguration; advertisingConfig?: JWPlayerAd; }) => any", | ||
"parameters": [ | ||
@@ -48,3 +48,3 @@ { | ||
"docs": "", | ||
"type": "{ webConfiguration?: { container: string; properties?: any; } | undefined; nativeConfiguration?: JWPlayerNativeConfiguration | undefined; advertisingConfig?: {} | undefined; }" | ||
"type": "{ webConfiguration?: { container: string; properties?: any; } | undefined; nativeConfiguration?: JWPlayerNativeConfiguration | undefined; advertisingConfig?: JWPlayerAd | undefined; }" | ||
} | ||
@@ -350,2 +350,27 @@ ], | ||
{ | ||
"name": "type", | ||
"tags": [], | ||
"docs": "", | ||
"complexTypes": [], | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "schedule", | ||
"tags": [], | ||
"docs": "", | ||
"complexTypes": [ | ||
"JWPlayerAdSchedule" | ||
], | ||
"type": "{}" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "JWPlayerAdSchedule", | ||
"slug": "jwplayeradschedule", | ||
"docs": "", | ||
"tags": [], | ||
"methods": [], | ||
"properties": [ | ||
{ | ||
"name": "url", | ||
@@ -352,0 +377,0 @@ "tags": [], |
@@ -16,6 +16,10 @@ import type { PluginListenerHandle } from '@capacitor/core'; | ||
} | ||
export interface JWPlayerAd { | ||
export interface JWPlayerAdSchedule { | ||
url: string; | ||
begin: number; | ||
} | ||
export interface JWPlayerAd { | ||
type: string; | ||
schedule: JWPlayerAdSchedule[]; | ||
} | ||
export interface JWPlayerNativeConfiguration { | ||
@@ -63,3 +67,3 @@ width: number; | ||
nativeConfiguration?: JWPlayerNativeConfiguration; | ||
advertisingConfig?: JWPlayerAd[]; | ||
advertisingConfig?: JWPlayerAd; | ||
}): Promise<any>; | ||
@@ -66,0 +70,0 @@ remove(): Promise<any>; |
{ | ||
"name": "jwplayer-capacitor", | ||
"version": "0.2.9", | ||
"version": "0.3.0", | ||
"description": "Integration of JWPlayer Web and Mobile SDKs with Capacitor", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
@@ -69,8 +69,8 @@ # jwplayer-capacitor | ||
```typescript | ||
create(options: { webConfiguration?: { container: string; properties?: any; }; nativeConfiguration?: JWPlayerNativeConfiguration; advertisingConfig?: JWPlayerAd[]; }) => any | ||
create(options: { webConfiguration?: { container: string; properties?: any; }; nativeConfiguration?: JWPlayerNativeConfiguration; advertisingConfig?: JWPlayerAd; }) => any | ||
``` | ||
| Param | Type | | ||
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| **`options`** | <code>{ webConfiguration?: { container: string; properties?: any; }; nativeConfiguration?: <a href="#jwplayernativeconfiguration">JWPlayerNativeConfiguration</a>; advertisingConfig?: {}; }</code> | | ||
| Param | Type | | ||
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | ||
| **`options`** | <code>{ webConfiguration?: { container: string; properties?: any; }; nativeConfiguration?: <a href="#jwplayernativeconfiguration">JWPlayerNativeConfiguration</a>; advertisingConfig?: <a href="#jwplayerad">JWPlayerAd</a>; }</code> | | ||
@@ -252,2 +252,10 @@ **Returns:** <code>any</code> | ||
| Prop | Type | | ||
| -------------- | ------------------- | | ||
| **`type`** | <code>string</code> | | ||
| **`schedule`** | <code>{}</code> | | ||
#### JWPlayerAdSchedule | ||
| Prop | Type | | ||
@@ -254,0 +262,0 @@ | ----------- | ------------------- | |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
1675965
5912
281