jwplayer-capacitor
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -96,2 +96,38 @@ { | ||
{ | ||
"name": "addButton", | ||
"signature": "(img: string, tooltip: string, callback: () => void, id: string, btnClass: string) => void", | ||
"parameters": [ | ||
{ | ||
"name": "img", | ||
"docs": "", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "tooltip", | ||
"docs": "", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "callback", | ||
"docs": "", | ||
"type": "() => void" | ||
}, | ||
{ | ||
"name": "id", | ||
"docs": "", | ||
"type": "string" | ||
}, | ||
{ | ||
"name": "btnClass", | ||
"docs": "", | ||
"type": "string" | ||
} | ||
], | ||
"returns": "void", | ||
"tags": [], | ||
"docs": "", | ||
"complexTypes": [], | ||
"slug": "addbutton" | ||
}, | ||
{ | ||
"name": "addListener", | ||
@@ -98,0 +134,0 @@ "signature": "(eventName: 'playerEvent', listenerFunc: EventChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle", |
@@ -40,2 +40,3 @@ import type { PluginListenerHandle } from '@capacitor/core'; | ||
}): Promise<any>; | ||
addButton(img: string, tooltip: string, callback: () => void, id: string, btnClass: string): void; | ||
/** | ||
@@ -42,0 +43,0 @@ * Listen for events in player |
@@ -34,2 +34,3 @@ import { WebPlugin } from '@capacitor/core'; | ||
}): Promise<any>; | ||
addButton(img: string, tooltip: string, callback: () => void, id: string, btnClass: string): void; | ||
} |
@@ -144,3 +144,6 @@ import { WebPlugin } from '@capacitor/core'; | ||
} | ||
addButton(img, tooltip, callback, id, btnClass) { | ||
this.playerInstance.addButton(img, tooltip, callback, id, btnClass); | ||
} | ||
} | ||
//# sourceMappingURL=web.js.map |
{ | ||
"name": "jwplayer-capacitor", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"description": "Integration of JWPlayer Web and Mobile SDKs with Capacitor", | ||
@@ -5,0 +5,0 @@ "main": "dist/plugin.cjs.js", |
@@ -22,2 +22,3 @@ # jwplayer-capacitor | ||
* [`seek(...)`](#seek) | ||
* [`addButton(...)`](#addbutton) | ||
* [`addListener(...)`](#addlistener) | ||
@@ -116,2 +117,19 @@ * [`addListener(...)`](#addlistener) | ||
### addButton(...) | ||
```typescript | ||
addButton(img: string, tooltip: string, callback: () => void, id: string, btnClass: string) => void | ||
``` | ||
| Param | Type | | ||
| -------------- | -------------------------- | | ||
| **`img`** | <code>string</code> | | ||
| **`tooltip`** | <code>string</code> | | ||
| **`callback`** | <code>() => void</code> | | ||
| **`id`** | <code>string</code> | | ||
| **`btnClass`** | <code>string</code> | | ||
-------------------- | ||
### addListener(...) | ||
@@ -118,0 +136,0 @@ |
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
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
1647743
5699
227