aboutsummaryrefslogtreecommitdiffstats
path: root/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
diff options
context:
space:
mode:
Diffstat (limited to 'packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js')
-rw-r--r--packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
index 4755531..7ace33b 100644
--- a/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
+++ b/packages/meshbay-android/app/src/main/assets/bridge/meshbay-bridge.js
@@ -162,6 +162,12 @@
chromecastPlay: () => call('cast:chromecast:play'),
} } : {}),
+ // Music is playing: keep the process, the Wi-Fi and the page awake with
+ // the screen off, behind a notification, until told otherwise.
+ playback: {
+ keepAlive: (on) => call('playback:keep-alive', on === true),
+ },
+
// Where downloads go, chosen once. A display name comes back, never a URI.
folder: {
choose: () => call('folder:choose'),