Skip to content

Commit

Permalink
Merge pull request #9 from nypublicradio/WNYC-451-Crash-report-from-G…
Browse files Browse the repository at this point in the history
…oogle-Play

compensate for errors in play console
  • Loading branch information
bonomite authored Nov 21, 2024
2 parents 7c841c1 + 33f317a commit 567554c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ public void onServiceConnected(ComponentName componentName, IBinder iBinder) {
service = binder.getService();
Intent intent = new Intent(getActivity(), getActivity().getClass());
service.connectAndInitialize(RemoteStreamerPlugin.this, intent);
startMediaService();
}

@Override
Expand Down Expand Up @@ -335,8 +336,10 @@ private void releasePlayer() {
handler.post(() -> {
Log.d("RemoteStreamerPlugin", "releaseing player");
stopUpdatingTime();
player.release();
player = null;
if (player != null) {
player.release();
player = null;
}
audioManager.abandonAudioFocusRequest(focusRequest);
});
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nypublicradio/capacitor-remote-streamer",
"repository": "git://github.com/nypublicradio/capacitor-remote-streamer.git",
"version": "0.3.8",
"version": "0.3.9",
"description": "Stream remote HLS and MP3 streams on iOS and Android. Capacitor 6.",
"main": "dist/plugin.cjs.js",
"repository": {
Expand Down

0 comments on commit 567554c

Please sign in to comment.