From ac38ff798b930ebd2cede2cb0509dffd2072a9c6 Mon Sep 17 00:00:00 2001 From: Digital Date: Wed, 11 Sep 2024 17:51:06 -0400 Subject: [PATCH] removed redundant notifyListener call --- .../java/co/broadcastapp/muckabout/RemoteStreamerPlugin.java | 3 +-- package.json | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/android/src/main/java/co/broadcastapp/muckabout/RemoteStreamerPlugin.java b/android/src/main/java/co/broadcastapp/muckabout/RemoteStreamerPlugin.java index 703b991..a282dbc 100644 --- a/android/src/main/java/co/broadcastapp/muckabout/RemoteStreamerPlugin.java +++ b/android/src/main/java/co/broadcastapp/muckabout/RemoteStreamerPlugin.java @@ -172,7 +172,6 @@ public void onPlaybackStateChanged(int state) { case Player.STATE_ENDED: stopUpdatingTime(); stop(); - notifyListeners("stop", new JSObject().put("ended", true)); break; } } @@ -262,7 +261,7 @@ public void stop(PluginCall call) { } public void stop() { - notifyListeners("stop", new JSObject().put("ended", false)); + notifyListeners("stop", new JSObject().put("ended", true)); releasePlayer(); if (service != null) { // stop may be called before the service is started diff --git a/package.json b/package.json index 3799f43..0c796f4 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@nypublicradio/capacitor-remote-streamer", "repository": "git://github.com/nypublicradio/capacitor-remote-streamer.git", - "version": "0.2.8", + "version": "0.2.9", "description": "Stream remote HLS and MP3 streams on iOS and Android. Capacitor 6.", "main": "dist/plugin.cjs.js", "repository": {