capacitor-plugin-playlist 0.1.25 → 0.1.29
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/README.md +18 -9
- package/android/.gitignore +1 -0
- package/android/.npmignore +1 -0
- package/android/src/main/java/org/dwbn/plugins/playlist/PlaylistPlugin.kt +9 -9
- package/dist/esm/RmxAudioPlayer.d.ts +2 -7
- package/dist/esm/RmxAudioPlayer.js +4 -13
- package/dist/esm/RmxAudioPlayer.js.map +1 -1
- package/dist/esm/web.d.ts +2 -1
- package/dist/esm/web.js +49 -77
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +53 -90
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +53 -90
- package/dist/plugin.js.map +1 -1
- package/package.json +1 -1
package/dist/plugin.cjs.js
CHANGED
|
@@ -257,7 +257,6 @@ class RmxAudioPlayer {
|
|
|
257
257
|
constructor() {
|
|
258
258
|
this.handlers = {};
|
|
259
259
|
this.options = { verbose: false, resetStreamOnPause: true };
|
|
260
|
-
this._inititialized = false;
|
|
261
260
|
this._readyResolve = () => {
|
|
262
261
|
};
|
|
263
262
|
this._readyReject = () => {
|
|
@@ -276,10 +275,6 @@ class RmxAudioPlayer {
|
|
|
276
275
|
return this._initPromise;
|
|
277
276
|
};
|
|
278
277
|
this.initialize = async () => {
|
|
279
|
-
this._initPromise = new Promise((resolve, reject) => {
|
|
280
|
-
this._readyResolve = resolve;
|
|
281
|
-
this._readyReject = reject;
|
|
282
|
-
});
|
|
283
278
|
Playlist.addListener('status', (data) => {
|
|
284
279
|
if (data.action === 'status') {
|
|
285
280
|
this.onStatus(data.status.trackId, data.status.msgType, data.status.value);
|
|
@@ -290,7 +285,6 @@ class RmxAudioPlayer {
|
|
|
290
285
|
});
|
|
291
286
|
try {
|
|
292
287
|
await Playlist.initialize();
|
|
293
|
-
this._inititialized = true;
|
|
294
288
|
this._readyResolve();
|
|
295
289
|
}
|
|
296
290
|
catch (args) {
|
|
@@ -298,7 +292,6 @@ class RmxAudioPlayer {
|
|
|
298
292
|
console.warn(message, args);
|
|
299
293
|
this._readyReject();
|
|
300
294
|
}
|
|
301
|
-
return this._initPromise;
|
|
302
295
|
};
|
|
303
296
|
/**
|
|
304
297
|
* Sets the player options. This can be called at any time and is not required before playback can be initiated.
|
|
@@ -442,6 +435,10 @@ class RmxAudioPlayer {
|
|
|
442
435
|
new Promise((resolve) => {
|
|
443
436
|
window.addEventListener('beforeunload', () => resolve(), { once: true });
|
|
444
437
|
}).then(() => Playlist.release());
|
|
438
|
+
this._initPromise = new Promise((resolve, reject) => {
|
|
439
|
+
this._readyResolve = resolve;
|
|
440
|
+
this._readyReject = reject;
|
|
441
|
+
});
|
|
445
442
|
}
|
|
446
443
|
/**
|
|
447
444
|
* The current summarized state of the player, as a string. It is preferred that you use the 'isX' accessors,
|
|
@@ -451,12 +448,6 @@ class RmxAudioPlayer {
|
|
|
451
448
|
get currentState() {
|
|
452
449
|
return this._currentState;
|
|
453
450
|
}
|
|
454
|
-
/**
|
|
455
|
-
* True if the plugin has been initialized. You'll likely never see this state; it is handled internally.
|
|
456
|
-
*/
|
|
457
|
-
get isInitialized() {
|
|
458
|
-
return this._inititialized;
|
|
459
|
-
}
|
|
460
451
|
get currentTrack() {
|
|
461
452
|
return this._currentItem;
|
|
462
453
|
}
|
|
@@ -594,15 +585,18 @@ class PlaylistWeb extends core.WebPlugin {
|
|
|
594
585
|
const track = validateTrack(options.item);
|
|
595
586
|
if (track) {
|
|
596
587
|
this.playlistItems.push(track);
|
|
588
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_ITEM_ADDED, track, track.trackId);
|
|
597
589
|
}
|
|
598
590
|
return Promise.resolve();
|
|
599
591
|
}
|
|
600
592
|
async clearAllItems() {
|
|
601
593
|
await this.release();
|
|
602
594
|
this.playlistItems = [];
|
|
595
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_PLAYLIST_CLEARED, null, "INVALID");
|
|
603
596
|
return Promise.resolve();
|
|
604
597
|
}
|
|
605
598
|
async initialize() {
|
|
599
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_INIT, null, "INVALID");
|
|
606
600
|
return Promise.resolve();
|
|
607
601
|
}
|
|
608
602
|
async pause() {
|
|
@@ -611,24 +605,28 @@ class PlaylistWeb extends core.WebPlugin {
|
|
|
611
605
|
}
|
|
612
606
|
async play() {
|
|
613
607
|
var _a;
|
|
614
|
-
|
|
608
|
+
await ((_a = this.audio) === null || _a === void 0 ? void 0 : _a.play());
|
|
615
609
|
}
|
|
616
|
-
playTrackById(options) {
|
|
617
|
-
this.playlistItems
|
|
618
|
-
if (
|
|
619
|
-
|
|
610
|
+
async playTrackById(options) {
|
|
611
|
+
for (let track of this.playlistItems) {
|
|
612
|
+
if (track.trackId === options.id) {
|
|
613
|
+
if (track !== this.currentTrack) {
|
|
614
|
+
await this.setCurrent(track);
|
|
615
|
+
}
|
|
620
616
|
return this.play();
|
|
621
617
|
}
|
|
622
|
-
}
|
|
618
|
+
}
|
|
623
619
|
return Promise.reject();
|
|
624
620
|
}
|
|
625
|
-
playTrackByIndex(options) {
|
|
626
|
-
this.playlistItems.
|
|
621
|
+
async playTrackByIndex(options) {
|
|
622
|
+
for (let { index, item } of this.playlistItems.map((item, index) => ({ index, item }))) {
|
|
627
623
|
if (index === options.index) {
|
|
628
|
-
|
|
624
|
+
if (item !== this.currentTrack) {
|
|
625
|
+
await this.setCurrent(item);
|
|
626
|
+
}
|
|
629
627
|
return this.play();
|
|
630
628
|
}
|
|
631
|
-
}
|
|
629
|
+
}
|
|
632
630
|
return Promise.reject();
|
|
633
631
|
}
|
|
634
632
|
async release() {
|
|
@@ -639,17 +637,19 @@ class PlaylistWeb extends core.WebPlugin {
|
|
|
639
637
|
removeItem(options) {
|
|
640
638
|
this.playlistItems.forEach((item, index) => {
|
|
641
639
|
if (options.index && options.index === index) {
|
|
642
|
-
this.playlistItems.splice(index, 1);
|
|
640
|
+
const removedTrack = this.playlistItems.splice(index, 1);
|
|
641
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_ITEM_REMOVED, removedTrack[0], removedTrack[0].trackId);
|
|
643
642
|
}
|
|
644
643
|
else if (options.id && options.id === item.trackId) {
|
|
645
|
-
this.playlistItems.splice(index, 1);
|
|
644
|
+
const removedTrack = this.playlistItems.splice(index, 1);
|
|
645
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_ITEM_REMOVED, removedTrack[0], removedTrack[0].trackId);
|
|
646
646
|
}
|
|
647
647
|
});
|
|
648
648
|
return Promise.resolve();
|
|
649
649
|
}
|
|
650
650
|
removeItems(options) {
|
|
651
|
-
options.items.forEach((item) => {
|
|
652
|
-
this.removeItem(item);
|
|
651
|
+
options.items.forEach(async (item) => {
|
|
652
|
+
await this.removeItem(item);
|
|
653
653
|
});
|
|
654
654
|
return Promise.resolve();
|
|
655
655
|
}
|
|
@@ -701,7 +701,7 @@ class PlaylistWeb extends core.WebPlugin {
|
|
|
701
701
|
}
|
|
702
702
|
return Promise.resolve();
|
|
703
703
|
}
|
|
704
|
-
skipForward() {
|
|
704
|
+
async skipForward() {
|
|
705
705
|
let found = null;
|
|
706
706
|
this.playlistItems.forEach((item, index) => {
|
|
707
707
|
if (!found && this.getCurrentTrackId() === item.trackId) {
|
|
@@ -712,11 +712,15 @@ class PlaylistWeb extends core.WebPlugin {
|
|
|
712
712
|
found = -1;
|
|
713
713
|
}
|
|
714
714
|
if (found !== null) {
|
|
715
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMX_STATUS_SKIP_BACK, {
|
|
716
|
+
currentIndex: found + 1,
|
|
717
|
+
currentItem: this.playlistItems[found + 1]
|
|
718
|
+
}, this.playlistItems[found + 1].trackId);
|
|
715
719
|
return this.setCurrent(this.playlistItems[found + 1]);
|
|
716
720
|
}
|
|
717
721
|
return Promise.reject();
|
|
718
722
|
}
|
|
719
|
-
skipBack() {
|
|
723
|
+
async skipBack() {
|
|
720
724
|
let found = null;
|
|
721
725
|
this.playlistItems.forEach((item, index) => {
|
|
722
726
|
if (!found && this.getCurrentTrackId() === item.trackId) {
|
|
@@ -727,8 +731,11 @@ class PlaylistWeb extends core.WebPlugin {
|
|
|
727
731
|
found = this.playlistItems.length - 1;
|
|
728
732
|
}
|
|
729
733
|
if (found !== null) {
|
|
730
|
-
this.
|
|
731
|
-
|
|
734
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMX_STATUS_SKIP_BACK, {
|
|
735
|
+
currentIndex: found - 1,
|
|
736
|
+
currentItem: this.playlistItems[found - 1]
|
|
737
|
+
}, this.playlistItems[found - 1].trackId);
|
|
738
|
+
return this.setCurrent(this.playlistItems[found - 1]);
|
|
732
739
|
}
|
|
733
740
|
return Promise.reject();
|
|
734
741
|
}
|
|
@@ -759,14 +766,7 @@ class PlaylistWeb extends core.WebPlugin {
|
|
|
759
766
|
registerHtmlListeners(position) {
|
|
760
767
|
const canPlayListener = async () => {
|
|
761
768
|
var _a;
|
|
762
|
-
this.
|
|
763
|
-
action: 'status',
|
|
764
|
-
status: {
|
|
765
|
-
msgType: exports.RmxAudioStatusMessage.RMXSTATUS_CANPLAY,
|
|
766
|
-
trackId: this.getCurrentTrackId(),
|
|
767
|
-
value: this.getCurrentTrackStatus('loading'),
|
|
768
|
-
}
|
|
769
|
-
});
|
|
769
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_CANPLAY, this.getCurrentTrackStatus('paused'));
|
|
770
770
|
if (position) {
|
|
771
771
|
await this.seekTo({ position });
|
|
772
772
|
}
|
|
@@ -775,57 +775,22 @@ class PlaylistWeb extends core.WebPlugin {
|
|
|
775
775
|
if (this.audio) {
|
|
776
776
|
this.audio.addEventListener('canplay', canPlayListener);
|
|
777
777
|
this.audio.addEventListener('playing', () => {
|
|
778
|
-
this.
|
|
779
|
-
action: 'status',
|
|
780
|
-
status: {
|
|
781
|
-
msgType: exports.RmxAudioStatusMessage.RMXSTATUS_PLAYING,
|
|
782
|
-
trackId: this.getCurrentTrackId(),
|
|
783
|
-
value: this.getCurrentTrackStatus('playing'),
|
|
784
|
-
}
|
|
785
|
-
});
|
|
778
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_PLAYING, this.getCurrentTrackStatus('playing'));
|
|
786
779
|
});
|
|
787
780
|
this.audio.addEventListener('pause', () => {
|
|
788
|
-
this.
|
|
789
|
-
action: 'status',
|
|
790
|
-
status: {
|
|
791
|
-
msgType: exports.RmxAudioStatusMessage.RMXSTATUS_PAUSE,
|
|
792
|
-
trackId: this.getCurrentTrackId(),
|
|
793
|
-
value: this.getCurrentTrackStatus('paused'),
|
|
794
|
-
}
|
|
795
|
-
});
|
|
781
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_PAUSE, this.getCurrentTrackStatus('paused'));
|
|
796
782
|
});
|
|
797
783
|
this.audio.addEventListener('error', () => {
|
|
798
|
-
this.
|
|
799
|
-
action: 'status',
|
|
800
|
-
status: {
|
|
801
|
-
msgType: exports.RmxAudioStatusMessage.RMXSTATUS_ERROR,
|
|
802
|
-
trackId: this.getCurrentTrackId(),
|
|
803
|
-
value: this.getCurrentTrackStatus('error'),
|
|
804
|
-
}
|
|
805
|
-
});
|
|
784
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_ERROR, this.getCurrentTrackStatus('error'));
|
|
806
785
|
});
|
|
807
786
|
this.audio.addEventListener('ended', () => {
|
|
808
|
-
this.
|
|
809
|
-
action: 'status',
|
|
810
|
-
status: {
|
|
811
|
-
msgType: exports.RmxAudioStatusMessage.RMXSTATUS_STOPPED,
|
|
812
|
-
trackId: this.getCurrentTrackId(),
|
|
813
|
-
value: this.getCurrentTrackStatus('stopped'),
|
|
814
|
-
}
|
|
815
|
-
});
|
|
787
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_STOPPED, this.getCurrentTrackStatus('stopped'));
|
|
816
788
|
});
|
|
817
789
|
let lastTrackId, lastPosition;
|
|
818
790
|
this.audio.addEventListener('timeupdate', () => {
|
|
819
791
|
const status = this.getCurrentTrackStatus(this.lastState);
|
|
820
792
|
if (lastTrackId !== this.getCurrentTrackId() || lastPosition !== status.currentPosition) {
|
|
821
|
-
this.
|
|
822
|
-
action: 'status',
|
|
823
|
-
status: {
|
|
824
|
-
msgType: exports.RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION,
|
|
825
|
-
trackId: this.getCurrentTrackId(),
|
|
826
|
-
value: status,
|
|
827
|
-
}
|
|
828
|
-
});
|
|
793
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION, status);
|
|
829
794
|
lastTrackId = this.getCurrentTrackId();
|
|
830
795
|
lastPosition = status.currentPosition;
|
|
831
796
|
}
|
|
@@ -892,28 +857,26 @@ class PlaylistWeb extends core.WebPlugin {
|
|
|
892
857
|
this.play();
|
|
893
858
|
});
|
|
894
859
|
}
|
|
860
|
+
this.updateStatus(exports.RmxAudioStatusMessage.RMXSTATUS_TRACK_CHANGED, {
|
|
861
|
+
currentItem: item
|
|
862
|
+
});
|
|
863
|
+
}
|
|
864
|
+
updateStatus(msgType, value, trackId) {
|
|
895
865
|
this.notifyListeners('status', {
|
|
896
866
|
action: 'status',
|
|
897
867
|
status: {
|
|
898
|
-
msgType:
|
|
899
|
-
trackId: this.getCurrentTrackId(),
|
|
900
|
-
value:
|
|
901
|
-
currentItem: item
|
|
902
|
-
}
|
|
868
|
+
msgType: msgType,
|
|
869
|
+
trackId: trackId ? trackId : this.getCurrentTrackId(),
|
|
870
|
+
value: value
|
|
903
871
|
}
|
|
904
872
|
});
|
|
905
873
|
}
|
|
906
|
-
log(message, ...optionalParams) {
|
|
907
|
-
if (this.options.verbose) {
|
|
908
|
-
console.log(message, ...optionalParams);
|
|
909
|
-
}
|
|
910
|
-
}
|
|
911
874
|
loadHlsJs() {
|
|
912
875
|
if (this.hlsLoaded) {
|
|
913
876
|
return Promise.resolve();
|
|
914
877
|
}
|
|
915
878
|
return new Promise((resolve, reject) => {
|
|
916
|
-
|
|
879
|
+
const script = document.createElement('script');
|
|
917
880
|
script.type = 'text/javascript';
|
|
918
881
|
script.src = 'https://cdn.jsdelivr.net/npm/hls.js@1.1.1';
|
|
919
882
|
document.getElementsByTagName('head')[0].appendChild(script);
|
package/dist/plugin.cjs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.cjs.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 * Creates a new RmxAudioPlayer instance.\n */\n constructor() {\n this.handlers = {};\n this.options = { verbose: false, resetStreamOnPause: true };\n this._inititialized = false;\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 this._initPromise = new Promise((resolve, reject) => {\n this._readyResolve = resolve;\n this._readyReject = reject;\n });\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._inititialized = true;\n this._readyResolve();\n }\n catch (args) {\n const message = 'Capacitor RMXAUDIOPLAYER: Error initializing:';\n console.warn(message, args);\n this._readyReject();\n }\n return this._initPromise;\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) {\n new Error('Track removal spec is invalid');\n }\n return Playlist.removeItem({ id: removeItem.trackId, index: removeItem.trackIndex });\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({ items: items });\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 }\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 /**\n * True if the plugin has been initialized. You'll likely never see this state; it is handled internally.\n */\n get isInitialized() {\n return this._inititialized;\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 * 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 = { type: type, trackId: trackId, value: value };\n if (this.options.verbose) {\n console.debug(`RmxAudioPlayer.onStatus: ${RmxAudioStatusMessageDescriptions[type]}(${type}) [${trackId}]: `, value);\n }\n if (status.type === 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.type) >= 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.type === RmxAudioStatusMessage.RMXSTATUS_CANPLAY) {\n this._hasLoaded = true;\n }\n if (status.type === 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 }\n return Promise.resolve();\n }\n async clearAllItems() {\n await this.release();\n this.playlistItems = [];\n return Promise.resolve();\n }\n async initialize() {\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 return (_a = this.audio) === null || _a === void 0 ? void 0 : _a.play();\n }\n playTrackById(options) {\n this.playlistItems.forEach(async (item) => {\n if (item.trackId === options.id) {\n await this.setCurrent(item);\n return this.play();\n }\n });\n return Promise.reject();\n }\n playTrackByIndex(options) {\n this.playlistItems.forEach(async (item, index) => {\n if (index === options.index) {\n await this.setCurrent(item);\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 removeItem(options) {\n this.playlistItems.forEach((item, index) => {\n if (options.index && options.index === index) {\n this.playlistItems.splice(index, 1);\n }\n else if (options.id && options.id === item.trackId) {\n this.playlistItems.splice(index, 1);\n }\n });\n return Promise.resolve();\n }\n removeItems(options) {\n options.items.forEach((item) => {\n 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 setPlaylistItems(options) {\n var _a;\n this.playlistItems = options.items;\n if (this.playlistItems.length > 0) {\n return this.setCurrent(this.playlistItems[0], ((_a = options.options) === null || _a === void 0 ? void 0 : _a.playFromPosition) || 0);\n }\n return Promise.resolve();\n }\n skipForward() {\n let found = null;\n this.playlistItems.forEach((item, index) => {\n if (!found && 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 return this.setCurrent(this.playlistItems[found + 1]);\n }\n return Promise.reject();\n }\n skipBack() {\n let found = null;\n this.playlistItems.forEach((item, index) => {\n if (!found && this.getCurrentTrackId() === item.trackId) {\n found = index;\n }\n });\n if (found === 0) {\n found = this.playlistItems.length - 1;\n }\n if (found !== null) {\n this.setCurrent(this.playlistItems[found - 1]);\n return Promise.resolve();\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 // 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.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 (_a = this.audio) === null || _a === void 0 ? void 0 : _a.removeEventListener('canplay', canPlayListener);\n };\n if (this.audio) {\n this.audio.addEventListener('canplay', canPlayListener);\n this.audio.addEventListener('playing', () => {\n this.notifyListeners('status', {\n action: 'status',\n status: {\n msgType: RmxAudioStatusMessage.RMXSTATUS_PLAYING,\n trackId: this.getCurrentTrackId(),\n value: this.getCurrentTrackStatus('playing'),\n }\n });\n });\n this.audio.addEventListener('pause', () => {\n this.notifyListeners('status', {\n action: 'status',\n status: {\n msgType: RmxAudioStatusMessage.RMXSTATUS_PAUSE,\n trackId: this.getCurrentTrackId(),\n value: this.getCurrentTrackStatus('paused'),\n }\n });\n });\n this.audio.addEventListener('error', () => {\n this.notifyListeners('status', {\n action: 'status',\n status: {\n msgType: RmxAudioStatusMessage.RMXSTATUS_ERROR,\n trackId: this.getCurrentTrackId(),\n value: this.getCurrentTrackStatus('error'),\n }\n });\n });\n this.audio.addEventListener('ended', () => {\n this.notifyListeners('status', {\n action: 'status',\n status: {\n msgType: RmxAudioStatusMessage.RMXSTATUS_STOPPED,\n trackId: this.getCurrentTrackId(),\n value: this.getCurrentTrackStatus('stopped'),\n }\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.notifyListeners('status', {\n action: 'status',\n status: {\n msgType: RmxAudioStatusMessage.RMXSTATUS_PLAYBACK_POSITION,\n trackId: this.getCurrentTrackId(),\n value: status,\n }\n });\n lastTrackId = this.getCurrentTrackId();\n lastPosition = status.currentPosition;\n }\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;\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 };\n }\n async setCurrent(item, position) {\n let wasPlaying = false;\n if (this.audio) {\n wasPlaying = !this.audio.paused;\n this.audio.pause();\n this.audio.src = '';\n this.audio.removeAttribute('src');\n this.audio.load();\n }\n this.audio = document.createElement('video');\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 if (wasPlaying) {\n this.audio.addEventListener('canplay', () => {\n this.play();\n });\n }\n this.notifyListeners('status', {\n action: 'status',\n status: {\n msgType: RmxAudioStatusMessage.RMXSTATUS_TRACK_CHANGED,\n trackId: this.getCurrentTrackId(),\n value: {\n currentItem: item\n }\n }\n });\n }\n log(message, ...optionalParams) {\n if (this.options.verbose) {\n console.log(message, ...optionalParams);\n }\n }\n loadHlsJs() {\n if (this.hlsLoaded) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\n var 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":";;;;;;AAAA;AACA;AACA;AACWA,mCAAkB;AAC7B,CAAC,UAAU,iBAAiB,EAAE;AAC9B,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAoB,CAAC;AAC1F,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAClF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAClF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;AAChF,IAAI,iBAAiB,CAAC,iBAAiB,CA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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 * 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) {\n new Error('Track removal spec is invalid');\n }\n return Playlist.removeItem({ id: removeItem.trackId, index: removeItem.trackIndex });\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({ items: items });\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 * 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 * 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 = { type: type, trackId: trackId, value: value };\n if (this.options.verbose) {\n console.debug(`RmxAudioPlayer.onStatus: ${RmxAudioStatusMessageDescriptions[type]}(${type}) [${trackId}]: `, value);\n }\n if (status.type === 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.type) >= 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.type === RmxAudioStatusMessage.RMXSTATUS_CANPLAY) {\n this._hasLoaded = true;\n }\n if (status.type === 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 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 }\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 }\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 removeItem(options) {\n this.playlistItems.forEach((item, index) => {\n if (options.index && options.index === index) {\n const removedTrack = this.playlistItems.splice(index, 1);\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_ITEM_REMOVED, removedTrack[0], removedTrack[0].trackId);\n }\n else if (options.id && options.id === item.trackId) {\n const removedTrack = this.playlistItems.splice(index, 1);\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_ITEM_REMOVED, removedTrack[0], removedTrack[0].trackId);\n }\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 setPlaylistItems(options) {\n var _a;\n this.playlistItems = options.items;\n if (this.playlistItems.length > 0) {\n return this.setCurrent(this.playlistItems[0], ((_a = options.options) === null || _a === void 0 ? void 0 : _a.playFromPosition) || 0);\n }\n return Promise.resolve();\n }\n async skipForward() {\n let found = null;\n this.playlistItems.forEach((item, index) => {\n if (!found && 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 this.updateStatus(RmxAudioStatusMessage.RMX_STATUS_SKIP_BACK, {\n currentIndex: found + 1,\n currentItem: this.playlistItems[found + 1]\n }, this.playlistItems[found + 1].trackId);\n return this.setCurrent(this.playlistItems[found + 1]);\n }\n return Promise.reject();\n }\n async skipBack() {\n let found = null;\n this.playlistItems.forEach((item, index) => {\n if (!found && this.getCurrentTrackId() === item.trackId) {\n found = index;\n }\n });\n if (found === 0) {\n found = this.playlistItems.length - 1;\n }\n if (found !== null) {\n this.updateStatus(RmxAudioStatusMessage.RMX_STATUS_SKIP_BACK, {\n currentIndex: found - 1,\n currentItem: this.playlistItems[found - 1]\n }, this.playlistItems[found - 1].trackId);\n return this.setCurrent(this.playlistItems[found - 1]);\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 // 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('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_STOPPED, this.getCurrentTrackStatus('stopped'));\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 }\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;\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 };\n }\n async setCurrent(item, position) {\n let wasPlaying = false;\n if (this.audio) {\n wasPlaying = !this.audio.paused;\n this.audio.pause();\n this.audio.src = '';\n this.audio.removeAttribute('src');\n this.audio.load();\n }\n this.audio = document.createElement('video');\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 if (wasPlaying) {\n this.audio.addEventListener('canplay', () => {\n this.play();\n });\n }\n this.updateStatus(RmxAudioStatusMessage.RMXSTATUS_TRACK_CHANGED, {\n currentItem: item\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 (this.hlsLoaded) {\n return Promise.resolve();\n }\n return new Promise((resolve, reject) => {\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":";;;;;;AAAA;AACA;AACA;AACWA,mCAAkB;AAC7B,CAAC,UAAU,iBAAiB,EAAE;AAC9B,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,GAAG,oBAAoB,CAAC;AAC1F,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAClF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,GAAG,gBAAgB,CAAC;AAClF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,eAAe,CAAC,GAAG,CAAC,CAAC,GAAG,eAAe,CAAC;AAChF,IAAI,iBAAiB,CAAC,iBAAiB,CAAC,uBAAuB,CAAC,GAAG,CAAC,CAAC,GAAG,uBAAuB,CAAC;AAChG,CAAC,EAAEA,yBAAiB,KAAKA,yBAAiB,GAAG,EAAE,CAAC,CAAC,CAAC;AAElD;AACA;AACA;AACY,MAAC,6BAA6B,GAAG;AAC7C,IA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