From 437275caeda469fae9aacde0977f1cb5491b90d0 Mon Sep 17 00:00:00 2001 From: gyumin Date: Tue, 28 Jul 2020 12:01:10 +0100 Subject: [PATCH] Implement device info/volume methods PiperOrigin-RevId: 323544314 --- .../java/com/google/android/exoplayer2/device/DeviceInfo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/device/DeviceInfo.java b/library/common/src/main/java/com/google/android/exoplayer2/device/DeviceInfo.java index 43c37028ea..8d662c318e 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/device/DeviceInfo.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/device/DeviceInfo.java @@ -40,6 +40,10 @@ public final class DeviceInfo { /** Playback happens outside of the device (e.g. a cast device). */ public static final int PLAYBACK_TYPE_REMOTE = 1; + /** Unknown DeviceInfo. */ + public static final DeviceInfo UNKNOWN = + new DeviceInfo(PLAYBACK_TYPE_LOCAL, /* minVolume= */ 0, /* maxVolume= */ 0); + /** The type of playback. */ public final @PlaybackType int playbackType; /** The minimum volume that the device supports. */