@mustafaj/capacitor-plugin-playlist 0.9.3 → 0.9.5

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.
@@ -205,6 +205,9 @@ public class RmxAudioPlayer implements PlaybackStatusListener<AudioTrack>,
205
205
  @Override
206
206
  public void onItemPlaybackEnded(AudioTrack item) {
207
207
  if (item != null) {
208
+ if (suppressSelectionPlaybackEvents || isSuppressingSelection(item)) {
209
+ return;
210
+ }
208
211
  String trackId = item.getTrackId();
209
212
  JSONObject trackStatus = getPlayerStatus(item);
210
213
  onStatus(RmxAudioStatusMessage.RMXSTATUS_STOPPED, trackId, trackStatus);
@@ -254,8 +257,7 @@ public class RmxAudioPlayer implements PlaybackStatusListener<AudioTrack>,
254
257
 
255
258
  switch (playbackState) {
256
259
  case STOPPED:
257
- if (suppressSelection) {
258
- clearTrackSelectionSuppression();
260
+ if (suppressSelection || suppressSelectionPlaybackEvents) {
259
261
  break;
260
262
  }
261
263
  onStatus(RmxAudioStatusMessage.RMXSTATUS_STOPPED, "INVALID", null);
@@ -10,6 +10,10 @@ export declare class RmxAudioPlayer {
10
10
  private _hasError;
11
11
  private _hasLoaded;
12
12
  private _currentItem;
13
+ private _currentPosition;
14
+ private _currentDuration;
15
+ private _currentPositionUpdatedAt;
16
+ private _playbackRate;
13
17
  /**
14
18
  * The current summarized state of the player, as a string. It is preferred that you use the 'isX' accessors,
15
19
  * because they properly interpret the range of these values, but this field is exposed if you wish to observe
@@ -17,6 +21,8 @@ export declare class RmxAudioPlayer {
17
21
  */
18
22
  get currentState(): "error" | "stopped" | "unknown" | "paused" | "loading" | "playing" | "ready";
19
23
  get currentTrack(): AudioTrack | null;
24
+ get currentPosition(): number;
25
+ get currentDuration(): number;
20
26
  /**
21
27
  * If the playlist is currently playling a track.
22
28
  */
@@ -27,6 +27,18 @@ export class RmxAudioPlayer {
27
27
  get currentTrack() {
28
28
  return this._currentItem;
29
29
  }
30
+ get currentPosition() {
31
+ const duration = this._currentDuration || 0;
32
+ if (this._currentState !== 'playing') {
33
+ return duration ? Math.min(this._currentPosition, duration) : this._currentPosition;
34
+ }
35
+ const elapsed = Math.max(0, (performance.now() - this._currentPositionUpdatedAt) / 1000);
36
+ const nextPosition = this._currentPosition + elapsed * this._playbackRate;
37
+ return duration ? Math.min(nextPosition, duration) : nextPosition;
38
+ }
39
+ get currentDuration() {
40
+ return this._currentDuration;
41
+ }
30
42
  /**
31
43
  * If the playlist is currently playling a track.
32
44
  */
@@ -79,6 +91,10 @@ export class RmxAudioPlayer {
79
91
  this._hasError = false;
80
92
  this._hasLoaded = false;
81
93
  this._currentItem = null;
94
+ this._currentPosition = 0;
95
+ this._currentDuration = 0;
96
+ this._currentPositionUpdatedAt = performance.now();
97
+ this._playbackRate = 1;
82
98
  /**
83
99
  * Player interface
84
100
  */
@@ -189,24 +205,40 @@ export class RmxAudioPlayer {
189
205
  * Play the track at the given index. If the track does not exist, this has no effect.
190
206
  */
191
207
  this.playTrackByIndex = (index, position) => {
208
+ if (position !== undefined) {
209
+ this._currentPosition = position || 0;
210
+ this._currentPositionUpdatedAt = performance.now();
211
+ }
192
212
  return Playlist.playTrackByIndex({ index, position: position || 0 });
193
213
  };
194
214
  /**
195
215
  * Play the track matching the given trackId. If the track does not exist, this has no effect.
196
216
  */
197
217
  this.playTrackById = (id, position) => {
218
+ if (position !== undefined) {
219
+ this._currentPosition = position || 0;
220
+ this._currentPositionUpdatedAt = performance.now();
221
+ }
198
222
  return Playlist.playTrackById({ id, position: position || 0 });
199
223
  };
200
224
  /**
201
225
  * Play the track matching the given trackId. If the track does not exist, this has no effect.
202
226
  */
203
227
  this.selectTrackByIndex = (index, position) => {
228
+ if (position !== undefined) {
229
+ this._currentPosition = position || 0;
230
+ this._currentPositionUpdatedAt = performance.now();
231
+ }
204
232
  return Playlist.selectTrackByIndex({ index, position: position || 0 });
205
233
  };
206
234
  /**
207
235
  * Play the track matching the given trackId. If the track does not exist, this has no effect.
208
236
  */
209
237
  this.selectTrackById = (id, position) => {
238
+ if (position !== undefined) {
239
+ this._currentPosition = position || 0;
240
+ this._currentPositionUpdatedAt = performance.now();
241
+ }
210
242
  return Playlist.selectTrackById({ id, position: position || 0 });
211
243
  };
212
244
  /**
@@ -233,12 +265,17 @@ export class RmxAudioPlayer {
233
265
  * the track will complete and playback of the next track will begin.
234
266
  */
235
267
  this.seekTo = (position) => {
268
+ this._currentPosition = position;
269
+ this._currentPositionUpdatedAt = performance.now();
236
270
  return Playlist.seekTo({ position });
237
271
  };
238
272
  /**
239
273
  * Set the playback speed; a float value between [-1, 1] inclusive. If set to 0, this pauses playback.
240
274
  */
241
275
  this.setPlaybackRate = (rate) => {
276
+ this._playbackRate = rate || 1;
277
+ this._currentPosition = this.currentPosition;
278
+ this._currentPositionUpdatedAt = performance.now();
242
279
  return Playlist.setPlaybackRate({ rate });
243
280
  };
244
281
  /**
@@ -273,7 +310,7 @@ export class RmxAudioPlayer {
273
310
  * Internal use only, to raise events received from the native interface.
274
311
  */
275
312
  onStatus(trackId, type, value) {
276
- var _a;
313
+ var _a, _b, _c, _d;
277
314
  const status = { msgType: type, trackId: trackId, value: value };
278
315
  if (this.options.verbose) {
279
316
  console.debug(`RmxAudioPlayer.onStatus: ${RmxAudioStatusMessageDescriptions[type]}(${type}) [${trackId}]: `, value);
@@ -282,15 +319,35 @@ export class RmxAudioPlayer {
282
319
  this._hasError = false;
283
320
  this._hasLoaded = false;
284
321
  this._currentState = 'loading';
322
+ this._currentPosition = 0;
323
+ this._currentDuration = 0;
324
+ this._currentPositionUpdatedAt = performance.now();
285
325
  this._currentItem = (_a = status.value) === null || _a === void 0 ? void 0 : _a.currentItem;
286
326
  }
287
327
  // The plugin's status changes only in response to specific events.
288
328
  if (itemStatusChangeTypes.indexOf(status.msgType) >= 0) {
289
329
  // Only change the plugin's *current status* if the event being raised is for the current active track.
290
330
  if (this._currentItem && this._currentItem.trackId === trackId) {
331
+ if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION && status.value && status.value.currentPosition !== undefined) {
332
+ this._currentPosition = status.value.currentPosition;
333
+ this._currentPositionUpdatedAt = performance.now();
334
+ }
335
+ if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_DURATION && status.value && status.value.duration !== undefined) {
336
+ this._currentDuration = status.value.duration;
337
+ }
291
338
  if (status.value && status.value.status) {
292
339
  this._currentState = status.value.status;
293
340
  }
341
+ if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_PLAYING ||
342
+ status.msgType === RmxAudioStatusMessage.RMXSTATUS_PAUSE ||
343
+ status.msgType === RmxAudioStatusMessage.RMXSTATUS_SEEK ||
344
+ status.msgType === RmxAudioStatusMessage.RMXSTATUS_COMPLETED) {
345
+ const currentPosition = (_c = (_b = status.value) === null || _b === void 0 ? void 0 : _b.currentPosition) !== null && _c !== void 0 ? _c : (_d = status.value) === null || _d === void 0 ? void 0 : _d.position;
346
+ if (currentPosition !== undefined) {
347
+ this._currentPosition = currentPosition;
348
+ this._currentPositionUpdatedAt = performance.now();
349
+ }
350
+ }
294
351
  if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_CANPLAY) {
295
352
  this._hasLoaded = true;
296
353
  }
@@ -1 +1 @@
1
- {"version":3,"file":"RmxAudioPlayer.js","sourceRoot":"","sources":["../../src/RmxAudioPlayer.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,qBAAqB,EACrB,iCAAiC,EACpC,MAAM,aAAa,CAAC;AAgBrB,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAGxD;;GAEG;AAEH,MAAM,qBAAqB,GAAG;IAC1B,qBAAqB,CAAC,2BAA2B;IACjD,qBAAqB,CAAC,kBAAkB;IACxC,qBAAqB,CAAC,mBAAmB;IACzC,qBAAqB,CAAC,iBAAiB;IACvC,qBAAqB,CAAC,iBAAiB;IACvC,qBAAqB,CAAC,gB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Q,EAAE,SAAS,CAAC,EAAE,CAAC;YAClE,OAAO,KAAK,CAAC;QACjB,CAAC;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;QACzC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YACtC,MAAM,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;YAC7C,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;gBACjC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC;YACtB,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;CACJ"}
package/dist/plugin.js CHANGED
@@ -259,6 +259,18 @@ var capacitorPlaylist = (function (exports, core) {
259
259
  get currentTrack() {
260
260
  return this._currentItem;
261
261
  }
262
+ get currentPosition() {
263
+ const duration = this._currentDuration || 0;
264
+ if (this._currentState !== 'playing') {
265
+ return duration ? Math.min(this._currentPosition, duration) : this._currentPosition;
266
+ }
267
+ const elapsed = Math.max(0, (performance.now() - this._currentPositionUpdatedAt) / 1000);
268
+ const nextPosition = this._currentPosition + elapsed * this._playbackRate;
269
+ return duration ? Math.min(nextPosition, duration) : nextPosition;
270
+ }
271
+ get currentDuration() {
272
+ return this._currentDuration;
273
+ }
262
274
  /**
263
275
  * If the playlist is currently playling a track.
264
276
  */
@@ -311,6 +323,10 @@ var capacitorPlaylist = (function (exports, core) {
311
323
  this._hasError = false;
312
324
  this._hasLoaded = false;
313
325
  this._currentItem = null;
326
+ this._currentPosition = 0;
327
+ this._currentDuration = 0;
328
+ this._currentPositionUpdatedAt = performance.now();
329
+ this._playbackRate = 1;
314
330
  /**
315
331
  * Player interface
316
332
  */
@@ -421,24 +437,40 @@ var capacitorPlaylist = (function (exports, core) {
421
437
  * Play the track at the given index. If the track does not exist, this has no effect.
422
438
  */
423
439
  this.playTrackByIndex = (index, position) => {
440
+ if (position !== undefined) {
441
+ this._currentPosition = position || 0;
442
+ this._currentPositionUpdatedAt = performance.now();
443
+ }
424
444
  return Playlist.playTrackByIndex({ index, position: position || 0 });
425
445
  };
426
446
  /**
427
447
  * Play the track matching the given trackId. If the track does not exist, this has no effect.
428
448
  */
429
449
  this.playTrackById = (id, position) => {
450
+ if (position !== undefined) {
451
+ this._currentPosition = position || 0;
452
+ this._currentPositionUpdatedAt = performance.now();
453
+ }
430
454
  return Playlist.playTrackById({ id, position: position || 0 });
431
455
  };
432
456
  /**
433
457
  * Play the track matching the given trackId. If the track does not exist, this has no effect.
434
458
  */
435
459
  this.selectTrackByIndex = (index, position) => {
460
+ if (position !== undefined) {
461
+ this._currentPosition = position || 0;
462
+ this._currentPositionUpdatedAt = performance.now();
463
+ }
436
464
  return Playlist.selectTrackByIndex({ index, position: position || 0 });
437
465
  };
438
466
  /**
439
467
  * Play the track matching the given trackId. If the track does not exist, this has no effect.
440
468
  */
441
469
  this.selectTrackById = (id, position) => {
470
+ if (position !== undefined) {
471
+ this._currentPosition = position || 0;
472
+ this._currentPositionUpdatedAt = performance.now();
473
+ }
442
474
  return Playlist.selectTrackById({ id, position: position || 0 });
443
475
  };
444
476
  /**
@@ -465,12 +497,17 @@ var capacitorPlaylist = (function (exports, core) {
465
497
  * the track will complete and playback of the next track will begin.
466
498
  */
467
499
  this.seekTo = (position) => {
500
+ this._currentPosition = position;
501
+ this._currentPositionUpdatedAt = performance.now();
468
502
  return Playlist.seekTo({ position });
469
503
  };
470
504
  /**
471
505
  * Set the playback speed; a float value between [-1, 1] inclusive. If set to 0, this pauses playback.
472
506
  */
473
507
  this.setPlaybackRate = (rate) => {
508
+ this._playbackRate = rate || 1;
509
+ this._currentPosition = this.currentPosition;
510
+ this._currentPositionUpdatedAt = performance.now();
474
511
  return Playlist.setPlaybackRate({ rate });
475
512
  };
476
513
  /**
@@ -505,7 +542,7 @@ var capacitorPlaylist = (function (exports, core) {
505
542
  * Internal use only, to raise events received from the native interface.
506
543
  */
507
544
  onStatus(trackId, type, value) {
508
- var _a;
545
+ var _a, _b, _c, _d;
509
546
  const status = { msgType: type, trackId: trackId, value: value };
510
547
  if (this.options.verbose) {
511
548
  console.debug(`RmxAudioPlayer.onStatus: ${RmxAudioStatusMessageDescriptions[type]}(${type}) [${trackId}]: `, value);
@@ -514,15 +551,35 @@ var capacitorPlaylist = (function (exports, core) {
514
551
  this._hasError = false;
515
552
  this._hasLoaded = false;
516
553
  this._currentState = 'loading';
554
+ this._currentPosition = 0;
555
+ this._currentDuration = 0;
556
+ this._currentPositionUpdatedAt = performance.now();
517
557
  this._currentItem = (_a = status.value) === null || _a === void 0 ? void 0 : _a.currentItem;
518
558
  }
519
559
  // The plugin's status changes only in response to specific events.
520
560
  if (itemStatusChangeTypes.indexOf(status.msgType) >= 0) {
521
561
  // Only change the plugin's *current status* if the event being raised is for the current active track.
522
562
  if (this._currentItem && this._currentItem.trackId === trackId) {
563
+ if (status.msgType === exports.RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION && status.value && status.value.currentPosition !== undefined) {
564
+ this._currentPosition = status.value.currentPosition;
565
+ this._currentPositionUpdatedAt = performance.now();
566
+ }
567
+ if (status.msgType === exports.RmxAudioStatusMessage.RMXSTATUS_DURATION && status.value && status.value.duration !== undefined) {
568
+ this._currentDuration = status.value.duration;
569
+ }
523
570
  if (status.value && status.value.status) {
524
571
  this._currentState = status.value.status;
525
572
  }
573
+ if (status.msgType === exports.RmxAudioStatusMessage.RMXSTATUS_PLAYING ||
574
+ status.msgType === exports.RmxAudioStatusMessage.RMXSTATUS_PAUSE ||
575
+ status.msgType === exports.RmxAudioStatusMessage.RMXSTATUS_SEEK ||
576
+ status.msgType === exports.RmxAudioStatusMessage.RMXSTATUS_COMPLETED) {
577
+ const currentPosition = (_c = (_b = status.value) === null || _b === void 0 ? void 0 : _b.currentPosition) !== null && _c !== void 0 ? _c : (_d = status.value) === null || _d === void 0 ? void 0 : _d.position;
578
+ if (currentPosition !== undefined) {
579
+ this._currentPosition = currentPosition;
580
+ this._currentPositionUpdatedAt = performance.now();
581
+ }
582
+ }
526
583
  if (status.msgType === exports.RmxAudioStatusMessage.RMXSTATUS_CANPLAY) {
527
584
  this._hasLoaded = true;
528
585
  }
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.js","sources":["esm/Constants.js","esm/plugin.js","esm/utils.js","esm/RmxAudioPlayer.js","esm/web.js"],"sourcesContent":["/**\n * Enum describing the possible errors that may come from the plugins\n */\nexport var RmxAudioErrorType;\n(function (RmxAudioErrorType) {\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_NONE_ACTIVE\"] = 0] = \"RMXERR_NONE_ACTIVE\";\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_ABORTED\"] = 1] = \"RMXERR_ABORTED\";\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_NETWORK\"] = 2] = \"RMXERR_NETWORK\";\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_DECODE\"] = 3] = \"RMXERR_DECODE\";\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_NONE_SUPPORTED\"] = 4] = \"RMXERR_NONE_SUPPORTED\";\n})(RmxAudioErrorType || (RmxAudioErrorType = {}));\n;\n/**\n * String descriptions corresponding to the RmxAudioErrorType values\n */\nexport const RmxAudioErrorTypeDescriptions = [\n 'No Active Sources',\n 'Aborted',\n 'Network',\n 'Failed to Decode',\n 'No Supported Sources',\n];\n/**\n * Enumeration of all status messages raised by the plugin.\n * NONE, REGISTER and INIT are structural and probably not useful to you.\n */\nexport var RmxAudioStatusMessage;\n(function (RmxAudioStatusMessage) {\n /**\n * The starting state of the plugin. You will never see this value;\n * it changes before the callbacks are even registered to report changes to this value.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_NONE\"] = 0] = \"RMXSTATUS_NONE\";\n /**\n * Raised when the plugin registers the callback handler for onStatus callbacks.\n * You will probably not be able to see this (nor do you need to).\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_REGISTER\"] = 1] = \"RMXSTATUS_REGISTER\";\n /**\n * Reserved for future use\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_INIT\"] = 2] = \"RMXSTATUS_INIT\";\n /**\n * Indicates an error is reported in the 'value' field.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_ERROR\"] = 5] = \"RMXSTATUS_ERROR\";\n /**\n * The reported track is being loaded by the player\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_LOADING\"] = 10] = \"RMXSTATUS_LOADING\";\n /**\n * The reported track is able to begin playback\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_CANPLAY\"] = 11] = \"RMXSTATUS_CANPLAY\";\n /**\n * The reported track has loaded 100% of the file (either from disc or network)\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_LOADED\"] = 15] = \"RMXSTATUS_LOADED\";\n /**\n * (iOS only): Playback has stalled due to insufficient network\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_STALLED\"] = 20] = \"RMXSTATUS_STALLED\";\n /**\n * Reports an update in the reported track's buffering status\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_BUFFERING\"] = 25] = \"RMXSTATUS_BUFFERING\";\n /**\n * The reported track has started (or resumed) playing\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PLAYING\"] = 30] = \"RMXSTATUS_PLAYING\";\n /**\n * The reported track has been paused, either by the user or by the system.\n * (iOS only): This value is raised when MP3's are malformed (but still playable).\n * These require the user to explicitly press play again. This can be worked\n * around and is on the TODO list.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PAUSE\"] = 35] = \"RMXSTATUS_PAUSE\";\n /**\n * Reports a change in the reported track's playback position.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PLAYBACK_POSITION\"] = 40] = \"RMXSTATUS_PLAYBACK_POSITION\";\n /**\n * The reported track has seeked.\n * On Android, only the plugin consumer can generate this (Notification controls on Android do not include a seek bar).\n * On iOS, the Command Center includes a seek bar so this will be reported when the user has seeked via Command Center.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_SEEK\"] = 45] = \"RMXSTATUS_SEEK\";\n /**\n * The reported track has completed playback.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_COMPLETED\"] = 50] = \"RMXSTATUS_COMPLETED\";\n /**\n * The reported track's duration has changed. This is raised once, when duration is updated for the first time.\n * For streams, this value is never reported.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_DURATION\"] = 55] = \"RMXSTATUS_DURATION\";\n /**\n * All playback has stopped, probably because the plugin is shutting down.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_STOPPED\"] = 60] = \"RMXSTATUS_STOPPED\";\n /**\n * The playlist has skipped forward to the next track.\n * On both Android and iOS, this will be raised if the notification controls/Command Center were used to skip.\n * It is unlikely you need to consume this event: RMXSTATUS_TRACK_CHANGED is also reported when this occurs,\n * so you can generalize your track change handling in one place.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMX_STATUS_SKIP_FORWARD\"] = 90] = \"RMX_STATUS_SKIP_FORWARD\";\n /**\n * The playlist has skipped back to the previous track.\n * On both Android and iOS, this will be raised if the notification controls/Command Center were used to skip.\n * It is unlikely you need to consume this event: RMXSTATUS_TRACK_CHANGED is also reported when this occurs,\n * so you can generalize your track change handling in one place.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMX_STATUS_SKIP_BACK\"] = 95] = \"RMX_STATUS_SKIP_BACK\";\n /**\n * Reported when the current track has changed in the native player. This event contains full data about\n * the new track, including the index and the actual track itself. The type of the 'value' field in this case\n * is OnStatusTrackChangedData.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_TRACK_CHANGED\"] = 100] = \"RMXSTATUS_TRACK_CHANGED\";\n /**\n * The entire playlist has completed playback.\n * After this event has been raised, the current item is set to null and the current index to -1.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PLAYLIST_COMPLETED\"] = 105] = \"RMXSTATUS_PLAYLIST_COMPLETED\";\n /**\n * An item has been added to the playlist. For the setPlaylistItems and addAllItems methods, this status is\n * raised once for every track in the collection.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_ITEM_ADDED\"] = 110] = \"RMXSTATUS_ITEM_ADDED\";\n /**\n * An item has been removed from the playlist. For the removeItems and clearAllItems methods, this status is\n * raised once for every track that was removed.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_ITEM_REMOVED\"] = 115] = \"RMXSTATUS_ITEM_REMOVED\";\n /**\n * All items have been removed from the playlist\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PLAYLIST_CLEARED\"] = 120] = \"RMXSTATUS_PLAYLIST_CLEARED\";\n /**\n * Just for testing.. you don't need this and in fact can never receive it, the plugin is destroyed before it can be raised.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_VIEWDISAPPEAR\"] = 200] = \"RMXSTATUS_VIEWDISAPPEAR\";\n})(RmxAudioStatusMessage || (RmxAudioStatusMessage = {}));\n;\n/**\n * String descriptions corresponding to the RmxAudioStatusMessage values\n */\nexport const RmxAudioStatusMessageDescriptions = {\n 0: 'No Status',\n 1: 'Plugin Registered',\n 2: 'Plugin Initialized',\n 5: 'Error',\n 10: 'Loading',\n 11: 'CanPlay',\n 15: 'Loaded',\n 20: 'Stalled',\n 25: 'Buffering',\n 30: 'Playing',\n 35: 'Paused',\n 40: 'Playback Position Changed',\n 45: 'Seeked',\n 50: 'Playback Completed',\n 55: 'Duration Changed',\n 60: 'Stopped',\n 90: 'Skip Forward',\n 95: 'Skip Backward',\n 100: 'Track Changed',\n 105: 'Playlist Completed',\n 110: 'Track Added',\n 115: 'Track Removed',\n 120: 'Playlist Cleared',\n 200: 'DEBUG_View_Disappeared',\n};\n//# sourceMappingURL=Constants.js.map","import { registerPlugin } from '@capacitor/core';\n// todo: find out why we get imported twice\nlet playListWebInstance;\nconst Playlist = registerPlugin('Playlist', {\n web: () => import('./web').then(m => {\n if (!playListWebInstance) {\n playListWebInstance = new m.PlaylistWeb();\n }\n return playListWebInstance;\n }),\n});\nexport { Playlist };\n//# sourceMappingURL=plugin.js.map","/**\n * Validates the list of AudioTrack items to ensure they are valid.\n * Used internally but you can call this if you need to :)\n *\n * @param items The AudioTrack items to validate\n */\nexport const validateTracks = (items) => {\n if (!items || !Array.isArray(items)) {\n return [];\n }\n return items.map(validateTrack).filter(x => !!x); // may produce an empty array!\n};\n/**\n * Validate a single track and ensure it is valid for playback.\n * Used internally but you can call this if you need to :)\n *\n * @param track The AudioTrack to validate\n */\nexport const validateTrack = (track) => {\n if (!track) {\n return null;\n }\n // For now we will rely on TS to do the heavy lifting, but we can add a validation here\n // that all the required fields are valid. For now we just take care of the unique ID.\n track.trackId = track.trackId || generateUUID();\n return track;\n};\n/**\n * Generate a v4 UUID for use as a unique trackId. Used internally, but you can use this to generate track ID's if you want.\n */\nconst generateUUID = () => {\n var d = new Date().getTime();\n if (typeof performance !== 'undefined' && typeof performance.now === 'function') {\n d += performance.now(); //use high-precision timer if available\n }\n // There are better ways to do this in ES6, we are intentionally avoiding the import\n // of an ES6 polyfill here.\n const template = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';\n return [].slice.call(template).map(function (c) {\n if (c === '-' || c === '4') {\n return c;\n }\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16);\n return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);\n }).join('');\n};\n//# sourceMappingURL=utils.js.map","import { RmxAudioStatusMessage, RmxAudioStatusMessageDescriptions } from './Constants';\nimport { Playlist } from './plugin';\nimport { validateTrack, validateTracks } from './utils';\n/*!\n * Module dependencies.\n */\nconst itemStatusChangeTypes = [\n RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION,\n RmxAudioStatusMessage.RMXSTATUS_DURATION,\n RmxAudioStatusMessage.RMXSTATUS_BUFFERING,\n RmxAudioStatusMessage.RMXSTATUS_CANPLAY,\n RmxAudioStatusMessage.RMXSTATUS_LOADING,\n RmxAudioStatusMessage.RMXSTATUS_LOADED,\n RmxAudioStatusMessage.RMXSTATUS_PAUSE,\n RmxAudioStatusMessage.RMXSTATUS_COMPLETED,\n RmxAudioStatusMessage.RMXSTATUS_ERROR,\n];\nexport class RmxAudioPlayer {\n /**\n * The current summarized state of the player, as a string. It is preferred that you use the 'isX' accessors,\n * because they properly interpret the range of these values, but this field is exposed if you wish to observe\n * or interrogate it.\n */\n get currentState() {\n return this._currentState;\n }\n get currentTrack() {\n return this._currentItem;\n }\n /**\n * If the playlist is currently playling a track.\n */\n get isPlaying() {\n return this._currentState === 'playing';\n }\n /**\n * True if the playlist is currently paused\n */\n get isPaused() {\n return this._currentState === 'paused' || this._currentState === 'stopped';\n }\n /**\n * True if the plugin is currently loading its *current* track.\n * On iOS, many tracks are loaded in parallel, so this only reports for the *current item*, e.g.\n * the item that will begin playback if you press pause.\n * If you need track-specific data, it is better to watch the onStatus stream and watch for RMXSTATUS_LOADING,\n * which will be raised independently & simultaneously for every track in the playlist.\n * On Android, tracks are only loaded as they begin playback, so this value and RMXSTATUS_LOADING should always\n * apply to the same track.\n */\n get isLoading() {\n return this._currentState === 'loading';\n }\n /**\n * True if the *currently playing track* has been loaded and can be played (this includes if it is *currently playing*).\n */\n get hasLoaded() {\n return this._hasLoaded;\n }\n /**\n * True if the *current track* has reported an error. In almost all cases,\n * the playlist will automatically skip forward to the next track, in which case you will also receive\n * an RMXSTATUS_TRACK_CHANGED event.\n */\n get hasError() {\n return this._hasError;\n }\n /**\n * Creates a new RmxAudioPlayer instance.\n */\n constructor() {\n this.handlers = {};\n this.options = { verbose: false, resetStreamOnPause: true };\n this._readyResolve = () => {\n };\n this._readyReject = () => {\n };\n this._currentState = 'unknown';\n this._hasError = false;\n this._hasLoaded = false;\n this._currentItem = null;\n /**\n * Player interface\n */\n /**\n * Returns a promise that resolves when the plugin is ready.\n */\n this.ready = () => {\n return this._initPromise;\n };\n this.initialize = async () => {\n Playlist.addListener('status', (data) => {\n if (data.action === 'status') {\n this.onStatus(data.status.trackId, data.status.msgType, data.status.value);\n }\n else {\n console.warn('Unknown audio player onStatus message:', data);\n }\n });\n try {\n await Playlist.initialize();\n this._readyResolve();\n }\n catch (args) {\n const message = 'Capacitor RMXAUDIOPLAYER: Error initializing:';\n console.warn(message, args);\n this._readyReject();\n }\n };\n /**\n * Sets the player options. This can be called at any time and is not required before playback can be initiated.\n */\n this.setOptions = (options) => {\n this.options = Object.assign(Object.assign({}, this.options), options);\n return Playlist.setOptions(this.options);\n };\n /**\n * Playlist item management\n */\n /**\n * Sets the entire list of tracks to be played by the playlist.\n * This will clear all previous items from the playlist.\n * If you pass options.retainPosition = true, the current playback position will be\n * recorded and used when playback restarts. This can be used, for example, to set the\n * playlist to a new set of tracks, but retain the currently-playing item to avoid skipping.\n */\n this.setPlaylistItems = (items, options) => {\n return Playlist.setPlaylistItems({ items: validateTracks(items), options: options || {} });\n };\n /**\n * Add a single track to the end of the playlist\n */\n this.addItem = (trackItem) => {\n const validTrackItem = validateTrack(trackItem);\n if (!validTrackItem) {\n throw new Error('Provided track is null or not an audio track');\n }\n return Playlist.addItem({ item: validTrackItem });\n };\n /**\n * Adds the list of tracks to the end of the playlist.\n */\n this.addAllItems = (items) => {\n return Playlist.addAllItems({ items: validateTracks(items) });\n };\n /**\n * Removes a track from the playlist. If this is the currently playing item, the next item will automatically begin playback.\n */\n this.removeItem = (removeItem) => {\n if (!removeItem) {\n throw new Error('Track removal spec is empty');\n }\n if (!removeItem.trackId && removeItem.trackIndex === undefined) {\n throw new Error('Track removal spec is invalid');\n }\n return Playlist.removeItem({\n id: removeItem.trackId,\n index: removeItem.trackIndex\n });\n };\n /**\n * Removes all given tracks from the playlist; these can be specified either by trackId or trackIndex. If the removed items\n * include the currently playing item, the next available item will automatically begin playing.\n */\n this.removeItems = (items) => {\n return Playlist.removeItems({\n items: (items || []).map((item) => ({\n id: item === null || item === void 0 ? void 0 : item.trackId,\n index: item === null || item === void 0 ? void 0 : item.trackIndex\n }))\n });\n };\n /**\n * Clear the entire playlist. This will result in the STOPPED event being raised.\n */\n this.clearAllItems = () => {\n return Playlist.clearAllItems();\n };\n /**\n * Playback management\n */\n /**\n * Begin playback. If no tracks have been added, this has no effect.\n */\n this.play = () => {\n return Playlist.play();\n };\n /**\n * Play the track at the given index. If the track does not exist, this has no effect.\n */\n this.playTrackByIndex = (index, position) => {\n return Playlist.playTrackByIndex({ index, position: position || 0 });\n };\n /**\n * Play the track matching the given trackId. If the track does not exist, this has no effect.\n */\n this.playTrackById = (id, position) => {\n return Playlist.playTrackById({ id, position: position || 0 });\n };\n /**\n * Play the track matching the given trackId. If the track does not exist, this has no effect.\n */\n this.selectTrackByIndex = (index, position) => {\n return Playlist.selectTrackByIndex({ index, position: position || 0 });\n };\n /**\n * Play the track matching the given trackId. If the track does not exist, this has no effect.\n */\n this.selectTrackById = (id, position) => {\n return Playlist.selectTrackById({ id, position: position || 0 });\n };\n /**\n * Pause playback\n */\n this.pause = () => {\n return Playlist.pause();\n };\n /**\n * Skip to the next track. If you are already at the end, and loop is false, this has no effect.\n * If you are at the end, and loop is true, playback will begin at the beginning of the playlist.\n */\n this.skipForward = () => {\n return Playlist.skipForward();\n };\n /**\n * Skip to the previous track. If you are already at the beginning, this has no effect.\n */\n this.skipBack = () => {\n return Playlist.skipBack();\n };\n /**\n * Seek to the given position in the currently playing track. If the value exceeds the track length,\n * the track will complete and playback of the next track will begin.\n */\n this.seekTo = (position) => {\n return Playlist.seekTo({ position });\n };\n /**\n * Set the playback speed; a float value between [-1, 1] inclusive. If set to 0, this pauses playback.\n */\n this.setPlaybackRate = (rate) => {\n return Playlist.setPlaybackRate({ rate });\n };\n /**\n * Set the playback volume. Float value between [0, 1] inclusive.\n * On both Android and iOS, this sets the volume of the media stream, which can be externally\n * controlled by setting the overall hardware volume.\n */\n this.setVolume = (volume) => {\n return Playlist.setPlaybackVolume({ volume });\n };\n /**\n * Sets a flag indicating whether the playlist should loop back to the beginning once it reaches the end.\n */\n this.setLoop = (loop) => {\n return Playlist.setLoop({ loop: loop });\n };\n this.handlers = {};\n new Promise((resolve) => {\n window.addEventListener('beforeunload', () => resolve(), { once: true });\n }).then(() => Playlist.release());\n this._initPromise = new Promise((resolve, reject) => {\n this._readyResolve = resolve;\n this._readyReject = reject;\n });\n }\n /**\n * Status event handling\n */\n /**\n * @internal\n * Call this function to emit an onStatus event via the on('status') handler.\n * Internal use only, to raise events received from the native interface.\n */\n onStatus(trackId, type, value) {\n var _a;\n const status = { msgType: type, trackId: trackId, value: value };\n if (this.options.verbose) {\n console.debug(`RmxAudioPlayer.onStatus: ${RmxAudioStatusMessageDescriptions[type]}(${type}) [${trackId}]: `, value);\n }\n if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_TRACK_CHANGED) {\n this._hasError = false;\n this._hasLoaded = false;\n this._currentState = 'loading';\n this._currentItem = (_a = status.value) === null || _a === void 0 ? void 0 : _a.currentItem;\n }\n // The plugin's status changes only in response to specific events.\n if (itemStatusChangeTypes.indexOf(status.msgType) >= 0) {\n // Only change the plugin's *current status* if the event being raised is for the current active track.\n if (this._currentItem && this._currentItem.trackId === trackId) {\n if (status.value && status.value.status) {\n this._currentState = status.value.status;\n }\n if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_CANPLAY) {\n this._hasLoaded = true;\n }\n if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_ERROR) {\n this._hasError = true;\n }\n }\n }\n this.emit('status', status);\n }\n on(eventName, callback) {\n if (!Object.prototype.hasOwnProperty.call(this.handlers, eventName)) {\n this.handlers[eventName] = [];\n }\n this.handlers[eventName].push(callback);\n }\n /**\n * Remove an event handler from the plugin\n * @param eventName The name of the event whose subscription is to be removed\n * @param handle The event handler to destroy. Ensure that this is the SAME INSTANCE as the handler\n * that was passed in to create the subscription!\n */\n off(eventName, handle) {\n if (Object.prototype.hasOwnProperty.call(this.handlers, eventName)) {\n const handleIndex = this.handlers[eventName].indexOf(handle);\n if (handleIndex >= 0) {\n this.handlers[eventName].splice(handleIndex, 1);\n }\n }\n }\n /**\n * @internal\n * Raises an event via the corresponding event handler. Internal use only.\n * @param args Event args to pass through to the handler.\n */\n emit(...args) {\n const eventName = args.shift();\n if (!Object.prototype.hasOwnProperty.call(this.handlers, eventName)) {\n return false;\n }\n const handler = this.handlers[eventName];\n for (let i = 0; i < handler.length; i++) {\n const callback = this.handlers[eventName][i];\n if (typeof callback === 'function') {\n callback(...args);\n }\n }\n return true;\n }\n}\n//# sourceMappingURL=RmxAudioPlayer.js.map","import { WebPlugin } from '@capacitor/core';\nimport { RmxAudioStatusMessage } from './Constants';\nimport { validateTrack, validateTracks } from './utils';\nexport class PlaylistWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.playlistItems = [];\n this.loop = false;\n this.options = {};\n this.currentTrack = null;\n this.lastState = 'stopped';\n this.hlsLoaded = false;\n }\n addAllItems(options) {\n this.playlistItems = this.playlistItems.concat(validateTracks(options.items));\n return Promise.resolve();\n }\n addItem(options) {\n const track = validateTrack(options.item);\n if (track) {\n this.playlistItems.push(track);\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_ITEM_ADDED, track, track.trackId);\n }\n return Promise.resolve();\n }\n async clearAllItems() {\n await this.release();\n this.playlistItems = [];\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PLAYLIST_CLEARED, null, \"INVALID\");\n return Promise.resolve();\n }\n async getPlaylist() {\n return Promise.resolve({ items: this.playlistItems });\n }\n async initialize() {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_INIT, null, \"INVALID\");\n return Promise.resolve();\n }\n async pause() {\n var _a;\n (_a = this.audio) === null || _a === void 0 ? void 0 : _a.pause();\n }\n async play() {\n var _a;\n await ((_a = this.audio) === null || _a === void 0 ? void 0 : _a.play());\n }\n async playTrackById(options) {\n for (let track of this.playlistItems) {\n if (track.trackId === options.id) {\n if (track !== this.currentTrack) {\n await this.setCurrent(track);\n if (this.audio && (options === null || options === void 0 ? void 0 : options.position) && options.position > 0) {\n this.audio.currentTime = options.position;\n }\n }\n return this.play();\n }\n }\n return Promise.reject();\n }\n async playTrackByIndex(options) {\n for (let { index, item } of this.playlistItems.map((item, index) => ({ index, item }))) {\n if (index === options.index) {\n if (item !== this.currentTrack) {\n await this.setCurrent(item);\n if (this.audio && (options === null || options === void 0 ? void 0 : options.position) && options.position > 0) {\n this.audio.currentTime = options.position;\n }\n }\n return this.play();\n }\n }\n return Promise.reject();\n }\n async release() {\n await this.pause();\n this.audio = undefined;\n return Promise.resolve();\n }\n async create() {\n this.audio = document.createElement('audio');\n this.audio.crossOrigin = 'anonymous';\n this.audio.preload = 'metadata';\n this.audio.controls = true;\n this.audio.autoplay = false;\n return Promise.resolve();\n }\n removeItem(options) {\n // options.index can be 0; don't use a truthy check.\n let removeIndex = -1;\n if (options.index !== undefined && options.index !== null) {\n removeIndex = options.index;\n }\n else if (options.id) {\n removeIndex = this.playlistItems.findIndex((t) => t.trackId === options.id);\n }\n if (removeIndex >= 0 && removeIndex < this.playlistItems.length) {\n const removedTrack = this.playlistItems.splice(removeIndex, 1)[0];\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_ITEM_REMOVED, removedTrack, removedTrack === null || removedTrack === void 0 ? void 0 : removedTrack.trackId);\n }\n return Promise.resolve();\n }\n removeItems(options) {\n options.items.forEach(async (item) => {\n await this.removeItem(item);\n });\n return Promise.resolve();\n }\n seekTo(options) {\n if (this.audio) {\n this.audio.currentTime = options.position;\n return Promise.resolve();\n }\n return Promise.reject();\n }\n selectTrackById(options) {\n for (const item of this.playlistItems) {\n if (item.trackId === options.id) {\n return this.setCurrent(item);\n }\n }\n return Promise.reject();\n }\n selectTrackByIndex(options) {\n let index = 0;\n for (const item of this.playlistItems) {\n if (index === options.index) {\n return this.setCurrent(item);\n }\n index++;\n }\n return Promise.reject();\n }\n setLoop(options) {\n this.loop = options.loop;\n return Promise.resolve();\n }\n setOptions(options) {\n this.options = options || {};\n return Promise.resolve();\n }\n setPlaybackVolume(options) {\n if (this.audio) {\n this.audio.volume = options.volume;\n return Promise.resolve();\n }\n return Promise.reject();\n }\n async setPlaylistItems(options) {\n var _a, _b, _c;\n this.playlistItems = options.items;\n if (this.playlistItems.length > 0) {\n let currentItem = this.playlistItems.filter(i => { var _a; return i.trackId === ((_a = options.options) === null || _a === void 0 ? void 0 : _a.playFromId); })[0];\n if (!currentItem) {\n currentItem = this.playlistItems[0];\n }\n await this.setCurrent(currentItem, (_b = (_a = options.options) === null || _a === void 0 ? void 0 : _a.playFromPosition) !== null && _b !== void 0 ? _b : 0);\n if (!((_c = options.options) === null || _c === void 0 ? void 0 : _c.startPaused)) {\n await this.play();\n }\n }\n return Promise.resolve();\n }\n async skipForward() {\n let found = null;\n this.playlistItems.forEach((item, index) => {\n if (found === null && this.getCurrentTrackId() === item.trackId) {\n found = index;\n }\n });\n if (found === this.playlistItems.length - 1) {\n found = -1;\n }\n if (found !== null) {\n const targetIndex = found + 1;\n this.updateStatus(RmxAudioStatusMessage.RMX_STATUS_SKIP_FORWARD, {\n currentIndex: targetIndex,\n currentItem: this.playlistItems[targetIndex]\n }, this.playlistItems[targetIndex].trackId);\n return this.setCurrent(this.playlistItems[targetIndex]);\n }\n return Promise.reject();\n }\n async skipBack() {\n let found = null;\n this.playlistItems.forEach((item, index) => {\n if (found === null && this.getCurrentTrackId() === item.trackId) {\n found = index;\n }\n });\n if (found !== null) {\n const targetIndex = found === 0 ? this.playlistItems.length - 1 : found - 1;\n this.updateStatus(RmxAudioStatusMessage.RMX_STATUS_SKIP_BACK, {\n currentIndex: targetIndex,\n currentItem: this.playlistItems[targetIndex]\n }, this.playlistItems[targetIndex].trackId);\n return this.setCurrent(this.playlistItems[targetIndex]);\n }\n return Promise.reject();\n }\n setPlaybackRate(options) {\n if (this.audio) {\n this.audio.playbackRate = options.rate;\n return Promise.resolve();\n }\n return Promise.reject();\n }\n async setMediaSessionRemoteControlMetadata() {\n const audioTrack = this.currentTrack;\n if (!navigator.mediaSession) {\n console.warn('Media Session API not available');\n return Promise.reject();\n }\n navigator.mediaSession.metadata = new MediaMetadata({\n title: audioTrack.title,\n artist: audioTrack.artist,\n album: audioTrack.album,\n artwork: [\n { src: audioTrack.albumArt, sizes: '96x96', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '128x128', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '192x192', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '256x256', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '384x384', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '512x512', type: 'image/jpeg' },\n ]\n });\n navigator.mediaSession.setActionHandler('play', (details) => { this.mediaSessionControlsHandler(details); });\n navigator.mediaSession.setActionHandler('pause', (details) => { this.mediaSessionControlsHandler(details); });\n navigator.mediaSession.setActionHandler('nexttrack', (details) => { this.mediaSessionControlsHandler(details); });\n navigator.mediaSession.setActionHandler('previoustrack', (details) => { this.mediaSessionControlsHandler(details); });\n return Promise.resolve();\n }\n async mediaSessionControlsHandler(actionDetails) {\n switch (actionDetails.action) {\n case 'play':\n this.play();\n break;\n case 'pause':\n this.pause();\n break;\n case 'nexttrack':\n this.skipForward();\n break;\n case 'previoustrack':\n this.skipBack();\n break;\n }\n return Promise.resolve();\n }\n // register events\n /*\n private registerHlsListeners(hls: Hls, position?: number) {\n hls.on(Hls.Events.MANIFEST_PARSED, async () => {\n this.notifyListeners('status', {\n action: \"status\",\n status: {\n msgType: RmxAudioStatusMessage.RMXSTATUS_CANPLAY,\n trackId: this.getCurrentTrackId(),\n value: this.getCurrentTrackStatus('loading'),\n }\n })\n if(position) {\n await this.seekTo({position});\n }\n });\n }*/\n registerHtmlListeners(position) {\n const canPlayListener = async () => {\n var _a;\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_CANPLAY, this.getCurrentTrackStatus('paused'));\n if (position) {\n await this.seekTo({ position });\n }\n (_a = this.audio) === null || _a === void 0 ? void 0 : _a.removeEventListener('canplay', canPlayListener);\n };\n if (this.audio) {\n this.audio.addEventListener('loadstart', () => { this.setMediaSessionRemoteControlMetadata(); });\n this.audio.addEventListener('canplay', canPlayListener);\n this.audio.addEventListener('playing', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PLAYING, this.getCurrentTrackStatus('playing'));\n });\n this.audio.addEventListener('pause', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PAUSE, this.getCurrentTrackStatus('paused'));\n });\n this.audio.addEventListener('error', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_ERROR, this.getCurrentTrackStatus('error'));\n });\n this.audio.addEventListener('ended', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_COMPLETED, this.getCurrentTrackStatus('stopped'));\n const currentTrackIndex = this.playlistItems.findIndex(i => i.trackId === this.getCurrentTrackId());\n if (currentTrackIndex === this.playlistItems.length - 1) {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PLAYLIST_COMPLETED, this.getCurrentTrackStatus('stopped'));\n }\n else {\n this.setCurrent(this.playlistItems[currentTrackIndex + 1], undefined, true);\n }\n });\n let lastTrackId, lastPosition;\n this.audio.addEventListener('timeupdate', () => {\n const status = this.getCurrentTrackStatus(this.lastState);\n if (lastTrackId !== this.getCurrentTrackId() || lastPosition !== status.currentPosition) {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION, status);\n lastTrackId = this.getCurrentTrackId();\n lastPosition = status.currentPosition;\n }\n });\n this.audio.addEventListener('durationchange', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_DURATION, this.getCurrentTrackStatus(this.lastState));\n });\n this.audio.addEventListener('seeking', () => {\n const status = this.getCurrentTrackStatus(this.lastState);\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_SEEK, status);\n });\n }\n }\n getCurrentTrackId() {\n if (this.currentTrack) {\n return this.currentTrack.trackId;\n }\n return 'INVALID';\n }\n getCurrentIndex() {\n if (this.currentTrack) {\n for (let i = 0; i < this.playlistItems.length; i++) {\n if (this.playlistItems[i].trackId === this.currentTrack.trackId) {\n return i;\n }\n }\n }\n return -1;\n }\n getCurrentTrackStatus(currentState) {\n var _a, _b, _c;\n this.lastState = currentState;\n return {\n trackId: this.getCurrentTrackId(),\n isStream: !!((_a = this.currentTrack) === null || _a === void 0 ? void 0 : _a.isStream),\n currentIndex: this.getCurrentIndex(),\n status: currentState,\n currentPosition: ((_b = this.audio) === null || _b === void 0 ? void 0 : _b.currentTime) || 0,\n duration: ((_c = this.audio) === null || _c === void 0 ? void 0 : _c.duration) || 0,\n };\n }\n async setCurrent(item, position, forceAutoplay = false) {\n let wasPlaying = false;\n if (this.audio) {\n wasPlaying = !this.audio.paused;\n await this.release();\n }\n await this.create();\n this.currentTrack = item;\n if (item.assetUrl.includes('.m3u8')) {\n await this.loadHlsJs();\n const hls = new Hls({\n autoStartLoad: true,\n debug: false,\n enableWorker: true,\n });\n hls.attachMedia(this.audio);\n hls.on(Hls.Events.MEDIA_ATTACHED, () => {\n hls.loadSource(item.assetUrl);\n });\n //this.registerHlsListeners(hls, position);\n }\n else {\n this.audio.src = item.assetUrl;\n }\n await this.registerHtmlListeners(position);\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_TRACK_CHANGED, {\n currentItem: item\n });\n if (wasPlaying || forceAutoplay) {\n //this.play();\n this.audio.addEventListener('canplay', () => {\n this.play();\n });\n }\n }\n updateStatus(msgType, value, trackId) {\n this.notifyListeners('status', {\n action: 'status',\n status: {\n msgType: msgType,\n trackId: trackId ? trackId : this.getCurrentTrackId(),\n value: value\n }\n });\n }\n loadHlsJs() {\n if (window.Hls !== undefined || this.hlsLoaded) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n console.log(\"LOADING HLS FROM CDN\");\n const script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = 'https://cdn.jsdelivr.net/npm/hls.js@1.1.1';\n document.getElementsByTagName('head')[0].appendChild(script);\n script.onload = () => {\n this.hlsLoaded = true;\n resolve(void 0);\n };\n script.onerror = () => {\n reject();\n };\n });\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["RmxAudioErrorType","RmxAudioStatusMessage","registerPlugin","WebPlugin"],"mappings":";;;IAAA;IACA;IACA;AACWA;IACX,CAAC,UAAU,iBAAiB,EAAE;IAC9B,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAoB;IACzF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB;IACjF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB;IACjF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe;IAC/E,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,GAAG,uBAAuB;IAC/F,CAAC,EAAEA,yBAAiB,KAAKA,yBAAiB,GAAG,EAAE,CAAC,CAAC;IAEjD;IACA;IACA;AACY,UAAC,6BAA6B,GAAG;IAC7C,IAAI,mBAAmB;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,kBAAkB;IACtB,IAAI,sBAAsB;IAC1B;IACA;IACA;IACA;IACA;AACWC;IACX,CAAC,UAAU,qBAAqB,EAAE;IAClC;IACA;I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Ae,CAAC,QAAQ,EAAE;IACvC,YAAY,MAAM,EAAE,QAAQ;IAC5B,YAAY,MAAM,EAAE;IACpB,gBAAgB,OAAO,EAAE,OAAO;IAChC,gBAAgB,OAAO,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC,iBAAiB,EAAE;IACrE,gBAAgB,KAAK,EAAE;IACvB;IACA,SAAS,CAAC;IACV,IAAI;IACJ,IAAI,SAAS,GAAG;IAChB,QAAQ,IAAI,MAAM,CAAC,GAAG,KAAK,SAAS,IAAI,IAAI,CAAC,SAAS,EAAE;IACxD,YAAY,OAAO,OAAO,CAAC,OAAO,EAAE;IACpC,QAAQ;IACR,QAAQ,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAK;IAChD,YAAY,OAAO,CAAC,GAAG,CAAC,sBAAsB,CAAC;IAC/C,YAAY,MAAM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;IAC3D,YAAY,MAAM,CAAC,IAAI,GAAG,iBAAiB;IAC3C,YAAY,MAAM,CAAC,GAAG,GAAG,2CAA2C;IACpE,YAAY,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC;IACxE,YAAY,MAAM,CAAC,MAAM,GAAG,MAAM;IAClC,gBAAgB,IAAI,CAAC,SAAS,GAAG,IAAI;IACrC,gBAAgB,OAAO,CAAC,MAAM,CAAC;IAC/B,YAAY,CAAC;IACb,YAAY,MAAM,CAAC,OAAO,GAAG,MAAM;IACnC,gBAAgB,MAAM,EAAE;IACxB,YAAY,CAAC;IACb,QAAQ,CAAC,CAAC;IACV,IAAI;IACJ;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"plugin.js","sources":["esm/Constants.js","esm/plugin.js","esm/utils.js","esm/RmxAudioPlayer.js","esm/web.js"],"sourcesContent":["/**\n * Enum describing the possible errors that may come from the plugins\n */\nexport var RmxAudioErrorType;\n(function (RmxAudioErrorType) {\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_NONE_ACTIVE\"] = 0] = \"RMXERR_NONE_ACTIVE\";\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_ABORTED\"] = 1] = \"RMXERR_ABORTED\";\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_NETWORK\"] = 2] = \"RMXERR_NETWORK\";\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_DECODE\"] = 3] = \"RMXERR_DECODE\";\n RmxAudioErrorType[RmxAudioErrorType[\"RMXERR_NONE_SUPPORTED\"] = 4] = \"RMXERR_NONE_SUPPORTED\";\n})(RmxAudioErrorType || (RmxAudioErrorType = {}));\n;\n/**\n * String descriptions corresponding to the RmxAudioErrorType values\n */\nexport const RmxAudioErrorTypeDescriptions = [\n 'No Active Sources',\n 'Aborted',\n 'Network',\n 'Failed to Decode',\n 'No Supported Sources',\n];\n/**\n * Enumeration of all status messages raised by the plugin.\n * NONE, REGISTER and INIT are structural and probably not useful to you.\n */\nexport var RmxAudioStatusMessage;\n(function (RmxAudioStatusMessage) {\n /**\n * The starting state of the plugin. You will never see this value;\n * it changes before the callbacks are even registered to report changes to this value.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_NONE\"] = 0] = \"RMXSTATUS_NONE\";\n /**\n * Raised when the plugin registers the callback handler for onStatus callbacks.\n * You will probably not be able to see this (nor do you need to).\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_REGISTER\"] = 1] = \"RMXSTATUS_REGISTER\";\n /**\n * Reserved for future use\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_INIT\"] = 2] = \"RMXSTATUS_INIT\";\n /**\n * Indicates an error is reported in the 'value' field.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_ERROR\"] = 5] = \"RMXSTATUS_ERROR\";\n /**\n * The reported track is being loaded by the player\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_LOADING\"] = 10] = \"RMXSTATUS_LOADING\";\n /**\n * The reported track is able to begin playback\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_CANPLAY\"] = 11] = \"RMXSTATUS_CANPLAY\";\n /**\n * The reported track has loaded 100% of the file (either from disc or network)\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_LOADED\"] = 15] = \"RMXSTATUS_LOADED\";\n /**\n * (iOS only): Playback has stalled due to insufficient network\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_STALLED\"] = 20] = \"RMXSTATUS_STALLED\";\n /**\n * Reports an update in the reported track's buffering status\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_BUFFERING\"] = 25] = \"RMXSTATUS_BUFFERING\";\n /**\n * The reported track has started (or resumed) playing\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PLAYING\"] = 30] = \"RMXSTATUS_PLAYING\";\n /**\n * The reported track has been paused, either by the user or by the system.\n * (iOS only): This value is raised when MP3's are malformed (but still playable).\n * These require the user to explicitly press play again. This can be worked\n * around and is on the TODO list.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PAUSE\"] = 35] = \"RMXSTATUS_PAUSE\";\n /**\n * Reports a change in the reported track's playback position.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PLAYBACK_POSITION\"] = 40] = \"RMXSTATUS_PLAYBACK_POSITION\";\n /**\n * The reported track has seeked.\n * On Android, only the plugin consumer can generate this (Notification controls on Android do not include a seek bar).\n * On iOS, the Command Center includes a seek bar so this will be reported when the user has seeked via Command Center.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_SEEK\"] = 45] = \"RMXSTATUS_SEEK\";\n /**\n * The reported track has completed playback.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_COMPLETED\"] = 50] = \"RMXSTATUS_COMPLETED\";\n /**\n * The reported track's duration has changed. This is raised once, when duration is updated for the first time.\n * For streams, this value is never reported.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_DURATION\"] = 55] = \"RMXSTATUS_DURATION\";\n /**\n * All playback has stopped, probably because the plugin is shutting down.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_STOPPED\"] = 60] = \"RMXSTATUS_STOPPED\";\n /**\n * The playlist has skipped forward to the next track.\n * On both Android and iOS, this will be raised if the notification controls/Command Center were used to skip.\n * It is unlikely you need to consume this event: RMXSTATUS_TRACK_CHANGED is also reported when this occurs,\n * so you can generalize your track change handling in one place.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMX_STATUS_SKIP_FORWARD\"] = 90] = \"RMX_STATUS_SKIP_FORWARD\";\n /**\n * The playlist has skipped back to the previous track.\n * On both Android and iOS, this will be raised if the notification controls/Command Center were used to skip.\n * It is unlikely you need to consume this event: RMXSTATUS_TRACK_CHANGED is also reported when this occurs,\n * so you can generalize your track change handling in one place.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMX_STATUS_SKIP_BACK\"] = 95] = \"RMX_STATUS_SKIP_BACK\";\n /**\n * Reported when the current track has changed in the native player. This event contains full data about\n * the new track, including the index and the actual track itself. The type of the 'value' field in this case\n * is OnStatusTrackChangedData.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_TRACK_CHANGED\"] = 100] = \"RMXSTATUS_TRACK_CHANGED\";\n /**\n * The entire playlist has completed playback.\n * After this event has been raised, the current item is set to null and the current index to -1.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PLAYLIST_COMPLETED\"] = 105] = \"RMXSTATUS_PLAYLIST_COMPLETED\";\n /**\n * An item has been added to the playlist. For the setPlaylistItems and addAllItems methods, this status is\n * raised once for every track in the collection.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_ITEM_ADDED\"] = 110] = \"RMXSTATUS_ITEM_ADDED\";\n /**\n * An item has been removed from the playlist. For the removeItems and clearAllItems methods, this status is\n * raised once for every track that was removed.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_ITEM_REMOVED\"] = 115] = \"RMXSTATUS_ITEM_REMOVED\";\n /**\n * All items have been removed from the playlist\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_PLAYLIST_CLEARED\"] = 120] = \"RMXSTATUS_PLAYLIST_CLEARED\";\n /**\n * Just for testing.. you don't need this and in fact can never receive it, the plugin is destroyed before it can be raised.\n */\n RmxAudioStatusMessage[RmxAudioStatusMessage[\"RMXSTATUS_VIEWDISAPPEAR\"] = 200] = \"RMXSTATUS_VIEWDISAPPEAR\";\n})(RmxAudioStatusMessage || (RmxAudioStatusMessage = {}));\n;\n/**\n * String descriptions corresponding to the RmxAudioStatusMessage values\n */\nexport const RmxAudioStatusMessageDescriptions = {\n 0: 'No Status',\n 1: 'Plugin Registered',\n 2: 'Plugin Initialized',\n 5: 'Error',\n 10: 'Loading',\n 11: 'CanPlay',\n 15: 'Loaded',\n 20: 'Stalled',\n 25: 'Buffering',\n 30: 'Playing',\n 35: 'Paused',\n 40: 'Playback Position Changed',\n 45: 'Seeked',\n 50: 'Playback Completed',\n 55: 'Duration Changed',\n 60: 'Stopped',\n 90: 'Skip Forward',\n 95: 'Skip Backward',\n 100: 'Track Changed',\n 105: 'Playlist Completed',\n 110: 'Track Added',\n 115: 'Track Removed',\n 120: 'Playlist Cleared',\n 200: 'DEBUG_View_Disappeared',\n};\n//# sourceMappingURL=Constants.js.map","import { registerPlugin } from '@capacitor/core';\n// todo: find out why we get imported twice\nlet playListWebInstance;\nconst Playlist = registerPlugin('Playlist', {\n web: () => import('./web').then(m => {\n if (!playListWebInstance) {\n playListWebInstance = new m.PlaylistWeb();\n }\n return playListWebInstance;\n }),\n});\nexport { Playlist };\n//# sourceMappingURL=plugin.js.map","/**\n * Validates the list of AudioTrack items to ensure they are valid.\n * Used internally but you can call this if you need to :)\n *\n * @param items The AudioTrack items to validate\n */\nexport const validateTracks = (items) => {\n if (!items || !Array.isArray(items)) {\n return [];\n }\n return items.map(validateTrack).filter(x => !!x); // may produce an empty array!\n};\n/**\n * Validate a single track and ensure it is valid for playback.\n * Used internally but you can call this if you need to :)\n *\n * @param track The AudioTrack to validate\n */\nexport const validateTrack = (track) => {\n if (!track) {\n return null;\n }\n // For now we will rely on TS to do the heavy lifting, but we can add a validation here\n // that all the required fields are valid. For now we just take care of the unique ID.\n track.trackId = track.trackId || generateUUID();\n return track;\n};\n/**\n * Generate a v4 UUID for use as a unique trackId. Used internally, but you can use this to generate track ID's if you want.\n */\nconst generateUUID = () => {\n var d = new Date().getTime();\n if (typeof performance !== 'undefined' && typeof performance.now === 'function') {\n d += performance.now(); //use high-precision timer if available\n }\n // There are better ways to do this in ES6, we are intentionally avoiding the import\n // of an ES6 polyfill here.\n const template = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx';\n return [].slice.call(template).map(function (c) {\n if (c === '-' || c === '4') {\n return c;\n }\n var r = (d + Math.random() * 16) % 16 | 0;\n d = Math.floor(d / 16);\n return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);\n }).join('');\n};\n//# sourceMappingURL=utils.js.map","import { RmxAudioStatusMessage, RmxAudioStatusMessageDescriptions } from './Constants';\nimport { Playlist } from './plugin';\nimport { validateTrack, validateTracks } from './utils';\n/*!\n * Module dependencies.\n */\nconst itemStatusChangeTypes = [\n RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION,\n RmxAudioStatusMessage.RMXSTATUS_DURATION,\n RmxAudioStatusMessage.RMXSTATUS_BUFFERING,\n RmxAudioStatusMessage.RMXSTATUS_CANPLAY,\n RmxAudioStatusMessage.RMXSTATUS_LOADING,\n RmxAudioStatusMessage.RMXSTATUS_LOADED,\n RmxAudioStatusMessage.RMXSTATUS_PAUSE,\n RmxAudioStatusMessage.RMXSTATUS_COMPLETED,\n RmxAudioStatusMessage.RMXSTATUS_ERROR,\n];\nexport class RmxAudioPlayer {\n /**\n * The current summarized state of the player, as a string. It is preferred that you use the 'isX' accessors,\n * because they properly interpret the range of these values, but this field is exposed if you wish to observe\n * or interrogate it.\n */\n get currentState() {\n return this._currentState;\n }\n get currentTrack() {\n return this._currentItem;\n }\n get currentPosition() {\n const duration = this._currentDuration || 0;\n if (this._currentState !== 'playing') {\n return duration ? Math.min(this._currentPosition, duration) : this._currentPosition;\n }\n const elapsed = Math.max(0, (performance.now() - this._currentPositionUpdatedAt) / 1000);\n const nextPosition = this._currentPosition + elapsed * this._playbackRate;\n return duration ? Math.min(nextPosition, duration) : nextPosition;\n }\n get currentDuration() {\n return this._currentDuration;\n }\n /**\n * If the playlist is currently playling a track.\n */\n get isPlaying() {\n return this._currentState === 'playing';\n }\n /**\n * True if the playlist is currently paused\n */\n get isPaused() {\n return this._currentState === 'paused' || this._currentState === 'stopped';\n }\n /**\n * True if the plugin is currently loading its *current* track.\n * On iOS, many tracks are loaded in parallel, so this only reports for the *current item*, e.g.\n * the item that will begin playback if you press pause.\n * If you need track-specific data, it is better to watch the onStatus stream and watch for RMXSTATUS_LOADING,\n * which will be raised independently & simultaneously for every track in the playlist.\n * On Android, tracks are only loaded as they begin playback, so this value and RMXSTATUS_LOADING should always\n * apply to the same track.\n */\n get isLoading() {\n return this._currentState === 'loading';\n }\n /**\n * True if the *currently playing track* has been loaded and can be played (this includes if it is *currently playing*).\n */\n get hasLoaded() {\n return this._hasLoaded;\n }\n /**\n * True if the *current track* has reported an error. In almost all cases,\n * the playlist will automatically skip forward to the next track, in which case you will also receive\n * an RMXSTATUS_TRACK_CHANGED event.\n */\n get hasError() {\n return this._hasError;\n }\n /**\n * Creates a new RmxAudioPlayer instance.\n */\n constructor() {\n this.handlers = {};\n this.options = { verbose: false, resetStreamOnPause: true };\n this._readyResolve = () => {\n };\n this._readyReject = () => {\n };\n this._currentState = 'unknown';\n this._hasError = false;\n this._hasLoaded = false;\n this._currentItem = null;\n this._currentPosition = 0;\n this._currentDuration = 0;\n this._currentPositionUpdatedAt = performance.now();\n this._playbackRate = 1;\n /**\n * Player interface\n */\n /**\n * Returns a promise that resolves when the plugin is ready.\n */\n this.ready = () => {\n return this._initPromise;\n };\n this.initialize = async () => {\n Playlist.addListener('status', (data) => {\n if (data.action === 'status') {\n this.onStatus(data.status.trackId, data.status.msgType, data.status.value);\n }\n else {\n console.warn('Unknown audio player onStatus message:', data);\n }\n });\n try {\n await Playlist.initialize();\n this._readyResolve();\n }\n catch (args) {\n const message = 'Capacitor RMXAUDIOPLAYER: Error initializing:';\n console.warn(message, args);\n this._readyReject();\n }\n };\n /**\n * Sets the player options. This can be called at any time and is not required before playback can be initiated.\n */\n this.setOptions = (options) => {\n this.options = Object.assign(Object.assign({}, this.options), options);\n return Playlist.setOptions(this.options);\n };\n /**\n * Playlist item management\n */\n /**\n * Sets the entire list of tracks to be played by the playlist.\n * This will clear all previous items from the playlist.\n * If you pass options.retainPosition = true, the current playback position will be\n * recorded and used when playback restarts. This can be used, for example, to set the\n * playlist to a new set of tracks, but retain the currently-playing item to avoid skipping.\n */\n this.setPlaylistItems = (items, options) => {\n return Playlist.setPlaylistItems({ items: validateTracks(items), options: options || {} });\n };\n /**\n * Add a single track to the end of the playlist\n */\n this.addItem = (trackItem) => {\n const validTrackItem = validateTrack(trackItem);\n if (!validTrackItem) {\n throw new Error('Provided track is null or not an audio track');\n }\n return Playlist.addItem({ item: validTrackItem });\n };\n /**\n * Adds the list of tracks to the end of the playlist.\n */\n this.addAllItems = (items) => {\n return Playlist.addAllItems({ items: validateTracks(items) });\n };\n /**\n * Removes a track from the playlist. If this is the currently playing item, the next item will automatically begin playback.\n */\n this.removeItem = (removeItem) => {\n if (!removeItem) {\n throw new Error('Track removal spec is empty');\n }\n if (!removeItem.trackId && removeItem.trackIndex === undefined) {\n throw new Error('Track removal spec is invalid');\n }\n return Playlist.removeItem({\n id: removeItem.trackId,\n index: removeItem.trackIndex\n });\n };\n /**\n * Removes all given tracks from the playlist; these can be specified either by trackId or trackIndex. If the removed items\n * include the currently playing item, the next available item will automatically begin playing.\n */\n this.removeItems = (items) => {\n return Playlist.removeItems({\n items: (items || []).map((item) => ({\n id: item === null || item === void 0 ? void 0 : item.trackId,\n index: item === null || item === void 0 ? void 0 : item.trackIndex\n }))\n });\n };\n /**\n * Clear the entire playlist. This will result in the STOPPED event being raised.\n */\n this.clearAllItems = () => {\n return Playlist.clearAllItems();\n };\n /**\n * Playback management\n */\n /**\n * Begin playback. If no tracks have been added, this has no effect.\n */\n this.play = () => {\n return Playlist.play();\n };\n /**\n * Play the track at the given index. If the track does not exist, this has no effect.\n */\n this.playTrackByIndex = (index, position) => {\n if (position !== undefined) {\n this._currentPosition = position || 0;\n this._currentPositionUpdatedAt = performance.now();\n }\n return Playlist.playTrackByIndex({ index, position: position || 0 });\n };\n /**\n * Play the track matching the given trackId. If the track does not exist, this has no effect.\n */\n this.playTrackById = (id, position) => {\n if (position !== undefined) {\n this._currentPosition = position || 0;\n this._currentPositionUpdatedAt = performance.now();\n }\n return Playlist.playTrackById({ id, position: position || 0 });\n };\n /**\n * Play the track matching the given trackId. If the track does not exist, this has no effect.\n */\n this.selectTrackByIndex = (index, position) => {\n if (position !== undefined) {\n this._currentPosition = position || 0;\n this._currentPositionUpdatedAt = performance.now();\n }\n return Playlist.selectTrackByIndex({ index, position: position || 0 });\n };\n /**\n * Play the track matching the given trackId. If the track does not exist, this has no effect.\n */\n this.selectTrackById = (id, position) => {\n if (position !== undefined) {\n this._currentPosition = position || 0;\n this._currentPositionUpdatedAt = performance.now();\n }\n return Playlist.selectTrackById({ id, position: position || 0 });\n };\n /**\n * Pause playback\n */\n this.pause = () => {\n return Playlist.pause();\n };\n /**\n * Skip to the next track. If you are already at the end, and loop is false, this has no effect.\n * If you are at the end, and loop is true, playback will begin at the beginning of the playlist.\n */\n this.skipForward = () => {\n return Playlist.skipForward();\n };\n /**\n * Skip to the previous track. If you are already at the beginning, this has no effect.\n */\n this.skipBack = () => {\n return Playlist.skipBack();\n };\n /**\n * Seek to the given position in the currently playing track. If the value exceeds the track length,\n * the track will complete and playback of the next track will begin.\n */\n this.seekTo = (position) => {\n this._currentPosition = position;\n this._currentPositionUpdatedAt = performance.now();\n return Playlist.seekTo({ position });\n };\n /**\n * Set the playback speed; a float value between [-1, 1] inclusive. If set to 0, this pauses playback.\n */\n this.setPlaybackRate = (rate) => {\n this._playbackRate = rate || 1;\n this._currentPosition = this.currentPosition;\n this._currentPositionUpdatedAt = performance.now();\n return Playlist.setPlaybackRate({ rate });\n };\n /**\n * Set the playback volume. Float value between [0, 1] inclusive.\n * On both Android and iOS, this sets the volume of the media stream, which can be externally\n * controlled by setting the overall hardware volume.\n */\n this.setVolume = (volume) => {\n return Playlist.setPlaybackVolume({ volume });\n };\n /**\n * Sets a flag indicating whether the playlist should loop back to the beginning once it reaches the end.\n */\n this.setLoop = (loop) => {\n return Playlist.setLoop({ loop: loop });\n };\n this.handlers = {};\n new Promise((resolve) => {\n window.addEventListener('beforeunload', () => resolve(), { once: true });\n }).then(() => Playlist.release());\n this._initPromise = new Promise((resolve, reject) => {\n this._readyResolve = resolve;\n this._readyReject = reject;\n });\n }\n /**\n * Status event handling\n */\n /**\n * @internal\n * Call this function to emit an onStatus event via the on('status') handler.\n * Internal use only, to raise events received from the native interface.\n */\n onStatus(trackId, type, value) {\n var _a, _b, _c, _d;\n const status = { msgType: type, trackId: trackId, value: value };\n if (this.options.verbose) {\n console.debug(`RmxAudioPlayer.onStatus: ${RmxAudioStatusMessageDescriptions[type]}(${type}) [${trackId}]: `, value);\n }\n if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_TRACK_CHANGED) {\n this._hasError = false;\n this._hasLoaded = false;\n this._currentState = 'loading';\n this._currentPosition = 0;\n this._currentDuration = 0;\n this._currentPositionUpdatedAt = performance.now();\n this._currentItem = (_a = status.value) === null || _a === void 0 ? void 0 : _a.currentItem;\n }\n // The plugin's status changes only in response to specific events.\n if (itemStatusChangeTypes.indexOf(status.msgType) >= 0) {\n // Only change the plugin's *current status* if the event being raised is for the current active track.\n if (this._currentItem && this._currentItem.trackId === trackId) {\n if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION && status.value && status.value.currentPosition !== undefined) {\n this._currentPosition = status.value.currentPosition;\n this._currentPositionUpdatedAt = performance.now();\n }\n if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_DURATION && status.value && status.value.duration !== undefined) {\n this._currentDuration = status.value.duration;\n }\n if (status.value && status.value.status) {\n this._currentState = status.value.status;\n }\n if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_PLAYING ||\n status.msgType === RmxAudioStatusMessage.RMXSTATUS_PAUSE ||\n status.msgType === RmxAudioStatusMessage.RMXSTATUS_SEEK ||\n status.msgType === RmxAudioStatusMessage.RMXSTATUS_COMPLETED) {\n const currentPosition = (_c = (_b = status.value) === null || _b === void 0 ? void 0 : _b.currentPosition) !== null && _c !== void 0 ? _c : (_d = status.value) === null || _d === void 0 ? void 0 : _d.position;\n if (currentPosition !== undefined) {\n this._currentPosition = currentPosition;\n this._currentPositionUpdatedAt = performance.now();\n }\n }\n if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_CANPLAY) {\n this._hasLoaded = true;\n }\n if (status.msgType === RmxAudioStatusMessage.RMXSTATUS_ERROR) {\n this._hasError = true;\n }\n }\n }\n this.emit('status', status);\n }\n on(eventName, callback) {\n if (!Object.prototype.hasOwnProperty.call(this.handlers, eventName)) {\n this.handlers[eventName] = [];\n }\n this.handlers[eventName].push(callback);\n }\n /**\n * Remove an event handler from the plugin\n * @param eventName The name of the event whose subscription is to be removed\n * @param handle The event handler to destroy. Ensure that this is the SAME INSTANCE as the handler\n * that was passed in to create the subscription!\n */\n off(eventName, handle) {\n if (Object.prototype.hasOwnProperty.call(this.handlers, eventName)) {\n const handleIndex = this.handlers[eventName].indexOf(handle);\n if (handleIndex >= 0) {\n this.handlers[eventName].splice(handleIndex, 1);\n }\n }\n }\n /**\n * @internal\n * Raises an event via the corresponding event handler. Internal use only.\n * @param args Event args to pass through to the handler.\n */\n emit(...args) {\n const eventName = args.shift();\n if (!Object.prototype.hasOwnProperty.call(this.handlers, eventName)) {\n return false;\n }\n const handler = this.handlers[eventName];\n for (let i = 0; i < handler.length; i++) {\n const callback = this.handlers[eventName][i];\n if (typeof callback === 'function') {\n callback(...args);\n }\n }\n return true;\n }\n}\n//# sourceMappingURL=RmxAudioPlayer.js.map","import { WebPlugin } from '@capacitor/core';\nimport { RmxAudioStatusMessage } from './Constants';\nimport { validateTrack, validateTracks } from './utils';\nexport class PlaylistWeb extends WebPlugin {\n constructor() {\n super(...arguments);\n this.playlistItems = [];\n this.loop = false;\n this.options = {};\n this.currentTrack = null;\n this.lastState = 'stopped';\n this.hlsLoaded = false;\n }\n addAllItems(options) {\n this.playlistItems = this.playlistItems.concat(validateTracks(options.items));\n return Promise.resolve();\n }\n addItem(options) {\n const track = validateTrack(options.item);\n if (track) {\n this.playlistItems.push(track);\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_ITEM_ADDED, track, track.trackId);\n }\n return Promise.resolve();\n }\n async clearAllItems() {\n await this.release();\n this.playlistItems = [];\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PLAYLIST_CLEARED, null, \"INVALID\");\n return Promise.resolve();\n }\n async getPlaylist() {\n return Promise.resolve({ items: this.playlistItems });\n }\n async initialize() {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_INIT, null, \"INVALID\");\n return Promise.resolve();\n }\n async pause() {\n var _a;\n (_a = this.audio) === null || _a === void 0 ? void 0 : _a.pause();\n }\n async play() {\n var _a;\n await ((_a = this.audio) === null || _a === void 0 ? void 0 : _a.play());\n }\n async playTrackById(options) {\n for (let track of this.playlistItems) {\n if (track.trackId === options.id) {\n if (track !== this.currentTrack) {\n await this.setCurrent(track);\n if (this.audio && (options === null || options === void 0 ? void 0 : options.position) && options.position > 0) {\n this.audio.currentTime = options.position;\n }\n }\n return this.play();\n }\n }\n return Promise.reject();\n }\n async playTrackByIndex(options) {\n for (let { index, item } of this.playlistItems.map((item, index) => ({ index, item }))) {\n if (index === options.index) {\n if (item !== this.currentTrack) {\n await this.setCurrent(item);\n if (this.audio && (options === null || options === void 0 ? void 0 : options.position) && options.position > 0) {\n this.audio.currentTime = options.position;\n }\n }\n return this.play();\n }\n }\n return Promise.reject();\n }\n async release() {\n await this.pause();\n this.audio = undefined;\n return Promise.resolve();\n }\n async create() {\n this.audio = document.createElement('audio');\n this.audio.crossOrigin = 'anonymous';\n this.audio.preload = 'metadata';\n this.audio.controls = true;\n this.audio.autoplay = false;\n return Promise.resolve();\n }\n removeItem(options) {\n // options.index can be 0; don't use a truthy check.\n let removeIndex = -1;\n if (options.index !== undefined && options.index !== null) {\n removeIndex = options.index;\n }\n else if (options.id) {\n removeIndex = this.playlistItems.findIndex((t) => t.trackId === options.id);\n }\n if (removeIndex >= 0 && removeIndex < this.playlistItems.length) {\n const removedTrack = this.playlistItems.splice(removeIndex, 1)[0];\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_ITEM_REMOVED, removedTrack, removedTrack === null || removedTrack === void 0 ? void 0 : removedTrack.trackId);\n }\n return Promise.resolve();\n }\n removeItems(options) {\n options.items.forEach(async (item) => {\n await this.removeItem(item);\n });\n return Promise.resolve();\n }\n seekTo(options) {\n if (this.audio) {\n this.audio.currentTime = options.position;\n return Promise.resolve();\n }\n return Promise.reject();\n }\n selectTrackById(options) {\n for (const item of this.playlistItems) {\n if (item.trackId === options.id) {\n return this.setCurrent(item);\n }\n }\n return Promise.reject();\n }\n selectTrackByIndex(options) {\n let index = 0;\n for (const item of this.playlistItems) {\n if (index === options.index) {\n return this.setCurrent(item);\n }\n index++;\n }\n return Promise.reject();\n }\n setLoop(options) {\n this.loop = options.loop;\n return Promise.resolve();\n }\n setOptions(options) {\n this.options = options || {};\n return Promise.resolve();\n }\n setPlaybackVolume(options) {\n if (this.audio) {\n this.audio.volume = options.volume;\n return Promise.resolve();\n }\n return Promise.reject();\n }\n async setPlaylistItems(options) {\n var _a, _b, _c;\n this.playlistItems = options.items;\n if (this.playlistItems.length > 0) {\n let currentItem = this.playlistItems.filter(i => { var _a; return i.trackId === ((_a = options.options) === null || _a === void 0 ? void 0 : _a.playFromId); })[0];\n if (!currentItem) {\n currentItem = this.playlistItems[0];\n }\n await this.setCurrent(currentItem, (_b = (_a = options.options) === null || _a === void 0 ? void 0 : _a.playFromPosition) !== null && _b !== void 0 ? _b : 0);\n if (!((_c = options.options) === null || _c === void 0 ? void 0 : _c.startPaused)) {\n await this.play();\n }\n }\n return Promise.resolve();\n }\n async skipForward() {\n let found = null;\n this.playlistItems.forEach((item, index) => {\n if (found === null && this.getCurrentTrackId() === item.trackId) {\n found = index;\n }\n });\n if (found === this.playlistItems.length - 1) {\n found = -1;\n }\n if (found !== null) {\n const targetIndex = found + 1;\n this.updateStatus(RmxAudioStatusMessage.RMX_STATUS_SKIP_FORWARD, {\n currentIndex: targetIndex,\n currentItem: this.playlistItems[targetIndex]\n }, this.playlistItems[targetIndex].trackId);\n return this.setCurrent(this.playlistItems[targetIndex]);\n }\n return Promise.reject();\n }\n async skipBack() {\n let found = null;\n this.playlistItems.forEach((item, index) => {\n if (found === null && this.getCurrentTrackId() === item.trackId) {\n found = index;\n }\n });\n if (found !== null) {\n const targetIndex = found === 0 ? this.playlistItems.length - 1 : found - 1;\n this.updateStatus(RmxAudioStatusMessage.RMX_STATUS_SKIP_BACK, {\n currentIndex: targetIndex,\n currentItem: this.playlistItems[targetIndex]\n }, this.playlistItems[targetIndex].trackId);\n return this.setCurrent(this.playlistItems[targetIndex]);\n }\n return Promise.reject();\n }\n setPlaybackRate(options) {\n if (this.audio) {\n this.audio.playbackRate = options.rate;\n return Promise.resolve();\n }\n return Promise.reject();\n }\n async setMediaSessionRemoteControlMetadata() {\n const audioTrack = this.currentTrack;\n if (!navigator.mediaSession) {\n console.warn('Media Session API not available');\n return Promise.reject();\n }\n navigator.mediaSession.metadata = new MediaMetadata({\n title: audioTrack.title,\n artist: audioTrack.artist,\n album: audioTrack.album,\n artwork: [\n { src: audioTrack.albumArt, sizes: '96x96', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '128x128', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '192x192', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '256x256', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '384x384', type: 'image/jpeg' },\n { src: audioTrack.albumArt, sizes: '512x512', type: 'image/jpeg' },\n ]\n });\n navigator.mediaSession.setActionHandler('play', (details) => { this.mediaSessionControlsHandler(details); });\n navigator.mediaSession.setActionHandler('pause', (details) => { this.mediaSessionControlsHandler(details); });\n navigator.mediaSession.setActionHandler('nexttrack', (details) => { this.mediaSessionControlsHandler(details); });\n navigator.mediaSession.setActionHandler('previoustrack', (details) => { this.mediaSessionControlsHandler(details); });\n return Promise.resolve();\n }\n async mediaSessionControlsHandler(actionDetails) {\n switch (actionDetails.action) {\n case 'play':\n this.play();\n break;\n case 'pause':\n this.pause();\n break;\n case 'nexttrack':\n this.skipForward();\n break;\n case 'previoustrack':\n this.skipBack();\n break;\n }\n return Promise.resolve();\n }\n // register events\n /*\n private registerHlsListeners(hls: Hls, position?: number) {\n hls.on(Hls.Events.MANIFEST_PARSED, async () => {\n this.notifyListeners('status', {\n action: \"status\",\n status: {\n msgType: RmxAudioStatusMessage.RMXSTATUS_CANPLAY,\n trackId: this.getCurrentTrackId(),\n value: this.getCurrentTrackStatus('loading'),\n }\n })\n if(position) {\n await this.seekTo({position});\n }\n });\n }*/\n registerHtmlListeners(position) {\n const canPlayListener = async () => {\n var _a;\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_CANPLAY, this.getCurrentTrackStatus('paused'));\n if (position) {\n await this.seekTo({ position });\n }\n (_a = this.audio) === null || _a === void 0 ? void 0 : _a.removeEventListener('canplay', canPlayListener);\n };\n if (this.audio) {\n this.audio.addEventListener('loadstart', () => { this.setMediaSessionRemoteControlMetadata(); });\n this.audio.addEventListener('canplay', canPlayListener);\n this.audio.addEventListener('playing', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PLAYING, this.getCurrentTrackStatus('playing'));\n });\n this.audio.addEventListener('pause', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PAUSE, this.getCurrentTrackStatus('paused'));\n });\n this.audio.addEventListener('error', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_ERROR, this.getCurrentTrackStatus('error'));\n });\n this.audio.addEventListener('ended', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_COMPLETED, this.getCurrentTrackStatus('stopped'));\n const currentTrackIndex = this.playlistItems.findIndex(i => i.trackId === this.getCurrentTrackId());\n if (currentTrackIndex === this.playlistItems.length - 1) {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PLAYLIST_COMPLETED, this.getCurrentTrackStatus('stopped'));\n }\n else {\n this.setCurrent(this.playlistItems[currentTrackIndex + 1], undefined, true);\n }\n });\n let lastTrackId, lastPosition;\n this.audio.addEventListener('timeupdate', () => {\n const status = this.getCurrentTrackStatus(this.lastState);\n if (lastTrackId !== this.getCurrentTrackId() || lastPosition !== status.currentPosition) {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION, status);\n lastTrackId = this.getCurrentTrackId();\n lastPosition = status.currentPosition;\n }\n });\n this.audio.addEventListener('durationchange', () => {\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_DURATION, this.getCurrentTrackStatus(this.lastState));\n });\n this.audio.addEventListener('seeking', () => {\n const status = this.getCurrentTrackStatus(this.lastState);\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_SEEK, status);\n });\n }\n }\n getCurrentTrackId() {\n if (this.currentTrack) {\n return this.currentTrack.trackId;\n }\n return 'INVALID';\n }\n getCurrentIndex() {\n if (this.currentTrack) {\n for (let i = 0; i < this.playlistItems.length; i++) {\n if (this.playlistItems[i].trackId === this.currentTrack.trackId) {\n return i;\n }\n }\n }\n return -1;\n }\n getCurrentTrackStatus(currentState) {\n var _a, _b, _c;\n this.lastState = currentState;\n return {\n trackId: this.getCurrentTrackId(),\n isStream: !!((_a = this.currentTrack) === null || _a === void 0 ? void 0 : _a.isStream),\n currentIndex: this.getCurrentIndex(),\n status: currentState,\n currentPosition: ((_b = this.audio) === null || _b === void 0 ? void 0 : _b.currentTime) || 0,\n duration: ((_c = this.audio) === null || _c === void 0 ? void 0 : _c.duration) || 0,\n };\n }\n async setCurrent(item, position, forceAutoplay = false) {\n let wasPlaying = false;\n if (this.audio) {\n wasPlaying = !this.audio.paused;\n await this.release();\n }\n await this.create();\n this.currentTrack = item;\n if (item.assetUrl.includes('.m3u8')) {\n await this.loadHlsJs();\n const hls = new Hls({\n autoStartLoad: true,\n debug: false,\n enableWorker: true,\n });\n hls.attachMedia(this.audio);\n hls.on(Hls.Events.MEDIA_ATTACHED, () => {\n hls.loadSource(item.assetUrl);\n });\n //this.registerHlsListeners(hls, position);\n }\n else {\n this.audio.src = item.assetUrl;\n }\n await this.registerHtmlListeners(position);\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_TRACK_CHANGED, {\n currentItem: item\n });\n if (wasPlaying || forceAutoplay) {\n //this.play();\n this.audio.addEventListener('canplay', () => {\n this.play();\n });\n }\n }\n updateStatus(msgType, value, trackId) {\n this.notifyListeners('status', {\n action: 'status',\n status: {\n msgType: msgType,\n trackId: trackId ? trackId : this.getCurrentTrackId(),\n value: value\n }\n });\n }\n loadHlsJs() {\n if (window.Hls !== undefined || this.hlsLoaded) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n console.log(\"LOADING HLS FROM CDN\");\n const script = document.createElement('script');\n script.type = 'text/javascript';\n script.src = 'https://cdn.jsdelivr.net/npm/hls.js@1.1.1';\n document.getElementsByTagName('head')[0].appendChild(script);\n script.onload = () => {\n this.hlsLoaded = true;\n resolve(void 0);\n };\n script.onerror = () => {\n reject();\n };\n });\n }\n}\n//# sourceMappingURL=web.js.map"],"names":["RmxAudioErrorType","RmxAudioStatusMessage","registerPlugin","WebPlugin"],"mappings":";;;IAAA;IACA;IACA;AACWA;IACX,CAAC,UAAU,iBAAiB,EAAE;IAC9B,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAoB;IACzF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB;IACjF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB;IACjF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe;IAC/E,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,GAAG,uBAAuB;IAC/F,CAAC,EAAEA,yBAAiB,KAAKA,yBAAiB,GAAG,EAAE,CAAC,CAAC;IAEjD;IACA;IACA;AACY,UAAC,6BAA6B,GAAG;IAC7C,IAAI,mBAAmB;IACvB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,IAAI,kBAAkB;IACtB,IAAI,sBAAsB;IAC1B;IACA;IACA;IACA;IACA;AACWC;IACX,CAAC,UAAU,qBAAqB,EAAE;IAClC;IACA;IACA;IACA;IACA,IAAI,qBAAqB,CAAC,qBAAqB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB;IACzF;IACA;IACA;IACA;IACA,IAAI,qBAAqB,CAAC,qBAAqB,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAoB;IACjG;IACA;IACA;IACA,IAAI,qBAAqB,CAAC,qBAAqB,CAA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AM,MAAM,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC;IAC3D,YAAY,MAAM,CAAC,IAAI,GAAG,iBAAiB;IAC3C,YAAY,MAAM,CAAC,GAAG,GAAG,2CAA2C;IACpE,YAAY,QAAQ,CAAC,oBAAoB,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,MAAM,CAAC;IACxE,YAAY,MAAM,CAAC,MAAM,GAAG,MAAM;IAClC,gBAAgB,IAAI,CAAC,SAAS,GAAG,IAAI;IACrC,gBAAgB,OAAO,CAAC,MAAM,CAAC;IAC/B,YAAY,CAAC;IACb,YAAY,MAAM,CAAC,OAAO,GAAG,MAAM;IACnC,gBAAgB,MAAM,EAAE;IACxB,YAAY,CAAC;IACb,QAAQ,CAAC,CAAC;IACV,IAAI;IACJ;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mustafaj/capacitor-plugin-playlist",
3
- "version": "0.9.3",
3
+ "version": "0.9.5",
4
4
  "description": "Capacitor audio playlist plugin with Android, iOS, and web support",
5
5
  "module": "dist/esm/index.js",
6
6
  "types": "dist/esm/index.d.ts",