Package com.google.android.exoplayer2
Class DeviceInfo
- java.lang.Object
-
- com.google.android.exoplayer2.DeviceInfo
-
- All Implemented Interfaces:
Bundleable
@Deprecated public final class DeviceInfo extends Object implements Bundleable
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Information about the playback device.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceInfo.BuilderDeprecated.Builder forDeviceInfo.static interfaceDeviceInfo.PlaybackTypeDeprecated.Types of playback.-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description static Bundleable.Creator<DeviceInfo>CREATORDeprecated.Object that can restoreDeviceInfofrom aBundle.intmaxVolumeDeprecated.The maximum volume that the device supports, or0if unspecified.intminVolumeDeprecated.The minimum volume that the device supports.static intPLAYBACK_TYPE_LOCALDeprecated.Playback happens on the local device (e.g.static intPLAYBACK_TYPE_REMOTEDeprecated.Playback happens outside of the device (e.g.@com.google.android.exoplayer2.DeviceInfo.PlaybackType intplaybackTypeDeprecated.The type of playback.StringroutingControllerIdDeprecated.The routing controller id of the associatedMediaRouter2.RoutingController, or null if unset orplaybackTypeisPLAYBACK_TYPE_LOCAL.static DeviceInfoUNKNOWNDeprecated.Unknown DeviceInfo.
-
Constructor Summary
Constructors Constructor Description DeviceInfo(@com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType, int minVolume, int maxVolume)Deprecated.UseDeviceInfo.Builderinstead.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleanequals(Object obj)Deprecated.inthashCode()Deprecated.BundletoBundle()Deprecated.Returns aBundlerepresenting the information stored in this object.
-
-
-
Field Detail
-
PLAYBACK_TYPE_LOCAL
public static final int PLAYBACK_TYPE_LOCAL
Deprecated.Playback happens on the local device (e.g. phone).- See Also:
- Constant Field Values
-
PLAYBACK_TYPE_REMOTE
public static final int PLAYBACK_TYPE_REMOTE
Deprecated.Playback happens outside of the device (e.g. a cast device).- See Also:
- Constant Field Values
-
UNKNOWN
public static final DeviceInfo UNKNOWN
Deprecated.Unknown DeviceInfo.
-
playbackType
public final @com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType
Deprecated.The type of playback.
-
minVolume
@IntRange(from=0L) public final int minVolume
Deprecated.The minimum volume that the device supports.
-
maxVolume
@IntRange(from=0L) public final int maxVolume
Deprecated.The maximum volume that the device supports, or0if unspecified.
-
routingControllerId
@Nullable public final String routingControllerId
Deprecated.The routing controller id of the associatedMediaRouter2.RoutingController, or null if unset orplaybackTypeisPLAYBACK_TYPE_LOCAL.This id allows mapping this device information to a routing controller, which provides information about the media route and allows controlling its volume.
-
CREATOR
public static final Bundleable.Creator<DeviceInfo> CREATOR
Deprecated.Object that can restoreDeviceInfofrom aBundle.
-
-
Constructor Detail
-
DeviceInfo
@Deprecated public DeviceInfo(@com.google.android.exoplayer2.DeviceInfo.PlaybackType int playbackType, @IntRange(from=0L) int minVolume, @IntRange(from=0L) int maxVolume)
Deprecated.UseDeviceInfo.Builderinstead.
-
-
Method Detail
-
toBundle
public Bundle toBundle()
Deprecated.Description copied from interface:BundleableReturns aBundlerepresenting the information stored in this object.- Specified by:
toBundlein interfaceBundleable
-
-