diff options
Diffstat (limited to 'app/src/main/java/invalid/lena/scrcpy/Sessions.java')
| -rw-r--r-- | app/src/main/java/invalid/lena/scrcpy/Sessions.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/main/java/invalid/lena/scrcpy/Sessions.java b/app/src/main/java/invalid/lena/scrcpy/Sessions.java index 95c0a1f..91144be 100644 --- a/app/src/main/java/invalid/lena/scrcpy/Sessions.java +++ b/app/src/main/java/invalid/lena/scrcpy/Sessions.java @@ -16,8 +16,8 @@ import android.os.IBinder; // briefly backgrounded (rotation, IME, swipe-to-home) without the // scrcpy server tearing down. // -// Type is FOREGROUND_SERVICE_DATA_SYNC: we are pulling a continuous -// data stream (encoded video + raw PCM) from another device. +// Type is FOREGROUND_SERVICE_MEDIA_PLAYBACK: the app continuously plays +// remote audio/video for as long as the user keeps a mirror session open. // // No binder API - the service does not own Session. Mirror owns it. public final class Sessions extends Service { @@ -41,7 +41,7 @@ public final class Sessions extends Service { .setContentIntent(reopenIntent()) .setOngoing(true) .build(); - startForeground(NOTIF_ID, n, ServiceInfo.FOREGROUND_SERVICE_TYPE_DATA_SYNC); + startForeground(NOTIF_ID, n, ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK); return START_NOT_STICKY; } |