@capgo/capacitor-jw-player 0.0.13 → 0.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Package.swift +0 -5
- package/README.md +4 -4
- package/android/src/main/java/ee/forgr/capacitor_jw_player/PlayerActivity.java +16 -10
- package/dist/docs.json +6 -2
- package/dist/esm/definitions.d.ts +101 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +21 -9
- package/dist/esm/web.js +307 -28
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +307 -28
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +307 -28
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/JwPlayerPlugin/JwPlayerPlugin.swift +183 -68
- package/ios/Sources/JwPlayerPlugin/VideosToPlay.swift +1 -0
- package/package.json +3 -2
package/Package.swift
CHANGED
|
@@ -27,11 +27,6 @@ let package = Package(
|
|
|
27
27
|
.product(name: "JWPlayerKit", package: "JWPlayerKit-package")
|
|
28
28
|
],
|
|
29
29
|
path: "ios/Sources/JwPlayerPlugin"),
|
|
30
|
-
.binaryTarget(
|
|
31
|
-
name: "GoogleCast",
|
|
32
|
-
url: "https://dl.google.com/dl/chromecast/sdk/ios/GoogleCastSDK-ios-\(GoogleCastMetadata.version)_dynamic.xcframework.zip",
|
|
33
|
-
checksum: GoogleCastMetadata.checksum
|
|
34
|
-
),
|
|
35
30
|
.testTarget(
|
|
36
31
|
name: "JwPlayerPluginTests",
|
|
37
32
|
dependencies: ["JwPlayerPlugin"],
|
package/README.md
CHANGED
|
@@ -217,14 +217,14 @@ function cleanup() {
|
|
|
217
217
|
### initialize(...)
|
|
218
218
|
|
|
219
219
|
```typescript
|
|
220
|
-
initialize(options: { licenseKey: string; }) => Promise<void>
|
|
220
|
+
initialize(options: { licenseKey: string; playerUrl?: string; }) => Promise<void>
|
|
221
221
|
```
|
|
222
222
|
|
|
223
223
|
Initialize the JW Player
|
|
224
224
|
|
|
225
|
-
| Param | Type
|
|
226
|
-
| ------------- |
|
|
227
|
-
| **`options`** | <code>{ licenseKey: string; }</code> | - The options for the JW Player |
|
|
225
|
+
| Param | Type | Description |
|
|
226
|
+
| ------------- | -------------------------------------------------------- | ------------------------------- |
|
|
227
|
+
| **`options`** | <code>{ licenseKey: string; playerUrl?: string; }</code> | - The options for the JW Player |
|
|
228
228
|
|
|
229
229
|
--------------------
|
|
230
230
|
|
|
@@ -149,19 +149,25 @@ public class PlayerActivity
|
|
|
149
149
|
}
|
|
150
150
|
|
|
151
151
|
private void loadMedia(String mediaUrl, String mediaType, boolean autostart) {
|
|
152
|
-
|
|
153
|
-
.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
if (mediaType.equals("video")) {
|
|
153
|
+
PlaylistItem playlistItem = new PlaylistItem.Builder()
|
|
154
|
+
.file(mediaUrl)
|
|
155
|
+
// .title("Video Title") // Optional
|
|
156
|
+
// .description("Video Description") // Optional
|
|
157
|
+
.build();
|
|
157
158
|
|
|
158
|
-
|
|
159
|
-
|
|
159
|
+
List<PlaylistItem> playlist = new ArrayList<>();
|
|
160
|
+
playlist.add(playlistItem);
|
|
160
161
|
|
|
161
|
-
|
|
162
|
+
PlayerConfig config = new PlayerConfig.Builder().playlist(playlist).autostart(autostart).build();
|
|
162
163
|
|
|
163
|
-
|
|
164
|
-
|
|
164
|
+
mPlayer.setup(config);
|
|
165
|
+
Log.d(TAG, "Player setup initiated.");
|
|
166
|
+
} else if (mediaType.equals("playlist")) {
|
|
167
|
+
PlayerConfig config = new PlayerConfig.Builder().playlistUrl(mediaUrl).autostart(autostart).build();
|
|
168
|
+
|
|
169
|
+
mPlayer.setup(config);
|
|
170
|
+
}
|
|
165
171
|
}
|
|
166
172
|
|
|
167
173
|
private void setupPlayerListeners() {
|
package/dist/docs.json
CHANGED
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
"methods": [
|
|
8
8
|
{
|
|
9
9
|
"name": "initialize",
|
|
10
|
-
"signature": "(options: { licenseKey: string; }) => Promise<void>",
|
|
10
|
+
"signature": "(options: { licenseKey: string; playerUrl?: string; }) => Promise<void>",
|
|
11
11
|
"parameters": [
|
|
12
12
|
{
|
|
13
13
|
"name": "options",
|
|
14
14
|
"docs": "- The options for the JW Player",
|
|
15
|
-
"type": "{ licenseKey: string; }"
|
|
15
|
+
"type": "{ licenseKey: string; playerUrl?: string | undefined; }"
|
|
16
16
|
}
|
|
17
17
|
],
|
|
18
18
|
"returns": "Promise<void>",
|
|
@@ -25,6 +25,10 @@
|
|
|
25
25
|
"name": "param",
|
|
26
26
|
"text": "options.licenseKey - The license key for the JW Player. Keep in mind that this is different for iOS and Android."
|
|
27
27
|
},
|
|
28
|
+
{
|
|
29
|
+
"name": "param",
|
|
30
|
+
"text": "options.playerUrl - The player URL for the JW Player. This is used on the web in order to load the player."
|
|
31
|
+
},
|
|
28
32
|
{
|
|
29
33
|
"name": "returns",
|
|
30
34
|
"text": "A promise that resolves when initialized"
|
|
@@ -3,10 +3,12 @@ export interface JwPlayerPlugin {
|
|
|
3
3
|
* Initialize the JW Player
|
|
4
4
|
* @param options - The options for the JW Player
|
|
5
5
|
* @param options.licenseKey - The license key for the JW Player. Keep in mind that this is different for iOS and Android.
|
|
6
|
+
* @param options.playerUrl - The player URL for the JW Player. This is used on the web in order to load the player.
|
|
6
7
|
* @returns A promise that resolves when initialized
|
|
7
8
|
*/
|
|
8
9
|
initialize(options: {
|
|
9
10
|
licenseKey: string;
|
|
11
|
+
playerUrl?: string;
|
|
10
12
|
}): Promise<void>;
|
|
11
13
|
/**
|
|
12
14
|
* Play a video
|
|
@@ -156,3 +158,102 @@ export interface JwPlayerPlugin {
|
|
|
156
158
|
*/
|
|
157
159
|
currentPlaylist(): Promise<any>;
|
|
158
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* Events emitted by the JW Player plugin across all platforms.
|
|
163
|
+
*
|
|
164
|
+
* The plugin uses Capacitor's event system. You can listen to these events using:
|
|
165
|
+
* ```
|
|
166
|
+
* import { Plugins } from '@capacitor/core';
|
|
167
|
+
* const { JwPlayer } = Plugins;
|
|
168
|
+
*
|
|
169
|
+
* JwPlayer.addListener('ready', () => {
|
|
170
|
+
* console.log('Player is ready');
|
|
171
|
+
* });
|
|
172
|
+
* ```
|
|
173
|
+
*/
|
|
174
|
+
export interface JwPlayerEvents {
|
|
175
|
+
/**
|
|
176
|
+
* Fired when the player is ready
|
|
177
|
+
*/
|
|
178
|
+
ready: void;
|
|
179
|
+
/**
|
|
180
|
+
* Fired when the player encounters an error
|
|
181
|
+
*/
|
|
182
|
+
error: {
|
|
183
|
+
message: string;
|
|
184
|
+
code?: number;
|
|
185
|
+
};
|
|
186
|
+
/**
|
|
187
|
+
* Fired when playback starts or resumes
|
|
188
|
+
*/
|
|
189
|
+
play: {
|
|
190
|
+
reason: string;
|
|
191
|
+
};
|
|
192
|
+
/**
|
|
193
|
+
* Fired when playback is paused
|
|
194
|
+
*/
|
|
195
|
+
pause: {
|
|
196
|
+
reason: string;
|
|
197
|
+
};
|
|
198
|
+
/**
|
|
199
|
+
* Fired when playback completes (reaches the end)
|
|
200
|
+
*/
|
|
201
|
+
complete: void;
|
|
202
|
+
/**
|
|
203
|
+
* Fired when the player is seeking to a new position
|
|
204
|
+
*/
|
|
205
|
+
seek: {
|
|
206
|
+
position: number;
|
|
207
|
+
offset: number;
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* Fired when the player has completed seeking
|
|
211
|
+
*/
|
|
212
|
+
seeked: void;
|
|
213
|
+
/**
|
|
214
|
+
* Fired periodically during playback with time updates (throttled)
|
|
215
|
+
*/
|
|
216
|
+
time: {
|
|
217
|
+
position: number;
|
|
218
|
+
duration: number;
|
|
219
|
+
};
|
|
220
|
+
/**
|
|
221
|
+
* Fired when a new playlist item starts playing
|
|
222
|
+
*/
|
|
223
|
+
playlistItem: {
|
|
224
|
+
index: number;
|
|
225
|
+
title?: string;
|
|
226
|
+
};
|
|
227
|
+
/**
|
|
228
|
+
* Fired when playback of the entire playlist is complete
|
|
229
|
+
*/
|
|
230
|
+
playlistComplete: void;
|
|
231
|
+
/**
|
|
232
|
+
* Fired when the player enters or exits fullscreen mode
|
|
233
|
+
*/
|
|
234
|
+
fullscreen: {
|
|
235
|
+
fullscreen: boolean;
|
|
236
|
+
};
|
|
237
|
+
/**
|
|
238
|
+
* Fired when the player UI controls visibility changes (show/hide)
|
|
239
|
+
*/
|
|
240
|
+
controlsChanged: {
|
|
241
|
+
visible: boolean;
|
|
242
|
+
};
|
|
243
|
+
/**
|
|
244
|
+
* Fired when the player is dismissed (closed)
|
|
245
|
+
*/
|
|
246
|
+
playerDismissed: void;
|
|
247
|
+
/**
|
|
248
|
+
* Fired when the player enters Picture-in-Picture mode (iOS/Android only)
|
|
249
|
+
*/
|
|
250
|
+
pipStarted: {
|
|
251
|
+
isInPictureInPictureMode?: boolean;
|
|
252
|
+
};
|
|
253
|
+
/**
|
|
254
|
+
* Fired when the player exits Picture-in-Picture mode (iOS/Android only)
|
|
255
|
+
*/
|
|
256
|
+
pipStopped: {
|
|
257
|
+
isInPictureInPictureMode?: boolean;
|
|
258
|
+
};
|
|
259
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface JwPlayerPlugin {\n /**\n * Initialize the JW Player\n * @param options - The options for the JW Player\n * @param options.licenseKey - The license key for the JW Player. Keep in mind that this is different for iOS and Android.\n * @returns A promise that resolves when initialized\n */\n initialize(options: { licenseKey: string }): Promise<void>;\n\n /**\n * Play a video\n * @param options - The options for the JW Player\n * @param options.mediaUrl - The URL of the media to play\n * @param options.mediaType - The type of media to play\n * @param options.autostart - Whether to start the media automatically. Default is false.\n * @returns A promise that resolves when the command is executed\n */\n play(options: { mediaUrl: string; mediaType: 'video' | 'playlist'; autostart?: boolean }): Promise<void>;\n\n /**\n * Pause the currently playing media\n * @returns A promise that resolves when the command is executed\n */\n pause(): Promise<void>;\n\n /**\n * Resume the currently paused media\n * @returns A promise that resolves when the command is executed\n */\n resume(): Promise<void>;\n\n /**\n * Stop the currently playing media\n * @returns A promise that resolves when the command is executed\n */\n stop(): Promise<void>;\n\n /**\n * Seek to a specific position in the currently playing media\n * @param options - Options for seeking\n * @param options.time - The position to seek to in seconds\n * @returns A promise that resolves when the command is executed\n */\n seekTo(options: { time: number }): Promise<void>;\n\n /**\n * Set the volume level\n * @param options - Options for setting volume\n * @param options.volume - The volume level (0.0 to 1.0)\n * @returns A promise that resolves when the command is executed\n */\n setVolume(options: { volume: number }): Promise<void>;\n\n /**\n * Get the current position in the media\n * @returns A promise that resolves with the current position in seconds\n */\n getPosition(): Promise<{ position: number }>;\n\n /**\n * Get the current player state\n * @returns A promise that resolves with the player state\n */\n getState(): Promise<{ state: number }>;\n\n /**\n * Set the playback speed\n * @param options - Options for setting speed\n * @param options.speed - The playback speed (0.5 to 2.0)\n * @returns A promise that resolves when the command is executed\n */\n setSpeed(options: { speed: number }): Promise<void>;\n\n /**\n * Set the current item in the playlist by index\n * @param options - Options for setting playlist item\n * @param options.index - The index of the item to play\n * @returns A promise that resolves when the command is executed\n */\n setPlaylistIndex(options: { index: number }): Promise<void>;\n\n /**\n * Load a playlist\n * @param options - Options for loading a playlist\n * @param options.playlistUrl - The URL of the playlist\n * @returns A promise that resolves when the command is executed\n */\n loadPlaylist(options: { playlistUrl: string }): Promise<void>;\n\n /**\n * Load a playlist with items\n * @param options - Options for loading a playlist\n * @param options.playlist - Array of playlist items\n * @returns A promise that resolves when the command is executed\n */\n loadPlaylistWithItems(options: { playlist: any[] }): Promise<void>;\n\n /**\n * Get available audio tracks\n * @returns A promise that resolves with available audio tracks\n */\n getAudioTracks(): Promise<{ tracks: any[] }>;\n\n /**\n * Get the current audio track\n * @returns A promise that resolves with current audio track index\n */\n getCurrentAudioTrack(): Promise<{ index: number }>;\n\n /**\n * Set the current audio track\n * @param options - Options for setting audio track\n * @param options.index - The index of the audio track\n * @returns A promise that resolves when the command is executed\n */\n setCurrentAudioTrack(options: { index: number }): Promise<void>;\n\n /**\n * Get the available captions/subtitles\n * @returns A promise that resolves with available captions\n */\n getCaptions(): Promise<{ captions: any[] }>;\n\n /**\n * Get the current captions/subtitles track\n * @returns A promise that resolves with current captions track index\n */\n getCurrentCaptions(): Promise<{ index: number }>;\n\n /**\n * Set the current captions/subtitles track\n * @param options - Options for setting captions track\n * @param options.index - The index of the captions track\n * @returns A promise that resolves when the command is executed\n */\n setCurrentCaptions(options: { index: number }): Promise<void>;\n\n /**\n * Get the current playlist\n * @returns A promise that resolves to the current playlist\n */\n currentPlaylist(): Promise<any>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"definitions.js","sourceRoot":"","sources":["../../src/definitions.ts"],"names":[],"mappings":"","sourcesContent":["export interface JwPlayerPlugin {\n /**\n * Initialize the JW Player\n * @param options - The options for the JW Player\n * @param options.licenseKey - The license key for the JW Player. Keep in mind that this is different for iOS and Android.\n * @param options.playerUrl - The player URL for the JW Player. This is used on the web in order to load the player.\n * @returns A promise that resolves when initialized\n */\n initialize(options: { licenseKey: string; playerUrl?: string }): Promise<void>;\n\n /**\n * Play a video\n * @param options - The options for the JW Player\n * @param options.mediaUrl - The URL of the media to play\n * @param options.mediaType - The type of media to play\n * @param options.autostart - Whether to start the media automatically. Default is false.\n * @returns A promise that resolves when the command is executed\n */\n play(options: { mediaUrl: string; mediaType: 'video' | 'playlist'; autostart?: boolean }): Promise<void>;\n\n /**\n * Pause the currently playing media\n * @returns A promise that resolves when the command is executed\n */\n pause(): Promise<void>;\n\n /**\n * Resume the currently paused media\n * @returns A promise that resolves when the command is executed\n */\n resume(): Promise<void>;\n\n /**\n * Stop the currently playing media\n * @returns A promise that resolves when the command is executed\n */\n stop(): Promise<void>;\n\n /**\n * Seek to a specific position in the currently playing media\n * @param options - Options for seeking\n * @param options.time - The position to seek to in seconds\n * @returns A promise that resolves when the command is executed\n */\n seekTo(options: { time: number }): Promise<void>;\n\n /**\n * Set the volume level\n * @param options - Options for setting volume\n * @param options.volume - The volume level (0.0 to 1.0)\n * @returns A promise that resolves when the command is executed\n */\n setVolume(options: { volume: number }): Promise<void>;\n\n /**\n * Get the current position in the media\n * @returns A promise that resolves with the current position in seconds\n */\n getPosition(): Promise<{ position: number }>;\n\n /**\n * Get the current player state\n * @returns A promise that resolves with the player state\n */\n getState(): Promise<{ state: number }>;\n\n /**\n * Set the playback speed\n * @param options - Options for setting speed\n * @param options.speed - The playback speed (0.5 to 2.0)\n * @returns A promise that resolves when the command is executed\n */\n setSpeed(options: { speed: number }): Promise<void>;\n\n /**\n * Set the current item in the playlist by index\n * @param options - Options for setting playlist item\n * @param options.index - The index of the item to play\n * @returns A promise that resolves when the command is executed\n */\n setPlaylistIndex(options: { index: number }): Promise<void>;\n\n /**\n * Load a playlist\n * @param options - Options for loading a playlist\n * @param options.playlistUrl - The URL of the playlist\n * @returns A promise that resolves when the command is executed\n */\n loadPlaylist(options: { playlistUrl: string }): Promise<void>;\n\n /**\n * Load a playlist with items\n * @param options - Options for loading a playlist\n * @param options.playlist - Array of playlist items\n * @returns A promise that resolves when the command is executed\n */\n loadPlaylistWithItems(options: { playlist: any[] }): Promise<void>;\n\n /**\n * Get available audio tracks\n * @returns A promise that resolves with available audio tracks\n */\n getAudioTracks(): Promise<{ tracks: any[] }>;\n\n /**\n * Get the current audio track\n * @returns A promise that resolves with current audio track index\n */\n getCurrentAudioTrack(): Promise<{ index: number }>;\n\n /**\n * Set the current audio track\n * @param options - Options for setting audio track\n * @param options.index - The index of the audio track\n * @returns A promise that resolves when the command is executed\n */\n setCurrentAudioTrack(options: { index: number }): Promise<void>;\n\n /**\n * Get the available captions/subtitles\n * @returns A promise that resolves with available captions\n */\n getCaptions(): Promise<{ captions: any[] }>;\n\n /**\n * Get the current captions/subtitles track\n * @returns A promise that resolves with current captions track index\n */\n getCurrentCaptions(): Promise<{ index: number }>;\n\n /**\n * Set the current captions/subtitles track\n * @param options - Options for setting captions track\n * @param options.index - The index of the captions track\n * @returns A promise that resolves when the command is executed\n */\n setCurrentCaptions(options: { index: number }): Promise<void>;\n\n /**\n * Get the current playlist\n * @returns A promise that resolves to the current playlist\n */\n currentPlaylist(): Promise<any>;\n}\n\n/**\n * Events emitted by the JW Player plugin across all platforms.\n *\n * The plugin uses Capacitor's event system. You can listen to these events using:\n * ```\n * import { Plugins } from '@capacitor/core';\n * const { JwPlayer } = Plugins;\n *\n * JwPlayer.addListener('ready', () => {\n * console.log('Player is ready');\n * });\n * ```\n */\nexport interface JwPlayerEvents {\n /**\n * Fired when the player is ready\n */\n ready: void;\n\n /**\n * Fired when the player encounters an error\n */\n error: {\n message: string;\n code?: number;\n };\n\n /**\n * Fired when playback starts or resumes\n */\n play: {\n reason: string;\n };\n\n /**\n * Fired when playback is paused\n */\n pause: {\n reason: string;\n };\n\n /**\n * Fired when playback completes (reaches the end)\n */\n complete: void;\n\n /**\n * Fired when the player is seeking to a new position\n */\n seek: {\n position: number;\n offset: number;\n };\n\n /**\n * Fired when the player has completed seeking\n */\n seeked: void;\n\n /**\n * Fired periodically during playback with time updates (throttled)\n */\n time: {\n position: number;\n duration: number;\n };\n\n /**\n * Fired when a new playlist item starts playing\n */\n playlistItem: {\n index: number;\n title?: string;\n };\n\n /**\n * Fired when playback of the entire playlist is complete\n */\n playlistComplete: void;\n\n /**\n * Fired when the player enters or exits fullscreen mode\n */\n fullscreen: {\n fullscreen: boolean;\n };\n\n /**\n * Fired when the player UI controls visibility changes (show/hide)\n */\n controlsChanged: {\n visible: boolean;\n };\n\n /**\n * Fired when the player is dismissed (closed)\n */\n playerDismissed: void;\n\n /**\n * Fired when the player enters Picture-in-Picture mode (iOS/Android only)\n */\n pipStarted: {\n isInPictureInPictureMode?: boolean;\n };\n\n /**\n * Fired when the player exits Picture-in-Picture mode (iOS/Android only)\n */\n pipStopped: {\n isInPictureInPictureMode?: boolean;\n };\n}\n"]}
|
package/dist/esm/web.d.ts
CHANGED
|
@@ -1,19 +1,31 @@
|
|
|
1
|
+
/// <reference types="jwplayer" />
|
|
1
2
|
import { WebPlugin } from '@capacitor/core';
|
|
2
3
|
import type { JwPlayerPlugin } from './definitions';
|
|
4
|
+
declare global {
|
|
5
|
+
interface Window {
|
|
6
|
+
jwplayer: JWPlayerStatic;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
3
9
|
export declare class JwPlayerWeb extends WebPlugin implements JwPlayerPlugin {
|
|
10
|
+
private overlayDiv;
|
|
11
|
+
private jwPlayerInstance;
|
|
12
|
+
private generateUUID;
|
|
4
13
|
initialize(options: {
|
|
5
14
|
licenseKey: string;
|
|
15
|
+
playerUrl?: string;
|
|
6
16
|
}): Promise<void>;
|
|
7
|
-
play(
|
|
17
|
+
play(options: {
|
|
8
18
|
mediaUrl: string;
|
|
9
19
|
mediaType: 'video' | 'playlist';
|
|
20
|
+
autostart?: boolean;
|
|
10
21
|
}): Promise<void>;
|
|
22
|
+
private setupEventHandlers;
|
|
11
23
|
pause(): Promise<void>;
|
|
12
24
|
stop(): Promise<void>;
|
|
13
|
-
seekTo(
|
|
25
|
+
seekTo(options: {
|
|
14
26
|
time: number;
|
|
15
27
|
}): Promise<void>;
|
|
16
|
-
setVolume(
|
|
28
|
+
setVolume(options: {
|
|
17
29
|
volume: number;
|
|
18
30
|
}): Promise<void>;
|
|
19
31
|
getPosition(): Promise<{
|
|
@@ -22,16 +34,16 @@ export declare class JwPlayerWeb extends WebPlugin implements JwPlayerPlugin {
|
|
|
22
34
|
getState(): Promise<{
|
|
23
35
|
state: number;
|
|
24
36
|
}>;
|
|
25
|
-
setSpeed(
|
|
37
|
+
setSpeed(options: {
|
|
26
38
|
speed: number;
|
|
27
39
|
}): Promise<void>;
|
|
28
|
-
setPlaylistIndex(
|
|
40
|
+
setPlaylistIndex(options: {
|
|
29
41
|
index: number;
|
|
30
42
|
}): Promise<void>;
|
|
31
|
-
loadPlaylist(
|
|
43
|
+
loadPlaylist(options: {
|
|
32
44
|
playlistUrl: string;
|
|
33
45
|
}): Promise<void>;
|
|
34
|
-
loadPlaylistWithItems(
|
|
46
|
+
loadPlaylistWithItems(options: {
|
|
35
47
|
playlist: any[];
|
|
36
48
|
}): Promise<void>;
|
|
37
49
|
getAudioTracks(): Promise<{
|
|
@@ -40,7 +52,7 @@ export declare class JwPlayerWeb extends WebPlugin implements JwPlayerPlugin {
|
|
|
40
52
|
getCurrentAudioTrack(): Promise<{
|
|
41
53
|
index: number;
|
|
42
54
|
}>;
|
|
43
|
-
setCurrentAudioTrack(
|
|
55
|
+
setCurrentAudioTrack(options: {
|
|
44
56
|
index: number;
|
|
45
57
|
}): Promise<void>;
|
|
46
58
|
getCaptions(): Promise<{
|
|
@@ -49,7 +61,7 @@ export declare class JwPlayerWeb extends WebPlugin implements JwPlayerPlugin {
|
|
|
49
61
|
getCurrentCaptions(): Promise<{
|
|
50
62
|
index: number;
|
|
51
63
|
}>;
|
|
52
|
-
setCurrentCaptions(
|
|
64
|
+
setCurrentCaptions(options: {
|
|
53
65
|
index: number;
|
|
54
66
|
}): Promise<void>;
|
|
55
67
|
currentPlaylist(): Promise<any>;
|