Files
coco 7846a45f2c a
2026-07-03 15:47:27 +08:00

6287 lines
333 KiB
HTML

<!DOCTYPE HTML>
<!-- NewPage -->
<html lang="en">
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link rel="manifest" href="/assets/site.webmanifest"><link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#fc4d50"><link rel="shortcut icon" href="/assets/favicon.ico"><meta name="msapplication-TileColor" content="#ffc40d"><meta name="msapplication-config" content="/assets/browserconfig.xml"><meta name="theme-color" content="#ffffff"><!-- end favicons snippet -->
<title>Player (ExoPlayer library)</title>
<meta name="robots" content="noindex">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="../../../../stylesheet.css" title="Style">
<link rel="stylesheet" type="text/css" href="../../../../jquery/jquery-ui.css" title="Style">
<script type="text/javascript" src="../../../../script.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip/dist/jszip.min.js"></script>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils.min.js"></script>
<!--[if IE]>
<script type="text/javascript" src="../../../../jquery/jszip-utils/dist/jszip-utils-ie.min.js"></script>
<![endif]-->
<script type="text/javascript" src="../../../../jquery/jquery-3.5.1.js"></script>
<script type="text/javascript" src="../../../../jquery/jquery-ui.js"></script>
</head>
<body>
<script type="text/javascript"><!--
try {
if (location.href.indexOf('is-external=true') == -1) {
parent.document.title="Player (ExoPlayer library)";
}
}
catch(err) {
}
//-->
var data = {"i0":38,"i1":38,"i2":38,"i3":38,"i4":38,"i5":38,"i6":38,"i7":38,"i8":38,"i9":38,"i10":38,"i11":38,"i12":38,"i13":38,"i14":38,"i15":38,"i16":38,"i17":38,"i18":38,"i19":38,"i20":38,"i21":38,"i22":38,"i23":38,"i24":38,"i25":38,"i26":38,"i27":38,"i28":38,"i29":38,"i30":38,"i31":38,"i32":38,"i33":38,"i34":38,"i35":38,"i36":38,"i37":38,"i38":38,"i39":38,"i40":38,"i41":38,"i42":38,"i43":38,"i44":38,"i45":38,"i46":38,"i47":38,"i48":38,"i49":38,"i50":38,"i51":38,"i52":38,"i53":38,"i54":38,"i55":38,"i56":38,"i57":38,"i58":38,"i59":38,"i60":38,"i61":38,"i62":38,"i63":38,"i64":38,"i65":38,"i66":38,"i67":38,"i68":38,"i69":38,"i70":38,"i71":38,"i72":38,"i73":38,"i74":38,"i75":38,"i76":38,"i77":38,"i78":38,"i79":38,"i80":38,"i81":38,"i82":38,"i83":38,"i84":38,"i85":38,"i86":38,"i87":38,"i88":38,"i89":38,"i90":38,"i91":38,"i92":38,"i93":38,"i94":38,"i95":38,"i96":38,"i97":38,"i98":38,"i99":38,"i100":38,"i101":38,"i102":38,"i103":38,"i104":38,"i105":38,"i106":38,"i107":38,"i108":38,"i109":38,"i110":38,"i111":38,"i112":38,"i113":38,"i114":38,"i115":38,"i116":38,"i117":38,"i118":38,"i119":38,"i120":38,"i121":38,"i122":38,"i123":38,"i124":38,"i125":38,"i126":38};
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"],32:["t6","Deprecated Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
var pathtoroot = "../../../../";
var useModuleDirectories = false;
loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<header role="banner">
<nav role="navigation">
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a id="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<ul class="navListSearch">
<li><label for="search">SEARCH:</label>
<input type="text" id="search" value="search" disabled="disabled">
<input type="reset" id="reset" value="reset" disabled="disabled">
</li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.top">
<!-- -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
</div>
<div class="navPadding">&nbsp;</div>
<script type="text/javascript"><!--
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
</script>
</nav>
</header>
<!-- ======== START OF CLASS DATA ======== -->
<main role="main">
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="package-summary.html">com.google.android.exoplayer2</a></div>
<h2 title="Interface Player" class="title">Interface Player</h2>
</div>
<div class="contentContainer">
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>All Known Subinterfaces:</dt>
<dd><code><a href="ExoPlayer.html" title="interface in com.google.android.exoplayer2">ExoPlayer</a></code></dd>
</dl>
<dl>
<dt>All Known Implementing Classes:</dt>
<dd><code><a href="BasePlayer.html" title="class in com.google.android.exoplayer2">BasePlayer</a></code>, <code><a href="ext/cast/CastPlayer.html" title="class in com.google.android.exoplayer2.ext.cast">CastPlayer</a></code>, <code><a href="ForwardingPlayer.html" title="class in com.google.android.exoplayer2">ForwardingPlayer</a></code>, <code><a href="SimpleBasePlayer.html" title="class in com.google.android.exoplayer2">SimpleBasePlayer</a></code>, <code><a href="SimpleExoPlayer.html" title="class in com.google.android.exoplayer2">SimpleExoPlayer</a></code>, <code><a href="testutil/StubExoPlayer.html" title="class in com.google.android.exoplayer2.testutil">StubExoPlayer</a></code>, <code><a href="testutil/StubPlayer.html" title="class in com.google.android.exoplayer2.testutil">StubPlayer</a></code></dd>
</dl>
<hr>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
public interface <span class="typeNameLabel">Player</span></pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which
contains the same ExoPlayer code). See <a href="https://developer.android.com/guide/topics/media/media3/getting-started/migration-guide">the
migration guide</a> for more details, including a script to help with the migration.</div>
</div>
<div class="block">A media player interface defining high-level functionality, such as the ability to play, pause,
seek and query properties of the currently playing media.
<h2>Player features and usage</h2>
<p>Some important properties of media players that implement this interface are:
<ul>
<li>All methods must be called from a single <a href="#getApplicationLooper()">application
thread</a> unless indicated otherwise. Callbacks in registered listeners are called on the
same thread.
<li>The available functionality can be limited. Player instances provide a set of <a href="#getAvailableCommands()"><code>availabe commands</code></a> to signal feature support and users of the
interface must only call methods if the corresponding <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2"><code>Player.Command</code></a> is available.
<li>Users can register <a href="Player.Listener.html" title="interface in com.google.android.exoplayer2"><code>Player.Listener</code></a> callbacks that get informed about state changes.
<li>Player instances need to update the visible state immediately after each method call, even
if the actual changes are handled on background threads or even other devices. This
simplifies the usage for callers of methods as no asynchronous handling needs to be
considered.
<li>Player instances can provide playlist operations, like 'set', 'add', 'remove', 'move' or
'replace' of <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> instances. The player can also support <a href="Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2">repeat modes</a> and shuffling within this playlist. The player provides a <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> representing the structure of the playlist and all its items, which can be
obtained by calling <a href="#getCurrentTimeline()"><code>getCurrentTimeline()</code></a>
<li>Player instances can provide seeking within the currently playing item and to other items,
using the various <code>seek...</code> methods.
<li>Player instances can provide <a href="Tracks.html" title="class in com.google.android.exoplayer2"><code>Tracks</code></a> defining the currently available and selected
tracks, which can be obtained by calling <a href="#getCurrentTracks()"><code>getCurrentTracks()</code></a>. Users can also modify
track selection behavior by setting <a href="trackselection/TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection"><code>TrackSelectionParameters</code></a> with <a href="#setTrackSelectionParameters(com.google.android.exoplayer2.trackselection.TrackSelectionParameters)"><code>setTrackSelectionParameters(com.google.android.exoplayer2.trackselection.TrackSelectionParameters)</code></a>.
<li>Player instances can provide <a href="MediaMetadata.html" title="class in com.google.android.exoplayer2"><code>MediaMetadata</code></a> about the currently playing item, which
can be obtained by calling <a href="#getMediaMetadata()"><code>getMediaMetadata()</code></a>.
<li>Player instances can provide information about ads in its media structure, for example via
<a href="#isPlayingAd()"><code>isPlayingAd()</code></a>.
<li>Player instances can accept different types of video outputs, like <a href="#setVideoSurfaceView(android.view.SurfaceView)"><code>SurfaceView</code></a> or <a href="#setVideoTextureView(android.view.TextureView)"><code>TextureView</code></a> for video
rendering.
<li>Player instances can handle <a href="#setPlaybackSpeed(float)">playback speed</a>, <a href="#getAudioAttributes()">audio attributes</a>, and <a href="#setVolume(float)">audio volume</a>.
<li>Player instances can provide information about the <a href="#getDeviceInfo()">playback
device</a>, which may be remote, and allow to change the device's volume.
</ul>
<h2>API stability guarantees</h2>
<p>The majority of the Player interface and its related classes are part of the stable API that
guarantees backwards-compatibility for users of the API. Only more advances use cases may need to
rely on <code>UnstableApi</code> classes and methods that are subject to incompatible changes or even
removal in a future release. Implementors of the Player interface are not covered by these API
stability guarantees.
<h2>Player state</h2>
<p>Users can listen to state changes by adding a <a href="Player.Listener.html" title="interface in com.google.android.exoplayer2"><code>Player.Listener</code></a> with <a href="#addListener(com.google.android.exoplayer2.Player.Listener)"><code>addListener(com.google.android.exoplayer2.Player.Listener)</code></a>.
<p>The main elements of the overall player state are:
<ul>
<li>Playlist
<ul>
<li><a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> instances can be added with methods like <a href="#setMediaItem(com.google.android.exoplayer2.MediaItem)"><code>setMediaItem(com.google.android.exoplayer2.MediaItem)</code></a> to
define what the player will be playing.
<li>The current playlist can be obtained via <a href="#getCurrentTimeline()"><code>getCurrentTimeline()</code></a> and convenience
methods like <a href="#getMediaItemCount()"><code>getMediaItemCount()</code></a> or <a href="#getCurrentMediaItem()"><code>getCurrentMediaItem()</code></a>.
<li>With an empty playlist, the player can only be in <a href="#STATE_IDLE"><code>STATE_IDLE</code></a> or <a href="#STATE_ENDED"><code>STATE_ENDED</code></a>.
</ul>
<li>Playback state
<ul>
<li><a href="#STATE_IDLE"><code>STATE_IDLE</code></a>: This is the initial state, the state when the player is
<a href="#stop()">stopped</a>, and when playback <a href="#getPlayerError()">failed</a>.
The player will hold only limited resources in this state. <a href="#prepare()"><code>prepare()</code></a> must be
called to transition away from this state.
<li><a href="#STATE_BUFFERING"><code>STATE_BUFFERING</code></a>: The player is not able to immediately play from its current
position. This mostly happens because more data needs to be loaded.
<li><a href="#STATE_READY"><code>STATE_READY</code></a>: The player is able to immediately play from its current
position.
<li><a href="#STATE_ENDED"><code>STATE_ENDED</code></a>: The player finished playing all media, or there is no media to
play.
</ul>
<li>Play/Pause, playback suppression and isPlaying
<ul>
<li><a href="#getPlayWhenReady()">playWhenReady</a>: Indicates the user intention to play.
It can be set with <a href="#play()"><code>play()</code></a> or <a href="#pause()"><code>pause()</code></a>.
<li><a href="#getPlaybackSuppressionReason()">playback suppression</a>: Defines a reason
for which playback will be suppressed even if <a href="#getPlayWhenReady()">playWhenReady</a> is <code>true</code>.
<li><a href="#isPlaying()"><code>isPlaying()</code></a>: Whether the player is playing (that is, its position is
advancing and media is being presented). This will only be <code>true</code> if playback
state is <a href="#STATE_READY"><code>STATE_READY</code></a>, <a href="#getPlayWhenReady()">playWhenReady</a> is
<code>true</code>, and playback is not suppressed.
</ul>
<li>Playback position
<ul>
<li><a href="#getCurrentMediaItemIndex()">media item index</a>: The index in the playlist.
<li><a href="#isPlayingAd()">ad insertion</a>: Whether an inserted ad is playing and which
<a href="#getCurrentAdGroupIndex()">ad group index</a> and <a href="#getCurrentAdIndexInAdGroup()">ad index in the group</a> it belongs to
<li><a href="#getCurrentPosition()">current position</a>: The current position of the
playback. This is the same as the <a href="#getContentPosition()">content position</a>
unless an ad is playing, where this indicates the position in the inserted ad.
</ul>
</ul>
<p>Note that there are no callbacks for normal playback progression, only for <a href="Player.Listener.html#onMediaItemTransition(com.google.android.exoplayer2.MediaItem,@com.google.android.exoplayer2.Player.MediaItemTransitionReasonint)">transitions between media items</a> and other <a href="Player.Listener.html#onPositionDiscontinuity(@com.google.android.exoplayer2.Player.DiscontinuityReasonint)">position discontinuities</a>. Code that needs to monitor playback
progress (for example, an UI progress bar) should query the current position in appropriate
intervals.
<h2>Implementing the Player interface</h2>
<p>Implementing the Player interface is complex, as the interface includes many convenience
methods that need to provide a consistent state and behavior, requires correct handling of
listeners and available commands, and expects immediate state changes even if methods are
internally handled asynchronously. For this reason, implementations are advised to inherit <a href="SimpleBasePlayer.html" title="class in com.google.android.exoplayer2"><code>SimpleBasePlayer</code></a> that handles all of these complexities and provides a simpler integration point
for implementors of the interface.</div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary">
<caption><span>Nested Classes</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Interface</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.Command.html" title="annotation in com.google.android.exoplayer2">Player.Command</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Commands that indicate which method calls are currently permitted on a particular <code>
Player</code> instance.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.Commands.html" title="class in com.google.android.exoplayer2">Player.Commands</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">A set of <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2">commands</a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.DiscontinuityReason.html" title="annotation in com.google.android.exoplayer2">Player.DiscontinuityReason</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Reasons for position discontinuities.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.Event.html" title="annotation in com.google.android.exoplayer2">Player.Event</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Events that can be reported via <a href="Player.Listener.html#onEvents(com.google.android.exoplayer2.Player,com.google.android.exoplayer2.Player.Events)"><code>Player.Listener.onEvents(Player, Events)</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.Events.html" title="class in com.google.android.exoplayer2">Player.Events</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">A set of <a href="Player.Event.html" title="annotation in com.google.android.exoplayer2">events</a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.Listener.html" title="interface in com.google.android.exoplayer2">Player.Listener</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Listener for changes in a <a href="Player.html" title="interface in com.google.android.exoplayer2"><code>Player</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.MediaItemTransitionReason.html" title="annotation in com.google.android.exoplayer2">Player.MediaItemTransitionReason</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Reasons for media item transitions.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.PlaybackSuppressionReason.html" title="annotation in com.google.android.exoplayer2">Player.PlaybackSuppressionReason</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Reason why playback is suppressed even though <a href="#getPlayWhenReady()"><code>getPlayWhenReady()</code></a> is <code>true</code>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.PlayWhenReadyChangeReason.html" title="annotation in com.google.android.exoplayer2">Player.PlayWhenReadyChangeReason</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Reasons for <a href="#getPlayWhenReady()"><code>playWhenReady</code></a> changes.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static class&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.PositionInfo.html" title="class in com.google.android.exoplayer2">Player.PositionInfo</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Position info describing a playback position involved in a discontinuity.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2">Player.RepeatMode</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Repeat modes for playback.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.State.html" title="annotation in com.google.android.exoplayer2">Player.State</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback state.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static interface&nbsp;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="Player.TimelineChangeReason.html" title="annotation in com.google.android.exoplayer2">Player.TimelineChangeReason</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Reasons for timeline changes.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- =========== FIELD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Field</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_ADJUST_DEVICE_VOLUME">COMMAND_ADJUST_DEVICE_VOLUME</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS"><code>COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS</code></a> instead.</div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS">COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to increase and decrease the device volume and mute it with volume flags.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_CHANGE_MEDIA_ITEMS">COMMAND_CHANGE_MEDIA_ITEMS</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to change the <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a> in the playlist.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_GET_AUDIO_ATTRIBUTES">COMMAND_GET_AUDIO_ATTRIBUTES</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the player current <a href="audio/AudioAttributes.html" title="class in com.google.android.exoplayer2.audio"><code>AudioAttributes</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_GET_CURRENT_MEDIA_ITEM">COMMAND_GET_CURRENT_MEDIA_ITEM</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get information about the currently playing <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_GET_DEVICE_VOLUME">COMMAND_GET_DEVICE_VOLUME</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the device volume and whether it is muted.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_GET_MEDIA_ITEMS_METADATA">COMMAND_GET_MEDIA_ITEMS_METADATA</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_GET_METADATA"><code>COMMAND_GET_METADATA</code></a> instead.</div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_GET_METADATA">COMMAND_GET_METADATA</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get metadata related to the playlist and current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_GET_TEXT">COMMAND_GET_TEXT</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the text that should currently be displayed by the player.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_GET_TIMELINE">COMMAND_GET_TIMELINE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the information about the current timeline.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_GET_TRACKS">COMMAND_GET_TRACKS</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get details of the current track selection.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_GET_VOLUME">COMMAND_GET_VOLUME</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the player volume.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_INVALID">COMMAND_INVALID</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Represents an invalid <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2"><code>Player.Command</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_PLAY_PAUSE">COMMAND_PLAY_PAUSE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to start, pause or resume playback.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_PREPARE">COMMAND_PREPARE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to prepare the player.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_RELEASE">COMMAND_RELEASE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to release the player.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_BACK">COMMAND_SEEK_BACK</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek back by a fixed increment inside the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_FORWARD">COMMAND_SEEK_FORWARD</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek forward by a fixed increment inside the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM">COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek anywhere inside the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_IN_CURRENT_WINDOW">COMMAND_SEEK_IN_CURRENT_WINDOW</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM"><code>COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM</code></a> instead.</div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_TO_DEFAULT_POSITION">COMMAND_SEEK_TO_DEFAULT_POSITION</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to the default position of the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_TO_MEDIA_ITEM">COMMAND_SEEK_TO_MEDIA_ITEM</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek anywhere in any <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_TO_NEXT">COMMAND_SEEK_TO_NEXT</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to a later position in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> or the default position of
the next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM">COMMAND_SEEK_TO_NEXT_MEDIA_ITEM</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to the default position of the next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_TO_NEXT_WINDOW">COMMAND_SEEK_TO_NEXT_WINDOW</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM"><code>COMMAND_SEEK_TO_NEXT_MEDIA_ITEM</code></a> instead.</div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_TO_PREVIOUS">COMMAND_SEEK_TO_PREVIOUS</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to an earlier position in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> or the default position
of the previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM">COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to the default position of the previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_TO_PREVIOUS_WINDOW">COMMAND_SEEK_TO_PREVIOUS_WINDOW</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM"><code>COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM</code></a> instead.</div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SEEK_TO_WINDOW">COMMAND_SEEK_TO_WINDOW</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SEEK_TO_MEDIA_ITEM"><code>COMMAND_SEEK_TO_MEDIA_ITEM</code></a> instead.</div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_DEVICE_VOLUME">COMMAND_SET_DEVICE_VOLUME</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS"><code>COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS</code></a> instead.</div>
</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS">COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the device volume with volume flags.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_MEDIA_ITEM">COMMAND_SET_MEDIA_ITEM</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set a <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_MEDIA_ITEMS_METADATA">COMMAND_SET_MEDIA_ITEMS_METADATA</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SET_PLAYLIST_METADATA"><code>COMMAND_SET_PLAYLIST_METADATA</code></a> instead.</div>
</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_PLAYLIST_METADATA">COMMAND_SET_PLAYLIST_METADATA</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the playlist metadata.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_REPEAT_MODE">COMMAND_SET_REPEAT_MODE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the repeat mode.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_SHUFFLE_MODE">COMMAND_SET_SHUFFLE_MODE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to enable shuffling.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_SPEED_AND_PITCH">COMMAND_SET_SPEED_AND_PITCH</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the playback speed and pitch.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_TRACK_SELECTION_PARAMETERS">COMMAND_SET_TRACK_SELECTION_PARAMETERS</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the player's track selection parameters.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_VIDEO_SURFACE">COMMAND_SET_VIDEO_SURFACE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set and clear the surface on which to render the video.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_SET_VOLUME">COMMAND_SET_VOLUME</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the player volume.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#COMMAND_STOP">COMMAND_STOP</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to stop playback.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DISCONTINUITY_REASON_AUTO_TRANSITION">DISCONTINUITY_REASON_AUTO_TRANSITION</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Automatic playback transition from one period in the timeline to the next.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DISCONTINUITY_REASON_INTERNAL">DISCONTINUITY_REASON_INTERNAL</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Discontinuity introduced internally (e.g.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DISCONTINUITY_REASON_REMOVE">DISCONTINUITY_REASON_REMOVE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Discontinuity caused by the removal of the current period from the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DISCONTINUITY_REASON_SEEK">DISCONTINUITY_REASON_SEEK</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seek within the current period or to another period.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DISCONTINUITY_REASON_SEEK_ADJUSTMENT">DISCONTINUITY_REASON_SEEK_ADJUSTMENT</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seek adjustment due to being unable to seek to the requested position or because the seek was
permitted to be inexact.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DISCONTINUITY_REASON_SKIP">DISCONTINUITY_REASON_SKIP</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Discontinuity introduced by a skipped period (for instance a skipped ad).</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_AUDIO_ATTRIBUTES_CHANGED">EVENT_AUDIO_ATTRIBUTES_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getAudioAttributes()"><code>getAudioAttributes()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_AUDIO_SESSION_ID">EVENT_AUDIO_SESSION_ID</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The audio session id was set.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_AVAILABLE_COMMANDS_CHANGED">EVENT_AVAILABLE_COMMANDS_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)"><code>isCommandAvailable(int)</code></a> changed for at least one <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2"><code>Player.Command</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_CUES">EVENT_CUES</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getCurrentCues()"><code>getCurrentCues()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_DEVICE_INFO_CHANGED">EVENT_DEVICE_INFO_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getDeviceInfo()"><code>getDeviceInfo()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_DEVICE_VOLUME_CHANGED">EVENT_DEVICE_VOLUME_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getDeviceVolume()"><code>getDeviceVolume()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_IS_LOADING_CHANGED">EVENT_IS_LOADING_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#isLoading()"><code>isLoading()</code></a> ()} changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_IS_PLAYING_CHANGED">EVENT_IS_PLAYING_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#isPlaying()"><code>isPlaying()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED">EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getMaxSeekToPreviousPosition()"><code>getMaxSeekToPreviousPosition()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_MEDIA_ITEM_TRANSITION">EVENT_MEDIA_ITEM_TRANSITION</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getCurrentMediaItem()"><code>getCurrentMediaItem()</code></a> changed or the player started repeating the current item.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_MEDIA_METADATA_CHANGED">EVENT_MEDIA_METADATA_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getMediaMetadata()"><code>getMediaMetadata()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_METADATA">EVENT_METADATA</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Metadata associated with the current playback time changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_PLAY_WHEN_READY_CHANGED">EVENT_PLAY_WHEN_READY_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlayWhenReady()"><code>getPlayWhenReady()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_PLAYBACK_PARAMETERS_CHANGED">EVENT_PLAYBACK_PARAMETERS_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlaybackParameters()"><code>getPlaybackParameters()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_PLAYBACK_STATE_CHANGED">EVENT_PLAYBACK_STATE_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlaybackState()"><code>getPlaybackState()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED">EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlaybackSuppressionReason()"><code>getPlaybackSuppressionReason()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_PLAYER_ERROR">EVENT_PLAYER_ERROR</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlayerError()"><code>getPlayerError()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_PLAYLIST_METADATA_CHANGED">EVENT_PLAYLIST_METADATA_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlaylistMetadata()"><code>getPlaylistMetadata()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_POSITION_DISCONTINUITY">EVENT_POSITION_DISCONTINUITY</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">A position discontinuity occurred.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_RENDERED_FIRST_FRAME">EVENT_RENDERED_FIRST_FRAME</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">A frame is rendered for the first time since setting the surface, or since the renderer was
reset, or since the stream being rendered was changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_REPEAT_MODE_CHANGED">EVENT_REPEAT_MODE_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getRepeatMode()"><code>getRepeatMode()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_SEEK_BACK_INCREMENT_CHANGED">EVENT_SEEK_BACK_INCREMENT_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getSeekBackIncrement()"><code>getSeekBackIncrement()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_SEEK_FORWARD_INCREMENT_CHANGED">EVENT_SEEK_FORWARD_INCREMENT_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getSeekForwardIncrement()"><code>getSeekForwardIncrement()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_SHUFFLE_MODE_ENABLED_CHANGED">EVENT_SHUFFLE_MODE_ENABLED_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getShuffleModeEnabled()"><code>getShuffleModeEnabled()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_SKIP_SILENCE_ENABLED_CHANGED">EVENT_SKIP_SILENCE_ENABLED_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Skipping silences in the audio stream is enabled or disabled.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_SURFACE_SIZE_CHANGED">EVENT_SURFACE_SIZE_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The size of the surface onto which the video is being rendered changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_TIMELINE_CHANGED">EVENT_TIMELINE_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getCurrentTimeline()"><code>getCurrentTimeline()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_TRACK_SELECTION_PARAMETERS_CHANGED">EVENT_TRACK_SELECTION_PARAMETERS_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getTrackSelectionParameters()"><code>getTrackSelectionParameters()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_TRACKS_CHANGED">EVENT_TRACKS_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getCurrentTracks()"><code>getCurrentTracks()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_VIDEO_SIZE_CHANGED">EVENT_VIDEO_SIZE_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getVideoSize()"><code>getVideoSize()</code></a> changed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#EVENT_VOLUME_CHANGED">EVENT_VOLUME_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getVolume()"><code>getVolume()</code></a> changed.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#MEDIA_ITEM_TRANSITION_REASON_AUTO">MEDIA_ITEM_TRANSITION_REASON_AUTO</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has automatically transitioned to the next media item.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED">MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The current media item has changed because of a change in the playlist.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#MEDIA_ITEM_TRANSITION_REASON_REPEAT">MEDIA_ITEM_TRANSITION_REASON_REPEAT</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The media item has been repeated.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#MEDIA_ITEM_TRANSITION_REASON_SEEK">MEDIA_ITEM_TRANSITION_REASON_SEEK</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">A seek to another media item has occurred.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY">PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been paused to avoid becoming noisy.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS">PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been paused because of a loss of audio focus.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM">PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been paused at the end of a media item.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAY_WHEN_READY_CHANGE_REASON_REMOTE">PLAY_WHEN_READY_CHANGE_REASON_REMOTE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been started or paused because of a remote change.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG">PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been paused because playback has been <a href="#getPlaybackSuppressionReason()">suppressed</a> too long.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST">PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been started or paused by a call to <a href="#setPlayWhenReady(boolean)"><code>setPlayWhenReady(boolean)</code></a>.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAYBACK_SUPPRESSION_REASON_NONE">PLAYBACK_SUPPRESSION_REASON_NONE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback is not suppressed.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS">PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback is suppressed due to transient audio focus loss.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE">PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback is suppressed due to no suitable audio route, such as an attempt to use an internal
speaker instead of bluetooth headphones on Wear OS.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#REPEAT_MODE_ALL">REPEAT_MODE_ALL</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Repeats the entire timeline infinitely.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#REPEAT_MODE_OFF">REPEAT_MODE_OFF</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Normal playback without repetition.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#REPEAT_MODE_ONE">REPEAT_MODE_ONE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Repeats the currently playing <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> infinitely during ongoing playback.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#STATE_BUFFERING">STATE_BUFFERING</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The player is not able to immediately play the media, but is doing work toward being able to do
so.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#STATE_ENDED">STATE_ENDED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The player has finished playing the media.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#STATE_IDLE">STATE_IDLE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The player is idle, meaning it holds only limited resources.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#STATE_READY">STATE_READY</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The player is able to immediately play from its current position.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED">TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Timeline changed as a result of a change of the playlist items or the order of the items.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#TIMELINE_CHANGE_REASON_SOURCE_UPDATE">TIMELINE_CHANGE_REASON_SOURCE_UPDATE</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Timeline changed as a result of a source update (e.g.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
<!-- ========== METHOD SUMMARY =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary">
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd">&nbsp;</span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd">&nbsp;</span></span><span id="t6" class="tableTab"><span><a href="javascript:show(32);">Deprecated Methods</a></span><span class="tabEnd">&nbsp;</span></span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colSecond" scope="col">Method</th>
<th class="colLast" scope="col">Description</th>
</tr>
<tr id="i0" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addListener(com.google.android.exoplayer2.Player.Listener)">addListener</a></span>&#8203;(<a href="Player.Listener.html" title="interface in com.google.android.exoplayer2">Player.Listener</a>&nbsp;listener)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Registers a listener to receive all events from the player.</div>
</td>
</tr>
<tr id="i1" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addMediaItem(int,com.google.android.exoplayer2.MediaItem)">addMediaItem</a></span>&#8203;(int&nbsp;index,
<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Adds a media item at the given index of the playlist.</div>
</td>
</tr>
<tr id="i2" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addMediaItem(com.google.android.exoplayer2.MediaItem)">addMediaItem</a></span>&#8203;(<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Adds a media item to the end of the playlist.</div>
</td>
</tr>
<tr id="i3" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addMediaItems(int,java.util.List)">addMediaItems</a></span>&#8203;(int&nbsp;index,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Adds a list of media items at the given index of the playlist.</div>
</td>
</tr>
<tr id="i4" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#addMediaItems(java.util.List)">addMediaItems</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Adds a list of media items to the end of the playlist.</div>
</td>
</tr>
<tr id="i5" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#canAdvertiseSession()">canAdvertiseSession</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the player can be used to advertise a media session.</div>
</td>
</tr>
<tr id="i6" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearMediaItems()">clearMediaItems</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist.</div>
</td>
</tr>
<tr id="i7" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearVideoSurface()">clearVideoSurface</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears any <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink"><code>Surface</code></a>, <a href="https://developer.android.com/reference/android/view/SurfaceHolder.html?is-external=true" title="class or interface in android.view" class="externalLink"><code>SurfaceHolder</code></a>, <a href="https://developer.android.com/reference/android/view/SurfaceView.html?is-external=true" title="class or interface in android.view" class="externalLink"><code>SurfaceView</code></a> or <a href="https://developer.android.com/reference/android/view/TextureView.html?is-external=true" title="class or interface in android.view" class="externalLink" target="_top"><code>TextureView</code></a>
currently set on the player.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearVideoSurface(android.view.Surface)">clearVideoSurface</a></span>&#8203;(<a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top">Surface</a>&nbsp;surface)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> onto which video is being rendered if it matches the one passed.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearVideoSurfaceHolder(android.view.SurfaceHolder)">clearVideoSurfaceHolder</a></span>&#8203;(<a href="https://developer.android.com/reference/android/view/SurfaceHolder.html" title="class or interface in android.view" class="externalLink" target="_top">SurfaceHolder</a>&nbsp;surfaceHolder)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the <a href="https://developer.android.com/reference/android/view/SurfaceHolder.html" title="class or interface in android.view" class="externalLink"><code>SurfaceHolder</code></a> that holds the <a href="https://developer.android.com/reference/android/view/Surface.html?is-external=true" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> onto which video is being
rendered if it matches the one passed.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearVideoSurfaceView(android.view.SurfaceView)">clearVideoSurfaceView</a></span>&#8203;(<a href="https://developer.android.com/reference/android/view/SurfaceView.html" title="class or interface in android.view" class="externalLink" target="_top">SurfaceView</a>&nbsp;surfaceView)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the <a href="https://developer.android.com/reference/android/view/SurfaceView.html" title="class or interface in android.view" class="externalLink" target="_top"><code>SurfaceView</code></a> onto which video is being rendered if it matches the one passed.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#clearVideoTextureView(android.view.TextureView)">clearVideoTextureView</a></span>&#8203;(<a href="https://developer.android.com/reference/android/view/TextureView.html" title="class or interface in android.view" class="externalLink" target="_top">TextureView</a>&nbsp;textureView)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the <a href="https://developer.android.com/reference/android/view/TextureView.html" title="class or interface in android.view" class="externalLink" target="_top"><code>TextureView</code></a> onto which video is being rendered if it matches the one passed.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#decreaseDeviceVolume()">decreaseDeviceVolume</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#decreaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)"><code>decreaseDeviceVolume(int)</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i13" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#decreaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)">decreaseDeviceVolume</a></span>&#8203;(@com.google.android.exoplayer2.C.VolumeFlags int&nbsp;flags)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Decreases the volume of the device.</div>
</td>
</tr>
<tr id="i14" class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/os/Looper.html" title="class or interface in android.os" class="externalLink" target="_top">Looper</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getApplicationLooper()">getApplicationLooper</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the <a href="https://developer.android.com/reference/android/os/Looper.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Looper</code></a> associated with the application thread that's used to access the
player and on which player events are received.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code><a href="audio/AudioAttributes.html" title="class in com.google.android.exoplayer2.audio">AudioAttributes</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAudioAttributes()">getAudioAttributes</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the attributes for audio playback.</div>
</td>
</tr>
<tr id="i16" class="altColor">
<td class="colFirst"><code><a href="Player.Commands.html" title="class in com.google.android.exoplayer2">Player.Commands</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getAvailableCommands()">getAvailableCommands</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the player's currently available <a href="Player.Commands.html" title="class in com.google.android.exoplayer2"><code>Player.Commands</code></a>.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBufferedPercentage()">getBufferedPercentage</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns an estimate of the percentage in the current content or ad up to which data is
buffered, or 0 if no estimate is available.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getBufferedPosition()">getBufferedPosition</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns an estimate of the position in the current content or ad up to which data is buffered,
in milliseconds.</div>
</td>
</tr>
<tr id="i19" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getContentBufferedPosition()">getContentBufferedPosition</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns <code>true</code>, returns an estimate of the content position in
the current content up to which data is buffered, in milliseconds.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getContentDuration()">getContentDuration</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns <code>true</code>, returns the duration of the current content in
milliseconds, or <a href="C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if the duration is not known.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getContentPosition()">getContentPosition</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns <code>true</code>, returns the content position that will be
played once all ads in the ad group have finished playing, in milliseconds.</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentAdGroupIndex()">getCurrentAdGroupIndex</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns true, returns the index of the ad group in the period
currently being played.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentAdIndexInAdGroup()">getCurrentAdIndexInAdGroup</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns true, returns the index of the ad in its ad group.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="text/CueGroup.html" title="class in com.google.android.exoplayer2.text">CueGroup</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentCues()">getCurrentCues</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current <a href="text/CueGroup.html" title="class in com.google.android.exoplayer2.text"><code>CueGroup</code></a>.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentLiveOffset()">getCurrentLiveOffset</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the offset of the current playback position from the live edge in milliseconds, or
<a href="C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> <a href="#isCurrentMediaItemLive()"><code>isCurrentMediaItemLive()</code></a> isn't
live} or the offset is unknown.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentManifest()">getCurrentManifest</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current manifest.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code><a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentMediaItem()">getCurrentMediaItem</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the currently playing <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentMediaItemIndex()">getCurrentMediaItemIndex</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the index of the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> in the <a href="#getCurrentTimeline()"><code>timeline</code></a>, or the prospective index if the <a href="#getCurrentTimeline()"><code>current timeline</code></a> is
empty.</div>
</td>
</tr>
<tr id="i29" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentPeriodIndex()">getCurrentPeriodIndex</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the index of the period currently being played.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentPosition()">getCurrentPosition</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the playback position in the current content or ad, in milliseconds, or the prospective
position in milliseconds if the <a href="#getCurrentTimeline()"><code>current timeline</code></a> is empty.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code><a href="Timeline.html" title="class in com.google.android.exoplayer2">Timeline</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentTimeline()">getCurrentTimeline</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="Tracks.html" title="class in com.google.android.exoplayer2">Tracks</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentTracks()">getCurrentTracks</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current tracks.</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getCurrentWindowIndex()">getCurrentWindowIndex</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#getCurrentMediaItemIndex()"><code>getCurrentMediaItemIndex()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code><a href="DeviceInfo.html" title="class in com.google.android.exoplayer2">DeviceInfo</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDeviceInfo()">getDeviceInfo</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets the device information.</div>
</td>
</tr>
<tr id="i35" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDeviceVolume()">getDeviceVolume</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets the current volume of the device.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDuration()">getDuration</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the duration of the current content or ad in milliseconds, or <a href="C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if
the duration is not known.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMaxSeekToPreviousPosition()">getMaxSeekToPreviousPosition</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the maximum position for which <a href="#seekToPrevious()"><code>seekToPrevious()</code></a> seeks to the previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>, in milliseconds.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code><a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMediaItemAt(int)">getMediaItemAt</a></span>&#8203;(int&nbsp;index)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> at the given index.</div>
</td>
</tr>
<tr id="i39" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMediaItemCount()">getMediaItemCount</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the number of <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a> in the playlist.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code><a href="MediaMetadata.html" title="class in com.google.android.exoplayer2">MediaMetadata</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getMediaMetadata()">getMediaMetadata</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current combined <a href="MediaMetadata.html" title="class in com.google.android.exoplayer2"><code>MediaMetadata</code></a>, or <a href="MediaMetadata.html#EMPTY"><code>MediaMetadata.EMPTY</code></a> if not
supported.</div>
</td>
</tr>
<tr id="i41" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNextMediaItemIndex()">getNextMediaItemIndex</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the index of the <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> that will be played if <a href="#seekToNextMediaItem()"><code>seekToNextMediaItem()</code></a> is called, which may depend on the current repeat mode and whether
shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getNextWindowIndex()">getNextWindowIndex</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#getNextMediaItemIndex()"><code>getNextMediaItemIndex()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code><a href="PlaybackParameters.html" title="class in com.google.android.exoplayer2">PlaybackParameters</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlaybackParameters()">getPlaybackParameters</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the currently active playback parameters.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>@com.google.android.exoplayer2.Player.State int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlaybackState()">getPlaybackState</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current <a href="Player.State.html" title="annotation in com.google.android.exoplayer2">playback state</a> of the player.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code>@com.google.android.exoplayer2.Player.PlaybackSuppressionReason int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlaybackSuppressionReason()">getPlaybackSuppressionReason</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the reason why playback is suppressed even though <a href="#getPlayWhenReady()"><code>getPlayWhenReady()</code></a> is <code>
true</code>, or <a href="#PLAYBACK_SUPPRESSION_REASON_NONE"><code>PLAYBACK_SUPPRESSION_REASON_NONE</code></a> if playback is not suppressed.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code><a href="PlaybackException.html" title="class in com.google.android.exoplayer2">PlaybackException</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlayerError()">getPlayerError</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the error that caused playback to fail.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code><a href="MediaMetadata.html" title="class in com.google.android.exoplayer2">MediaMetadata</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlaylistMetadata()">getPlaylistMetadata</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the playlist <a href="MediaMetadata.html" title="class in com.google.android.exoplayer2"><code>MediaMetadata</code></a>, as set by <a href="#setPlaylistMetadata(com.google.android.exoplayer2.MediaMetadata)"><code>setPlaylistMetadata(MediaMetadata)</code></a>, or <a href="MediaMetadata.html#EMPTY"><code>MediaMetadata.EMPTY</code></a> if not supported.</div>
</td>
</tr>
<tr id="i48" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPlayWhenReady()">getPlayWhenReady</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Whether playback will proceed when <a href="#getPlaybackState()"><code>getPlaybackState()</code></a> == <a href="#STATE_READY"><code>STATE_READY</code></a>.</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPreviousMediaItemIndex()">getPreviousMediaItemIndex</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the index of the <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> that will be played if <a href="#seekToPreviousMediaItem()"><code>seekToPreviousMediaItem()</code></a> is called, which may depend on the current repeat mode and whether
shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getPreviousWindowIndex()">getPreviousWindowIndex</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#getPreviousMediaItemIndex()"><code>getPreviousMediaItemIndex()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>@com.google.android.exoplayer2.Player.RepeatMode int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getRepeatMode()">getRepeatMode</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current <a href="Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2"><code>Player.RepeatMode</code></a> used for playback.</div>
</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSeekBackIncrement()">getSeekBackIncrement</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the <a href="#seekBack()"><code>seekBack()</code></a> increment.</div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSeekForwardIncrement()">getSeekForwardIncrement</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the <a href="#seekForward()"><code>seekForward()</code></a> increment.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getShuffleModeEnabled()">getShuffleModeEnabled</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether shuffling of media items is enabled.</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code><a href="util/Size.html" title="class in com.google.android.exoplayer2.util">Size</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getSurfaceSize()">getSurfaceSize</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets the size of the surface on which the video is rendered.</div>
</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTotalBufferedDuration()">getTotalBufferedDuration</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns an estimate of the total buffered duration from the current position, in milliseconds.</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code><a href="trackselection/TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getTrackSelectionParameters()">getTrackSelectionParameters</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the parameters constraining the track selection.</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code><a href="video/VideoSize.html" title="class in com.google.android.exoplayer2.video">VideoSize</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getVideoSize()">getVideoSize</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets the size of the video.</div>
</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>float</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getVolume()">getVolume</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).</div>
</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasNext()">hasNext</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#hasNextMediaItem()"><code>hasNextMediaItem()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasNextMediaItem()">hasNextMediaItem</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether a next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> exists, which may depend on the current repeat mode
and whether shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasNextWindow()">hasNextWindow</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#hasNextMediaItem()"><code>hasNextMediaItem()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasPrevious()">hasPrevious</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#hasPreviousMediaItem()"><code>hasPreviousMediaItem()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasPreviousMediaItem()">hasPreviousMediaItem</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether a previous media item exists, which may depend on the current repeat mode and
whether shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hasPreviousWindow()">hasPreviousWindow</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#hasPreviousMediaItem()"><code>hasPreviousMediaItem()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i66" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#increaseDeviceVolume()">increaseDeviceVolume</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#increaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)"><code>increaseDeviceVolume(int)</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i67" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#increaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)">increaseDeviceVolume</a></span>&#8203;(@com.google.android.exoplayer2.C.VolumeFlags int&nbsp;flags)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Increases the volume of the device.</div>
</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">isCommandAvailable</a></span>&#8203;(@com.google.android.exoplayer2.Player.Command int&nbsp;command)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the provided <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2"><code>Player.Command</code></a> is available.</div>
</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCurrentMediaItemDynamic()">isCurrentMediaItemDynamic</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> is dynamic (may change when the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>
is updated), or <code>false</code> if the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is empty.</div>
</td>
</tr>
<tr id="i70" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCurrentMediaItemLive()">isCurrentMediaItemLive</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> is live, or <code>false</code> if the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>
is empty.</div>
</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCurrentMediaItemSeekable()">isCurrentMediaItemSeekable</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> is seekable, or <code>false</code> if the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is empty.</div>
</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCurrentWindowDynamic()">isCurrentWindowDynamic</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#isCurrentMediaItemDynamic()"><code>isCurrentMediaItemDynamic()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCurrentWindowLive()">isCurrentWindowLive</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#isCurrentMediaItemLive()"><code>isCurrentMediaItemLive()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i74" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isCurrentWindowSeekable()">isCurrentWindowSeekable</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#isCurrentMediaItemSeekable()"><code>isCurrentMediaItemSeekable()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i75" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isDeviceMuted()">isDeviceMuted</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets whether the device is muted or not.</div>
</td>
</tr>
<tr id="i76" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isLoading()">isLoading</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Whether the player is currently loading the source.</div>
</td>
</tr>
<tr id="i77" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isPlaying()">isPlaying</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the player is playing, i.e.</div>
</td>
</tr>
<tr id="i78" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#isPlayingAd()">isPlayingAd</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the player is currently playing an ad.</div>
</td>
</tr>
<tr id="i79" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#moveMediaItem(int,int)">moveMediaItem</a></span>&#8203;(int&nbsp;currentIndex,
int&nbsp;newIndex)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Moves the media item at the current index to the new index.</div>
</td>
</tr>
<tr id="i80" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#moveMediaItems(int,int,int)">moveMediaItems</a></span>&#8203;(int&nbsp;fromIndex,
int&nbsp;toIndex,
int&nbsp;newIndex)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Moves the media item range to the new index.</div>
</td>
</tr>
<tr id="i81" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#next()">next</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#seekToNextMediaItem()"><code>seekToNextMediaItem()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i82" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#pause()">pause</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Pauses playback.</div>
</td>
</tr>
<tr id="i83" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#play()">play</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Resumes playback as soon as <a href="#getPlaybackState()"><code>getPlaybackState()</code></a> == <a href="#STATE_READY"><code>STATE_READY</code></a>.</div>
</td>
</tr>
<tr id="i84" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#prepare()">prepare</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Prepares the player.</div>
</td>
</tr>
<tr id="i85" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#previous()">previous</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#seekToPreviousMediaItem()"><code>seekToPreviousMediaItem()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i86" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#release()">release</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Releases the player.</div>
</td>
</tr>
<tr id="i87" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeListener(com.google.android.exoplayer2.Player.Listener)">removeListener</a></span>&#8203;(<a href="Player.Listener.html" title="interface in com.google.android.exoplayer2">Player.Listener</a>&nbsp;listener)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Unregister a listener registered through <a href="#addListener(com.google.android.exoplayer2.Player.Listener)"><code>addListener(Listener)</code></a>.</div>
</td>
</tr>
<tr id="i88" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeMediaItem(int)">removeMediaItem</a></span>&#8203;(int&nbsp;index)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Removes the media item at the given index of the playlist.</div>
</td>
</tr>
<tr id="i89" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#removeMediaItems(int,int)">removeMediaItems</a></span>&#8203;(int&nbsp;fromIndex,
int&nbsp;toIndex)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Removes a range of media items from the playlist.</div>
</td>
</tr>
<tr id="i90" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#replaceMediaItem(int,com.google.android.exoplayer2.MediaItem)">replaceMediaItem</a></span>&#8203;(int&nbsp;index,
<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Replaces the media item at the given index of the playlist.</div>
</td>
</tr>
<tr id="i91" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#replaceMediaItems(int,int,java.util.List)">replaceMediaItems</a></span>&#8203;(int&nbsp;fromIndex,
int&nbsp;toIndex,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Replaces the media items at the given range of the playlist.</div>
</td>
</tr>
<tr id="i92" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekBack()">seekBack</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks back in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> by <a href="#getSeekBackIncrement()"><code>getSeekBackIncrement()</code></a> milliseconds.</div>
</td>
</tr>
<tr id="i93" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekForward()">seekForward</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks forward in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> by <a href="#getSeekForwardIncrement()"><code>getSeekForwardIncrement()</code></a>
milliseconds.</div>
</td>
</tr>
<tr id="i94" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekTo(int,long)">seekTo</a></span>&#8203;(int&nbsp;mediaItemIndex,
long&nbsp;positionMs)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to a position specified in milliseconds in the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr id="i95" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekTo(long)">seekTo</a></span>&#8203;(long&nbsp;positionMs)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to a position specified in milliseconds in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr id="i96" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekToDefaultPosition()">seekToDefaultPosition</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to the default position associated with the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr id="i97" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekToDefaultPosition(int)">seekToDefaultPosition</a></span>&#8203;(int&nbsp;mediaItemIndex)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to the default position associated with the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr id="i98" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekToNext()">seekToNext</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to a later position in the current or next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> (if available).</div>
</td>
</tr>
<tr id="i99" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekToNextMediaItem()">seekToNextMediaItem</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to the default position of the next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>, which may depend on the current
repeat mode and whether shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i100" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekToNextWindow()">seekToNextWindow</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#seekToNextMediaItem()"><code>seekToNextMediaItem()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i101" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekToPrevious()">seekToPrevious</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to an earlier position in the current or previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> (if available).</div>
</td>
</tr>
<tr id="i102" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekToPreviousMediaItem()">seekToPreviousMediaItem</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to the default position of the previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>, which may depend on the
current repeat mode and whether shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i103" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#seekToPreviousWindow()">seekToPreviousWindow</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#seekToPreviousMediaItem()"><code>seekToPreviousMediaItem()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i104" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDeviceMuted(boolean)">setDeviceMuted</a></span>&#8203;(boolean&nbsp;muted)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#setDeviceMuted(boolean,@com.google.android.exoplayer2.C.VolumeFlagsint)"><code>setDeviceMuted(boolean, int)</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i105" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDeviceMuted(boolean,@com.google.android.exoplayer2.C.VolumeFlagsint)">setDeviceMuted</a></span>&#8203;(boolean&nbsp;muted,
@com.google.android.exoplayer2.C.VolumeFlags int&nbsp;flags)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the mute state of the device.</div>
</td>
</tr>
<tr id="i106" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDeviceVolume(int)">setDeviceVolume</a></span>&#8203;(int&nbsp;volume)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#setDeviceVolume(int,int)"><code>setDeviceVolume(int, int)</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i107" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setDeviceVolume(int,int)">setDeviceVolume</a></span>&#8203;(int&nbsp;volume,
int&nbsp;flags)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the volume of the device with volume flags.</div>
</td>
</tr>
<tr id="i108" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMediaItem(com.google.android.exoplayer2.MediaItem)">setMediaItem</a></span>&#8203;(<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist, adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> and resets the position to the
default position.</div>
</td>
</tr>
<tr id="i109" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMediaItem(com.google.android.exoplayer2.MediaItem,boolean)">setMediaItem</a></span>&#8203;(<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem,
boolean&nbsp;resetPosition)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist and adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr id="i110" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMediaItem(com.google.android.exoplayer2.MediaItem,long)">setMediaItem</a></span>&#8203;(<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem,
long&nbsp;startPositionMs)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist and adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr id="i111" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMediaItems(java.util.List)">setMediaItems</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist, adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a> and resets the
position to the default position.</div>
</td>
</tr>
<tr id="i112" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMediaItems(java.util.List,boolean)">setMediaItems</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems,
boolean&nbsp;resetPosition)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist and adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a>.</div>
</td>
</tr>
<tr id="i113" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMediaItems(java.util.List,int,long)">setMediaItems</a></span>&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems,
int&nbsp;startIndex,
long&nbsp;startPositionMs)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist and adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a>.</div>
</td>
</tr>
<tr id="i114" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPlaybackParameters(com.google.android.exoplayer2.PlaybackParameters)">setPlaybackParameters</a></span>&#8203;(<a href="PlaybackParameters.html" title="class in com.google.android.exoplayer2">PlaybackParameters</a>&nbsp;playbackParameters)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Attempts to set the playback parameters.</div>
</td>
</tr>
<tr id="i115" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPlaybackSpeed(float)">setPlaybackSpeed</a></span>&#8203;(float&nbsp;speed)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Changes the rate at which playback occurs.</div>
</td>
</tr>
<tr id="i116" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPlaylistMetadata(com.google.android.exoplayer2.MediaMetadata)">setPlaylistMetadata</a></span>&#8203;(<a href="MediaMetadata.html" title="class in com.google.android.exoplayer2">MediaMetadata</a>&nbsp;mediaMetadata)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the playlist <a href="MediaMetadata.html" title="class in com.google.android.exoplayer2"><code>MediaMetadata</code></a>.</div>
</td>
</tr>
<tr id="i117" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPlayWhenReady(boolean)">setPlayWhenReady</a></span>&#8203;(boolean&nbsp;playWhenReady)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets whether playback should proceed when <a href="#getPlaybackState()"><code>getPlaybackState()</code></a> == <a href="#STATE_READY"><code>STATE_READY</code></a>.</div>
</td>
</tr>
<tr id="i118" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRepeatMode(@com.google.android.exoplayer2.Player.RepeatModeint)">setRepeatMode</a></span>&#8203;(@com.google.android.exoplayer2.Player.RepeatMode int&nbsp;repeatMode)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2"><code>Player.RepeatMode</code></a> to be used for playback.</div>
</td>
</tr>
<tr id="i119" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setShuffleModeEnabled(boolean)">setShuffleModeEnabled</a></span>&#8203;(boolean&nbsp;shuffleModeEnabled)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets whether shuffling of media items is enabled.</div>
</td>
</tr>
<tr id="i120" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTrackSelectionParameters(com.google.android.exoplayer2.trackselection.TrackSelectionParameters)">setTrackSelectionParameters</a></span>&#8203;(<a href="trackselection/TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a>&nbsp;parameters)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the parameters constraining the track selection.</div>
</td>
</tr>
<tr id="i121" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setVideoSurface(android.view.Surface)">setVideoSurface</a></span>&#8203;(<a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top">Surface</a>&nbsp;surface)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> onto which video will be rendered.</div>
</td>
</tr>
<tr id="i122" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setVideoSurfaceHolder(android.view.SurfaceHolder)">setVideoSurfaceHolder</a></span>&#8203;(<a href="https://developer.android.com/reference/android/view/SurfaceHolder.html" title="class or interface in android.view" class="externalLink" target="_top">SurfaceHolder</a>&nbsp;surfaceHolder)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="https://developer.android.com/reference/android/view/SurfaceHolder.html" title="class or interface in android.view" class="externalLink"><code>SurfaceHolder</code></a> that holds the <a href="https://developer.android.com/reference/android/view/Surface.html?is-external=true" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> onto which video will be
rendered.</div>
</td>
</tr>
<tr id="i123" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setVideoSurfaceView(android.view.SurfaceView)">setVideoSurfaceView</a></span>&#8203;(<a href="https://developer.android.com/reference/android/view/SurfaceView.html" title="class or interface in android.view" class="externalLink" target="_top">SurfaceView</a>&nbsp;surfaceView)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="https://developer.android.com/reference/android/view/SurfaceView.html" title="class or interface in android.view" class="externalLink" target="_top"><code>SurfaceView</code></a> onto which video will be rendered.</div>
</td>
</tr>
<tr id="i124" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setVideoTextureView(android.view.TextureView)">setVideoTextureView</a></span>&#8203;(<a href="https://developer.android.com/reference/android/view/TextureView.html" title="class or interface in android.view" class="externalLink" target="_top">TextureView</a>&nbsp;textureView)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="https://developer.android.com/reference/android/view/TextureView.html" title="class or interface in android.view" class="externalLink" target="_top"><code>TextureView</code></a> onto which video will be rendered.</div>
</td>
</tr>
<tr id="i125" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setVolume(float)">setVolume</a></span>&#8203;(float&nbsp;volume)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal
unchanged), inclusive.</div>
</td>
</tr>
<tr id="i126" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#stop()">stop</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Stops playback without resetting the playlist.</div>
</td>
</tr>
</table>
</li>
</ul>
</section>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a id="STATE_IDLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STATE_IDLE</h4>
<pre>static final&nbsp;int STATE_IDLE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The player is idle, meaning it holds only limited resources. The player must be <a href="#prepare()"><code>prepared</code></a> before it will play the media.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.STATE_IDLE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="STATE_BUFFERING">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STATE_BUFFERING</h4>
<pre>static final&nbsp;int STATE_BUFFERING</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The player is not able to immediately play the media, but is doing work toward being able to do
so. This state typically occurs when the player needs to buffer more data before playback can
start.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.STATE_BUFFERING">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="STATE_READY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STATE_READY</h4>
<pre>static final&nbsp;int STATE_READY</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The player is able to immediately play from its current position. The player will be playing if
<a href="#getPlayWhenReady()"><code>getPlayWhenReady()</code></a> is true, and paused otherwise.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.STATE_READY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="STATE_ENDED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STATE_ENDED</h4>
<pre>static final&nbsp;int STATE_ENDED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The player has finished playing the media.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.STATE_ENDED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST</h4>
<pre>static final&nbsp;int PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been started or paused by a call to <a href="#setPlayWhenReady(boolean)"><code>setPlayWhenReady(boolean)</code></a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS</h4>
<pre>static final&nbsp;int PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been paused because of a loss of audio focus.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY</h4>
<pre>static final&nbsp;int PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been paused to avoid becoming noisy.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAY_WHEN_READY_CHANGE_REASON_REMOTE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAY_WHEN_READY_CHANGE_REASON_REMOTE</h4>
<pre>static final&nbsp;int PLAY_WHEN_READY_CHANGE_REASON_REMOTE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been started or paused because of a remote change.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.PLAY_WHEN_READY_CHANGE_REASON_REMOTE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM</h4>
<pre>static final&nbsp;int PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been paused at the end of a media item.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG</h4>
<pre>static final&nbsp;int PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has been paused because playback has been <a href="#getPlaybackSuppressionReason()">suppressed</a> too long.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAYBACK_SUPPRESSION_REASON_NONE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAYBACK_SUPPRESSION_REASON_NONE</h4>
<pre>static final&nbsp;int PLAYBACK_SUPPRESSION_REASON_NONE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback is not suppressed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.PLAYBACK_SUPPRESSION_REASON_NONE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS</h4>
<pre>static final&nbsp;int PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback is suppressed due to transient audio focus loss.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE</h4>
<pre>static final&nbsp;int PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback is suppressed due to no suitable audio route, such as an attempt to use an internal
speaker instead of bluetooth headphones on Wear OS.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="REPEAT_MODE_OFF">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>REPEAT_MODE_OFF</h4>
<pre>static final&nbsp;int REPEAT_MODE_OFF</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Normal playback without repetition. "Previous" and "Next" actions move to the previous and next
<a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> respectively, and do nothing when there is no previous or next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> to move to.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.REPEAT_MODE_OFF">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="REPEAT_MODE_ONE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>REPEAT_MODE_ONE</h4>
<pre>static final&nbsp;int REPEAT_MODE_ONE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Repeats the currently playing <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> infinitely during ongoing playback. "Previous"
and "Next" actions behave as they do in <a href="#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>, moving to the previous and
next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> respectively, and doing nothing when there is no previous or next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> to move to.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.REPEAT_MODE_ONE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="REPEAT_MODE_ALL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>REPEAT_MODE_ALL</h4>
<pre>static final&nbsp;int REPEAT_MODE_ALL</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Repeats the entire timeline infinitely. "Previous" and "Next" actions behave as they do in
<a href="#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>, but with looping at the ends so that "Previous" when playing the
first <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> will move to the last <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>, and "Next" when playing the
last <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> will move to the first <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.REPEAT_MODE_ALL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="DISCONTINUITY_REASON_AUTO_TRANSITION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DISCONTINUITY_REASON_AUTO_TRANSITION</h4>
<pre>static final&nbsp;int DISCONTINUITY_REASON_AUTO_TRANSITION</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Automatic playback transition from one period in the timeline to the next. The period index may
be the same as it was before the discontinuity in case the current period is repeated.
<p>This reason also indicates an automatic transition from the content period to an inserted ad
period or vice versa. Or a transition caused by another player (e.g. multiple controllers can
control the same playback on a remote device).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.DISCONTINUITY_REASON_AUTO_TRANSITION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="DISCONTINUITY_REASON_SEEK">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DISCONTINUITY_REASON_SEEK</h4>
<pre>static final&nbsp;int DISCONTINUITY_REASON_SEEK</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seek within the current period or to another period.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.DISCONTINUITY_REASON_SEEK">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="DISCONTINUITY_REASON_SEEK_ADJUSTMENT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DISCONTINUITY_REASON_SEEK_ADJUSTMENT</h4>
<pre>static final&nbsp;int DISCONTINUITY_REASON_SEEK_ADJUSTMENT</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seek adjustment due to being unable to seek to the requested position or because the seek was
permitted to be inexact.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.DISCONTINUITY_REASON_SEEK_ADJUSTMENT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="DISCONTINUITY_REASON_SKIP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DISCONTINUITY_REASON_SKIP</h4>
<pre>static final&nbsp;int DISCONTINUITY_REASON_SKIP</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Discontinuity introduced by a skipped period (for instance a skipped ad).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.DISCONTINUITY_REASON_SKIP">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="DISCONTINUITY_REASON_REMOVE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DISCONTINUITY_REASON_REMOVE</h4>
<pre>static final&nbsp;int DISCONTINUITY_REASON_REMOVE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Discontinuity caused by the removal of the current period from the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.DISCONTINUITY_REASON_REMOVE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="DISCONTINUITY_REASON_INTERNAL">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DISCONTINUITY_REASON_INTERNAL</h4>
<pre>static final&nbsp;int DISCONTINUITY_REASON_INTERNAL</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Discontinuity introduced internally (e.g. by the source).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.DISCONTINUITY_REASON_INTERNAL">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED</h4>
<pre>static final&nbsp;int TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Timeline changed as a result of a change of the playlist items or the order of the items.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="TIMELINE_CHANGE_REASON_SOURCE_UPDATE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TIMELINE_CHANGE_REASON_SOURCE_UPDATE</h4>
<pre>static final&nbsp;int TIMELINE_CHANGE_REASON_SOURCE_UPDATE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Timeline changed as a result of a source update (e.g. result of a dynamic update by the played
media).
<p>This reason also indicates a change caused by another player (e.g. multiple controllers can
control the same playback on the remote device).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.TIMELINE_CHANGE_REASON_SOURCE_UPDATE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="MEDIA_ITEM_TRANSITION_REASON_REPEAT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MEDIA_ITEM_TRANSITION_REASON_REPEAT</h4>
<pre>static final&nbsp;int MEDIA_ITEM_TRANSITION_REASON_REPEAT</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The media item has been repeated.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.MEDIA_ITEM_TRANSITION_REASON_REPEAT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="MEDIA_ITEM_TRANSITION_REASON_AUTO">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MEDIA_ITEM_TRANSITION_REASON_AUTO</h4>
<pre>static final&nbsp;int MEDIA_ITEM_TRANSITION_REASON_AUTO</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Playback has automatically transitioned to the next media item.
<p>This reason also indicates a transition caused by another player (e.g. multiple controllers
can control the same playback on a remote device).</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.MEDIA_ITEM_TRANSITION_REASON_AUTO">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="MEDIA_ITEM_TRANSITION_REASON_SEEK">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MEDIA_ITEM_TRANSITION_REASON_SEEK</h4>
<pre>static final&nbsp;int MEDIA_ITEM_TRANSITION_REASON_SEEK</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">A seek to another media item has occurred.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.MEDIA_ITEM_TRANSITION_REASON_SEEK">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED</h4>
<pre>static final&nbsp;int MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The current media item has changed because of a change in the playlist. This can either be if
the media item previously being played has been removed, or when the playlist becomes non-empty
after being empty.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_TIMELINE_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_TIMELINE_CHANGED</h4>
<pre>static final&nbsp;int EVENT_TIMELINE_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getCurrentTimeline()"><code>getCurrentTimeline()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_TIMELINE_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_MEDIA_ITEM_TRANSITION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_MEDIA_ITEM_TRANSITION</h4>
<pre>static final&nbsp;int EVENT_MEDIA_ITEM_TRANSITION</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getCurrentMediaItem()"><code>getCurrentMediaItem()</code></a> changed or the player started repeating the current item.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_MEDIA_ITEM_TRANSITION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_TRACKS_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_TRACKS_CHANGED</h4>
<pre>static final&nbsp;int EVENT_TRACKS_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getCurrentTracks()"><code>getCurrentTracks()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_TRACKS_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_IS_LOADING_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_IS_LOADING_CHANGED</h4>
<pre>static final&nbsp;int EVENT_IS_LOADING_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#isLoading()"><code>isLoading()</code></a> ()} changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_IS_LOADING_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_PLAYBACK_STATE_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_PLAYBACK_STATE_CHANGED</h4>
<pre>static final&nbsp;int EVENT_PLAYBACK_STATE_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlaybackState()"><code>getPlaybackState()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_PLAYBACK_STATE_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_PLAY_WHEN_READY_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_PLAY_WHEN_READY_CHANGED</h4>
<pre>static final&nbsp;int EVENT_PLAY_WHEN_READY_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlayWhenReady()"><code>getPlayWhenReady()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_PLAY_WHEN_READY_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED</h4>
<pre>static final&nbsp;int EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlaybackSuppressionReason()"><code>getPlaybackSuppressionReason()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_IS_PLAYING_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_IS_PLAYING_CHANGED</h4>
<pre>static final&nbsp;int EVENT_IS_PLAYING_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#isPlaying()"><code>isPlaying()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_IS_PLAYING_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_REPEAT_MODE_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_REPEAT_MODE_CHANGED</h4>
<pre>static final&nbsp;int EVENT_REPEAT_MODE_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getRepeatMode()"><code>getRepeatMode()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_REPEAT_MODE_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_SHUFFLE_MODE_ENABLED_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_SHUFFLE_MODE_ENABLED_CHANGED</h4>
<pre>static final&nbsp;int EVENT_SHUFFLE_MODE_ENABLED_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getShuffleModeEnabled()"><code>getShuffleModeEnabled()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_SHUFFLE_MODE_ENABLED_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_PLAYER_ERROR">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_PLAYER_ERROR</h4>
<pre>static final&nbsp;int EVENT_PLAYER_ERROR</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlayerError()"><code>getPlayerError()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_PLAYER_ERROR">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_POSITION_DISCONTINUITY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_POSITION_DISCONTINUITY</h4>
<pre>static final&nbsp;int EVENT_POSITION_DISCONTINUITY</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">A position discontinuity occurred. See <a href="Player.Listener.html#onPositionDiscontinuity(com.google.android.exoplayer2.Player.PositionInfo,com.google.android.exoplayer2.Player.PositionInfo,@com.google.android.exoplayer2.Player.DiscontinuityReasonint)"><code>Player.Listener.onPositionDiscontinuity(PositionInfo,
PositionInfo, int)</code></a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_POSITION_DISCONTINUITY">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_PLAYBACK_PARAMETERS_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_PLAYBACK_PARAMETERS_CHANGED</h4>
<pre>static final&nbsp;int EVENT_PLAYBACK_PARAMETERS_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlaybackParameters()"><code>getPlaybackParameters()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_PLAYBACK_PARAMETERS_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_AVAILABLE_COMMANDS_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_AVAILABLE_COMMANDS_CHANGED</h4>
<pre>static final&nbsp;int EVENT_AVAILABLE_COMMANDS_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)"><code>isCommandAvailable(int)</code></a> changed for at least one <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2"><code>Player.Command</code></a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_AVAILABLE_COMMANDS_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_MEDIA_METADATA_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_MEDIA_METADATA_CHANGED</h4>
<pre>static final&nbsp;int EVENT_MEDIA_METADATA_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getMediaMetadata()"><code>getMediaMetadata()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_MEDIA_METADATA_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_PLAYLIST_METADATA_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_PLAYLIST_METADATA_CHANGED</h4>
<pre>static final&nbsp;int EVENT_PLAYLIST_METADATA_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getPlaylistMetadata()"><code>getPlaylistMetadata()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_PLAYLIST_METADATA_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_SEEK_BACK_INCREMENT_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_SEEK_BACK_INCREMENT_CHANGED</h4>
<pre>static final&nbsp;int EVENT_SEEK_BACK_INCREMENT_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getSeekBackIncrement()"><code>getSeekBackIncrement()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_SEEK_BACK_INCREMENT_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_SEEK_FORWARD_INCREMENT_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_SEEK_FORWARD_INCREMENT_CHANGED</h4>
<pre>static final&nbsp;int EVENT_SEEK_FORWARD_INCREMENT_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getSeekForwardIncrement()"><code>getSeekForwardIncrement()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_SEEK_FORWARD_INCREMENT_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED</h4>
<pre>static final&nbsp;int EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getMaxSeekToPreviousPosition()"><code>getMaxSeekToPreviousPosition()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_TRACK_SELECTION_PARAMETERS_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_TRACK_SELECTION_PARAMETERS_CHANGED</h4>
<pre>static final&nbsp;int EVENT_TRACK_SELECTION_PARAMETERS_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getTrackSelectionParameters()"><code>getTrackSelectionParameters()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_TRACK_SELECTION_PARAMETERS_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_AUDIO_ATTRIBUTES_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_AUDIO_ATTRIBUTES_CHANGED</h4>
<pre>static final&nbsp;int EVENT_AUDIO_ATTRIBUTES_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getAudioAttributes()"><code>getAudioAttributes()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_AUDIO_ATTRIBUTES_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_AUDIO_SESSION_ID">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_AUDIO_SESSION_ID</h4>
<pre>static final&nbsp;int EVENT_AUDIO_SESSION_ID</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The audio session id was set.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_AUDIO_SESSION_ID">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_VOLUME_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_VOLUME_CHANGED</h4>
<pre>static final&nbsp;int EVENT_VOLUME_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getVolume()"><code>getVolume()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_VOLUME_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_SKIP_SILENCE_ENABLED_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_SKIP_SILENCE_ENABLED_CHANGED</h4>
<pre>static final&nbsp;int EVENT_SKIP_SILENCE_ENABLED_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Skipping silences in the audio stream is enabled or disabled.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_SKIP_SILENCE_ENABLED_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_SURFACE_SIZE_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_SURFACE_SIZE_CHANGED</h4>
<pre>static final&nbsp;int EVENT_SURFACE_SIZE_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">The size of the surface onto which the video is being rendered changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_SURFACE_SIZE_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_VIDEO_SIZE_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_VIDEO_SIZE_CHANGED</h4>
<pre>static final&nbsp;int EVENT_VIDEO_SIZE_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getVideoSize()"><code>getVideoSize()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_VIDEO_SIZE_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_RENDERED_FIRST_FRAME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_RENDERED_FIRST_FRAME</h4>
<pre>static final&nbsp;int EVENT_RENDERED_FIRST_FRAME</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">A frame is rendered for the first time since setting the surface, or since the renderer was
reset, or since the stream being rendered was changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_RENDERED_FIRST_FRAME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_CUES">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_CUES</h4>
<pre>static final&nbsp;int EVENT_CUES</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getCurrentCues()"><code>getCurrentCues()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_CUES">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_METADATA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_METADATA</h4>
<pre>static final&nbsp;int EVENT_METADATA</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Metadata associated with the current playback time changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_METADATA">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_DEVICE_INFO_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_DEVICE_INFO_CHANGED</h4>
<pre>static final&nbsp;int EVENT_DEVICE_INFO_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getDeviceInfo()"><code>getDeviceInfo()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_DEVICE_INFO_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="EVENT_DEVICE_VOLUME_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_DEVICE_VOLUME_CHANGED</h4>
<pre>static final&nbsp;int EVENT_DEVICE_VOLUME_CHANGED</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block"><a href="#getDeviceVolume()"><code>getDeviceVolume()</code></a> changed.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.EVENT_DEVICE_VOLUME_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_PLAY_PAUSE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_PLAY_PAUSE</h4>
<pre>static final&nbsp;int COMMAND_PLAY_PAUSE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to start, pause or resume playback.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#play()"><code>play()</code></a>
<li><a href="#pause()"><code>pause()</code></a>
<li><a href="#setPlayWhenReady(boolean)"><code>setPlayWhenReady(boolean)</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_PLAY_PAUSE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_PREPARE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_PREPARE</h4>
<pre>static final&nbsp;int COMMAND_PREPARE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to prepare the player.
<p>The <a href="#prepare()"><code>prepare()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_PREPARE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_STOP">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_STOP</h4>
<pre>static final&nbsp;int COMMAND_STOP</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to stop playback.
<p>The <a href="#stop()"><code>stop()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_STOP">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_TO_DEFAULT_POSITION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_TO_DEFAULT_POSITION</h4>
<pre>static final&nbsp;int COMMAND_SEEK_TO_DEFAULT_POSITION</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to the default position of the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The <a href="#seekToDefaultPosition()"><code>seekToDefaultPosition()</code></a> method must only be called if this command is
<a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_TO_DEFAULT_POSITION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM</h4>
<pre>static final&nbsp;int COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek anywhere inside the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The <a href="#seekTo(long)"><code>seekTo(long)</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_IN_CURRENT_WINDOW">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_IN_CURRENT_WINDOW</h4>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
static final&nbsp;int COMMAND_SEEK_IN_CURRENT_WINDOW</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM"><code>COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM</code></a> instead.</div>
</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_IN_CURRENT_WINDOW">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM</h4>
<pre>static final&nbsp;int COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to the default position of the previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The <a href="#seekToPreviousMediaItem()"><code>seekToPreviousMediaItem()</code></a> method must only be called if this command is
<a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_TO_PREVIOUS_WINDOW">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_TO_PREVIOUS_WINDOW</h4>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
static final&nbsp;int COMMAND_SEEK_TO_PREVIOUS_WINDOW</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM"><code>COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM</code></a> instead.</div>
</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_TO_PREVIOUS_WINDOW">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_TO_PREVIOUS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_TO_PREVIOUS</h4>
<pre>static final&nbsp;int COMMAND_SEEK_TO_PREVIOUS</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to an earlier position in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> or the default position
of the previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The <a href="#seekToPrevious()"><code>seekToPrevious()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_TO_PREVIOUS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_TO_NEXT_MEDIA_ITEM">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_TO_NEXT_MEDIA_ITEM</h4>
<pre>static final&nbsp;int COMMAND_SEEK_TO_NEXT_MEDIA_ITEM</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to the default position of the next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The <a href="#seekToNextMediaItem()"><code>seekToNextMediaItem()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_TO_NEXT_MEDIA_ITEM">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_TO_NEXT_WINDOW">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_TO_NEXT_WINDOW</h4>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
static final&nbsp;int COMMAND_SEEK_TO_NEXT_WINDOW</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM"><code>COMMAND_SEEK_TO_NEXT_MEDIA_ITEM</code></a> instead.</div>
</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_TO_NEXT_WINDOW">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_TO_NEXT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_TO_NEXT</h4>
<pre>static final&nbsp;int COMMAND_SEEK_TO_NEXT</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek to a later position in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> or the default position of
the next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The <a href="#seekToNext()"><code>seekToNext()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_TO_NEXT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_TO_MEDIA_ITEM">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_TO_MEDIA_ITEM</h4>
<pre>static final&nbsp;int COMMAND_SEEK_TO_MEDIA_ITEM</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek anywhere in any <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#seekTo(int,long)"><code>seekTo(int, long)</code></a>
<li><a href="#seekToDefaultPosition(int)"><code>seekToDefaultPosition(int)</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_TO_MEDIA_ITEM">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_TO_WINDOW">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_TO_WINDOW</h4>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
static final&nbsp;int COMMAND_SEEK_TO_WINDOW</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SEEK_TO_MEDIA_ITEM"><code>COMMAND_SEEK_TO_MEDIA_ITEM</code></a> instead.</div>
</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_TO_WINDOW">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_BACK">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_BACK</h4>
<pre>static final&nbsp;int COMMAND_SEEK_BACK</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek back by a fixed increment inside the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The <a href="#seekBack()"><code>seekBack()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_BACK">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SEEK_FORWARD">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SEEK_FORWARD</h4>
<pre>static final&nbsp;int COMMAND_SEEK_FORWARD</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to seek forward by a fixed increment inside the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The <a href="#seekForward()"><code>seekForward()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SEEK_FORWARD">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_SPEED_AND_PITCH">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_SPEED_AND_PITCH</h4>
<pre>static final&nbsp;int COMMAND_SET_SPEED_AND_PITCH</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the playback speed and pitch.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#setPlaybackParameters(com.google.android.exoplayer2.PlaybackParameters)"><code>setPlaybackParameters(PlaybackParameters)</code></a>
<li><a href="#setPlaybackSpeed(float)"><code>setPlaybackSpeed(float)</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_SPEED_AND_PITCH">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_SHUFFLE_MODE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_SHUFFLE_MODE</h4>
<pre>static final&nbsp;int COMMAND_SET_SHUFFLE_MODE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to enable shuffling.
<p>The <a href="#setShuffleModeEnabled(boolean)"><code>setShuffleModeEnabled(boolean)</code></a> method must only be called if this command is
<a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_SHUFFLE_MODE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_REPEAT_MODE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_REPEAT_MODE</h4>
<pre>static final&nbsp;int COMMAND_SET_REPEAT_MODE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the repeat mode.
<p>The <a href="#setRepeatMode(@com.google.android.exoplayer2.Player.RepeatModeint)"><code>setRepeatMode(int)</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_REPEAT_MODE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_GET_CURRENT_MEDIA_ITEM">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_GET_CURRENT_MEDIA_ITEM</h4>
<pre>static final&nbsp;int COMMAND_GET_CURRENT_MEDIA_ITEM</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get information about the currently playing <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#getCurrentMediaItem()"><code>getCurrentMediaItem()</code></a>
<li><a href="#isCurrentMediaItemDynamic()"><code>isCurrentMediaItemDynamic()</code></a>
<li><a href="#isCurrentMediaItemLive()"><code>isCurrentMediaItemLive()</code></a>
<li><a href="#isCurrentMediaItemSeekable()"><code>isCurrentMediaItemSeekable()</code></a>
<li><a href="#getCurrentLiveOffset()"><code>getCurrentLiveOffset()</code></a>
<li><a href="#getDuration()"><code>getDuration()</code></a>
<li><a href="#getCurrentPosition()"><code>getCurrentPosition()</code></a>
<li><a href="#getBufferedPosition()"><code>getBufferedPosition()</code></a>
<li><a href="#getContentDuration()"><code>getContentDuration()</code></a>
<li><a href="#getContentPosition()"><code>getContentPosition()</code></a>
<li><a href="#getContentBufferedPosition()"><code>getContentBufferedPosition()</code></a>
<li><a href="#getTotalBufferedDuration()"><code>getTotalBufferedDuration()</code></a>
<li><a href="#isPlayingAd()"><code>isPlayingAd()</code></a>
<li><a href="#getCurrentAdGroupIndex()"><code>getCurrentAdGroupIndex()</code></a>
<li><a href="#getCurrentAdIndexInAdGroup()"><code>getCurrentAdIndexInAdGroup()</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_GET_CURRENT_MEDIA_ITEM">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_GET_TIMELINE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_GET_TIMELINE</h4>
<pre>static final&nbsp;int COMMAND_GET_TIMELINE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the information about the current timeline.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#getCurrentTimeline()"><code>getCurrentTimeline()</code></a>
<li><a href="#getCurrentMediaItemIndex()"><code>getCurrentMediaItemIndex()</code></a>
<li><a href="#getCurrentPeriodIndex()"><code>getCurrentPeriodIndex()</code></a>
<li><a href="#getMediaItemCount()"><code>getMediaItemCount()</code></a>
<li><a href="#getMediaItemAt(int)"><code>getMediaItemAt(int)</code></a>
<li><a href="#getNextMediaItemIndex()"><code>getNextMediaItemIndex()</code></a>
<li><a href="#getPreviousMediaItemIndex()"><code>getPreviousMediaItemIndex()</code></a>
<li><a href="#hasPreviousMediaItem()"><code>hasPreviousMediaItem()</code></a>
<li><a href="#hasNextMediaItem()"><code>hasNextMediaItem()</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_GET_TIMELINE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_GET_MEDIA_ITEMS_METADATA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_GET_MEDIA_ITEMS_METADATA</h4>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
static final&nbsp;int COMMAND_GET_MEDIA_ITEMS_METADATA</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_GET_METADATA"><code>COMMAND_GET_METADATA</code></a> instead.</div>
</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_GET_MEDIA_ITEMS_METADATA">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_GET_METADATA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_GET_METADATA</h4>
<pre>static final&nbsp;int COMMAND_GET_METADATA</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get metadata related to the playlist and current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#getMediaMetadata()"><code>getMediaMetadata()</code></a>
<li><a href="#getPlaylistMetadata()"><code>getPlaylistMetadata()</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_GET_METADATA">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_MEDIA_ITEMS_METADATA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_MEDIA_ITEMS_METADATA</h4>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
static final&nbsp;int COMMAND_SET_MEDIA_ITEMS_METADATA</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SET_PLAYLIST_METADATA"><code>COMMAND_SET_PLAYLIST_METADATA</code></a> instead.</div>
</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_MEDIA_ITEMS_METADATA">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_PLAYLIST_METADATA">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_PLAYLIST_METADATA</h4>
<pre>static final&nbsp;int COMMAND_SET_PLAYLIST_METADATA</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the playlist metadata.
<p>The <a href="#setPlaylistMetadata(com.google.android.exoplayer2.MediaMetadata)"><code>setPlaylistMetadata(MediaMetadata)</code></a> method must only be called if this command
is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_PLAYLIST_METADATA">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_MEDIA_ITEM">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_MEDIA_ITEM</h4>
<pre>static final&nbsp;int COMMAND_SET_MEDIA_ITEM</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set a <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#setMediaItem(com.google.android.exoplayer2.MediaItem)"><code>setMediaItem(MediaItem)</code></a>
<li><a href="#setMediaItem(com.google.android.exoplayer2.MediaItem,boolean)"><code>setMediaItem(MediaItem, boolean)</code></a>
<li><a href="#setMediaItem(com.google.android.exoplayer2.MediaItem,long)"><code>setMediaItem(MediaItem, long)</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_MEDIA_ITEM">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_CHANGE_MEDIA_ITEMS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_CHANGE_MEDIA_ITEMS</h4>
<pre>static final&nbsp;int COMMAND_CHANGE_MEDIA_ITEMS</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to change the <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a> in the playlist.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#addMediaItem(com.google.android.exoplayer2.MediaItem)"><code>addMediaItem(MediaItem)</code></a>
<li><a href="#addMediaItem(int,com.google.android.exoplayer2.MediaItem)"><code>addMediaItem(int, MediaItem)</code></a>
<li><a href="#addMediaItems(java.util.List)"><code>addMediaItems(List)</code></a>
<li><a href="#addMediaItems(int,java.util.List)"><code>addMediaItems(int, List)</code></a>
<li><a href="#clearMediaItems()"><code>clearMediaItems()</code></a>
<li><a href="#moveMediaItem(int,int)"><code>moveMediaItem(int, int)</code></a>
<li><a href="#moveMediaItems(int,int,int)"><code>moveMediaItems(int, int, int)</code></a>
<li><a href="#removeMediaItem(int)"><code>removeMediaItem(int)</code></a>
<li><a href="#removeMediaItems(int,int)"><code>removeMediaItems(int, int)</code></a>
<li><a href="#setMediaItems(java.util.List)"><code>setMediaItems(List)</code></a>
<li><a href="#setMediaItems(java.util.List,boolean)"><code>setMediaItems(List, boolean)</code></a>
<li><a href="#setMediaItems(java.util.List,int,long)"><code>setMediaItems(List, int, long)</code></a>
<li><a href="#replaceMediaItem(int,com.google.android.exoplayer2.MediaItem)"><code>replaceMediaItem(int, MediaItem)</code></a>
<li><a href="#replaceMediaItems(int,int,java.util.List)"><code>replaceMediaItems(int, int, List)</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_CHANGE_MEDIA_ITEMS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_GET_AUDIO_ATTRIBUTES">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_GET_AUDIO_ATTRIBUTES</h4>
<pre>static final&nbsp;int COMMAND_GET_AUDIO_ATTRIBUTES</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the player current <a href="audio/AudioAttributes.html" title="class in com.google.android.exoplayer2.audio"><code>AudioAttributes</code></a>.
<p>The <a href="#getAudioAttributes()"><code>getAudioAttributes()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_GET_AUDIO_ATTRIBUTES">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_GET_VOLUME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_GET_VOLUME</h4>
<pre>static final&nbsp;int COMMAND_GET_VOLUME</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the player volume.
<p>The <a href="#getVolume()"><code>getVolume()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_GET_VOLUME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_GET_DEVICE_VOLUME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_GET_DEVICE_VOLUME</h4>
<pre>static final&nbsp;int COMMAND_GET_DEVICE_VOLUME</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the device volume and whether it is muted.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#getDeviceVolume()"><code>getDeviceVolume()</code></a>
<li><a href="#isDeviceMuted()"><code>isDeviceMuted()</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_GET_DEVICE_VOLUME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_VOLUME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_VOLUME</h4>
<pre>static final&nbsp;int COMMAND_SET_VOLUME</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the player volume.
<p>The <a href="#setVolume(float)"><code>setVolume(float)</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_VOLUME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_DEVICE_VOLUME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_DEVICE_VOLUME</h4>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
static final&nbsp;int COMMAND_SET_DEVICE_VOLUME</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS"><code>COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS</code></a> instead.</div>
</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_DEVICE_VOLUME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS</h4>
<pre>static final&nbsp;int COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the device volume with volume flags.
<p>The <a href="#setDeviceVolume(int,int)"><code>setDeviceVolume(int, int)</code></a> method must only be called if this command is
<a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_ADJUST_DEVICE_VOLUME">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_ADJUST_DEVICE_VOLUME</h4>
<pre><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
static final&nbsp;int COMMAND_ADJUST_DEVICE_VOLUME</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS"><code>COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS</code></a> instead.</div>
</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_ADJUST_DEVICE_VOLUME">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS</h4>
<pre>static final&nbsp;int COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to increase and decrease the device volume and mute it with volume flags.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#increaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)"><code>increaseDeviceVolume(int)</code></a>
<li><a href="#decreaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)"><code>decreaseDeviceVolume(int)</code></a>
<li><a href="#setDeviceMuted(boolean,@com.google.android.exoplayer2.C.VolumeFlagsint)"><code>setDeviceMuted(boolean, int)</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_VIDEO_SURFACE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_VIDEO_SURFACE</h4>
<pre>static final&nbsp;int COMMAND_SET_VIDEO_SURFACE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set and clear the surface on which to render the video.
<p>The following methods must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>:
<ul>
<li><a href="#setVideoSurface(android.view.Surface)"><code>setVideoSurface(Surface)</code></a>
<li><a href="#clearVideoSurface()"><code>clearVideoSurface()</code></a>
<li><a href="#clearVideoSurface(android.view.Surface)"><code>clearVideoSurface(Surface)</code></a>
<li><a href="#setVideoSurfaceHolder(android.view.SurfaceHolder)"><code>setVideoSurfaceHolder(SurfaceHolder)</code></a>
<li><a href="#clearVideoSurfaceHolder(android.view.SurfaceHolder)"><code>clearVideoSurfaceHolder(SurfaceHolder)</code></a>
<li><a href="#setVideoSurfaceView(android.view.SurfaceView)"><code>setVideoSurfaceView(SurfaceView)</code></a>
<li><a href="#clearVideoSurfaceView(android.view.SurfaceView)"><code>clearVideoSurfaceView(SurfaceView)</code></a>
</ul></div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_VIDEO_SURFACE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_GET_TEXT">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_GET_TEXT</h4>
<pre>static final&nbsp;int COMMAND_GET_TEXT</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get the text that should currently be displayed by the player.
<p>The <a href="#getCurrentCues()"><code>getCurrentCues()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_GET_TEXT">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_SET_TRACK_SELECTION_PARAMETERS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_SET_TRACK_SELECTION_PARAMETERS</h4>
<pre>static final&nbsp;int COMMAND_SET_TRACK_SELECTION_PARAMETERS</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to set the player's track selection parameters.
<p>The <a href="#setTrackSelectionParameters(com.google.android.exoplayer2.trackselection.TrackSelectionParameters)"><code>setTrackSelectionParameters(TrackSelectionParameters)</code></a> method must only be
called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_SET_TRACK_SELECTION_PARAMETERS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_GET_TRACKS">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_GET_TRACKS</h4>
<pre>static final&nbsp;int COMMAND_GET_TRACKS</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to get details of the current track selection.
<p>The <a href="#getCurrentTracks()"><code>getCurrentTracks()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_GET_TRACKS">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_RELEASE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>COMMAND_RELEASE</h4>
<pre>static final&nbsp;int COMMAND_RELEASE</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Command to release the player.
<p>The <a href="#release()"><code>release()</code></a> method must only be called if this command is <a href="#isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_RELEASE">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a id="COMMAND_INVALID">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>COMMAND_INVALID</h4>
<pre>static final&nbsp;int COMMAND_INVALID</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Represents an invalid <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2"><code>Player.Command</code></a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.COMMAND_INVALID">Constant Field Values</a></dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
<!-- ============ METHOD DETAIL ========== -->
<section role="region">
<ul class="blockList">
<li class="blockList"><a id="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a id="getApplicationLooper()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getApplicationLooper</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/android/os/Looper.html" title="class or interface in android.os" class="externalLink" target="_top">Looper</a>&nbsp;getApplicationLooper()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the <a href="https://developer.android.com/reference/android/os/Looper.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Looper</code></a> associated with the application thread that's used to access the
player and on which player events are received.
<p>This method can be called from any thread.</div>
</li>
</ul>
<a id="addListener(com.google.android.exoplayer2.Player.Listener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addListener</h4>
<pre class="methodSignature">void&nbsp;addListener&#8203;(<a href="Player.Listener.html" title="interface in com.google.android.exoplayer2">Player.Listener</a>&nbsp;listener)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Registers a listener to receive all events from the player.
<p>The listener's methods will be called on the thread associated with <a href="#getApplicationLooper()"><code>getApplicationLooper()</code></a>.
<p>This method can be called from any thread.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - The listener to register.</dd>
</dl>
</li>
</ul>
<a id="removeListener(com.google.android.exoplayer2.Player.Listener)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeListener</h4>
<pre class="methodSignature">void&nbsp;removeListener&#8203;(<a href="Player.Listener.html" title="interface in com.google.android.exoplayer2">Player.Listener</a>&nbsp;listener)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Unregister a listener registered through <a href="#addListener(com.google.android.exoplayer2.Player.Listener)"><code>addListener(Listener)</code></a>. The listener will no
longer receive events.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - The listener to unregister.</dd>
</dl>
</li>
</ul>
<a id="setMediaItems(java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItems</h4>
<pre class="methodSignature">void&nbsp;setMediaItems&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist, adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a> and resets the
position to the default position.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItems</code> - The new <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a>.</dd>
</dl>
</li>
</ul>
<a id="setMediaItems(java.util.List,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItems</h4>
<pre class="methodSignature">void&nbsp;setMediaItems&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems,
boolean&nbsp;resetPosition)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist and adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a>.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItems</code> - The new <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a>.</dd>
<dd><code>resetPosition</code> - Whether the playback position should be reset to the default position in
the first <a href="Timeline.Window.html" title="class in com.google.android.exoplayer2"><code>Timeline.Window</code></a>. If false, playback will start from the position defined
by <a href="#getCurrentMediaItemIndex()"><code>getCurrentMediaItemIndex()</code></a> and <a href="#getCurrentPosition()"><code>getCurrentPosition()</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setMediaItems(java.util.List,int,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItems</h4>
<pre class="methodSignature">void&nbsp;setMediaItems&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems,
int&nbsp;startIndex,
long&nbsp;startPositionMs)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist and adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a>.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItems</code> - The new <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a>.</dd>
<dd><code>startIndex</code> - The <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> index to start playback from. If <a href="C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a>
is passed, the current position is not reset.</dd>
<dd><code>startPositionMs</code> - The position in milliseconds to start playback from. If <a href="C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> is passed, the default position of the given <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> is used. In
any case, if <code>startIndex</code> is set to <a href="C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a>, this parameter is ignored
and the position is not reset at all.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="IllegalSeekPositionException.html" title="class in com.google.android.exoplayer2">IllegalSeekPositionException</a></code> - If the provided <code>startIndex</code> is not within the
bounds of the list of media items.</dd>
</dl>
</li>
</ul>
<a id="setMediaItem(com.google.android.exoplayer2.MediaItem)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItem</h4>
<pre class="methodSignature">void&nbsp;setMediaItem&#8203;(<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist, adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> and resets the position to the
default position.
<p>This method must only be called if <a href="#COMMAND_SET_MEDIA_ITEM"><code>COMMAND_SET_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItem</code> - The new <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setMediaItem(com.google.android.exoplayer2.MediaItem,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItem</h4>
<pre class="methodSignature">void&nbsp;setMediaItem&#8203;(<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem,
long&nbsp;startPositionMs)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist and adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>This method must only be called if <a href="#COMMAND_SET_MEDIA_ITEM"><code>COMMAND_SET_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItem</code> - The new <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</dd>
<dd><code>startPositionMs</code> - The position in milliseconds to start playback from.</dd>
</dl>
</li>
</ul>
<a id="setMediaItem(com.google.android.exoplayer2.MediaItem,boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItem</h4>
<pre class="methodSignature">void&nbsp;setMediaItem&#8203;(<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem,
boolean&nbsp;resetPosition)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist and adds the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>This method must only be called if <a href="#COMMAND_SET_MEDIA_ITEM"><code>COMMAND_SET_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItem</code> - The new <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</dd>
<dd><code>resetPosition</code> - Whether the playback position should be reset to the default position. If
false, playback will start from the position defined by <a href="#getCurrentMediaItemIndex()"><code>getCurrentMediaItemIndex()</code></a>
and <a href="#getCurrentPosition()"><code>getCurrentPosition()</code></a>.</dd>
</dl>
</li>
</ul>
<a id="addMediaItem(com.google.android.exoplayer2.MediaItem)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMediaItem</h4>
<pre class="methodSignature">void&nbsp;addMediaItem&#8203;(<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Adds a media item to the end of the playlist.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItem</code> - The <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> to add.</dd>
</dl>
</li>
</ul>
<a id="addMediaItem(int,com.google.android.exoplayer2.MediaItem)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMediaItem</h4>
<pre class="methodSignature">void&nbsp;addMediaItem&#8203;(int&nbsp;index,
<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Adds a media item at the given index of the playlist.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The index at which to add the media item. If the index is larger than the size of
the playlist, the media item is added to the end of the playlist.</dd>
<dd><code>mediaItem</code> - The <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> to add.</dd>
</dl>
</li>
</ul>
<a id="addMediaItems(java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMediaItems</h4>
<pre class="methodSignature">void&nbsp;addMediaItems&#8203;(<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Adds a list of media items to the end of the playlist.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItems</code> - The <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a> to add.</dd>
</dl>
</li>
</ul>
<a id="addMediaItems(int,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMediaItems</h4>
<pre class="methodSignature">void&nbsp;addMediaItems&#8203;(int&nbsp;index,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Adds a list of media items at the given index of the playlist.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The index at which to add the media items. If the index is larger than the size of
the playlist, the media items are added to the end of the playlist.</dd>
<dd><code>mediaItems</code> - The <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a> to add.</dd>
</dl>
</li>
</ul>
<a id="moveMediaItem(int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>moveMediaItem</h4>
<pre class="methodSignature">void&nbsp;moveMediaItem&#8203;(int&nbsp;currentIndex,
int&nbsp;newIndex)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Moves the media item at the current index to the new index.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>currentIndex</code> - The current index of the media item to move. If the index is larger than
the size of the playlist, the request is ignored.</dd>
<dd><code>newIndex</code> - The new index of the media item. If the new index is larger than the size of
the playlist the item is moved to the end of the playlist.</dd>
</dl>
</li>
</ul>
<a id="moveMediaItems(int,int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>moveMediaItems</h4>
<pre class="methodSignature">void&nbsp;moveMediaItems&#8203;(int&nbsp;fromIndex,
int&nbsp;toIndex,
int&nbsp;newIndex)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Moves the media item range to the new index.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fromIndex</code> - The start of the range to move. If the index is larger than the size of the
playlist, the request is ignored.</dd>
<dd><code>toIndex</code> - The first item not to be included in the range (exclusive). If the index is
larger than the size of the playlist, items up to the end of the playlist are moved.</dd>
<dd><code>newIndex</code> - The new index of the first media item of the range. If the new index is larger
than the size of the remaining playlist after removing the range, the range is moved to the
end of the playlist.</dd>
</dl>
</li>
</ul>
<a id="replaceMediaItem(int,com.google.android.exoplayer2.MediaItem)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceMediaItem</h4>
<pre class="methodSignature">void&nbsp;replaceMediaItem&#8203;(int&nbsp;index,
<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Replaces the media item at the given index of the playlist.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The index at which to replace the media item. If the index is larger than the size
of the playlist, the request is ignored.</dd>
<dd><code>mediaItem</code> - The new <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</dd>
</dl>
</li>
</ul>
<a id="replaceMediaItems(int,int,java.util.List)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>replaceMediaItems</h4>
<pre class="methodSignature">void&nbsp;replaceMediaItems&#8203;(int&nbsp;fromIndex,
int&nbsp;toIndex,
<a href="https://developer.android.com/reference/java/util/List.html" title="class or interface in java.util" class="externalLink">List</a>&lt;<a href="MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Replaces the media items at the given range of the playlist.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.
<p>Note that it is possible to replace a range with an arbitrary number of new items, so that
the number of removed items defined by <code>fromIndex</code> and <code>toIndex</code> does not have to
match the number of added items defined by <code>mediaItems</code>. As result, it may also change
the index of subsequent items not touched by this operation.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fromIndex</code> - The start of the range. If the index is larger than the size of the playlist,
the request is ignored.</dd>
<dd><code>toIndex</code> - The first item not to be included in the range (exclusive). If the index is
larger than the size of the playlist, items up to the end of the playlist are replaced.</dd>
<dd><code>mediaItems</code> - The <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a> to replace the range with.</dd>
</dl>
</li>
</ul>
<a id="removeMediaItem(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeMediaItem</h4>
<pre class="methodSignature">void&nbsp;removeMediaItem&#8203;(int&nbsp;index)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Removes the media item at the given index of the playlist.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The index at which to remove the media item. If the index is larger than the size
of the playlist, the request is ignored.</dd>
</dl>
</li>
</ul>
<a id="removeMediaItems(int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeMediaItems</h4>
<pre class="methodSignature">void&nbsp;removeMediaItems&#8203;(int&nbsp;fromIndex,
int&nbsp;toIndex)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Removes a range of media items from the playlist.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fromIndex</code> - The index at which to start removing media items. If the index is larger than
the size of the playlist, the request is ignored.</dd>
<dd><code>toIndex</code> - The index of the first item to be kept (exclusive). If the index is larger than
the size of the playlist, media items up to the end of the playlist are removed.</dd>
</dl>
</li>
</ul>
<a id="clearMediaItems()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearMediaItems</h4>
<pre class="methodSignature">void&nbsp;clearMediaItems()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the playlist.
<p>This method must only be called if <a href="#COMMAND_CHANGE_MEDIA_ITEMS"><code>COMMAND_CHANGE_MEDIA_ITEMS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="isCommandAvailable(@com.google.android.exoplayer2.Player.Commandint)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCommandAvailable</h4>
<pre class="methodSignature">boolean&nbsp;isCommandAvailable&#8203;(<a href="Player.Command.html" title="annotation in com.google.android.exoplayer2">@Command</a>
@com.google.android.exoplayer2.Player.Command int&nbsp;command)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the provided <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2"><code>Player.Command</code></a> is available.
<p>This method does not execute the command.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>command</code> - A <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2"><code>Player.Command</code></a>.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether the <a href="Player.Command.html" title="annotation in com.google.android.exoplayer2"><code>Player.Command</code></a> is available.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onAvailableCommandsChanged(com.google.android.exoplayer2.Player.Commands)"><code>Player.Listener.onAvailableCommandsChanged(Commands)</code></a></dd>
</dl>
</li>
</ul>
<a id="canAdvertiseSession()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>canAdvertiseSession</h4>
<pre class="methodSignature">boolean&nbsp;canAdvertiseSession()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the player can be used to advertise a media session.</div>
</li>
</ul>
<a id="getAvailableCommands()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAvailableCommands</h4>
<pre class="methodSignature"><a href="Player.Commands.html" title="class in com.google.android.exoplayer2">Player.Commands</a>&nbsp;getAvailableCommands()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the player's currently available <a href="Player.Commands.html" title="class in com.google.android.exoplayer2"><code>Player.Commands</code></a>.
<p>The returned <a href="Player.Commands.html" title="class in com.google.android.exoplayer2"><code>Player.Commands</code></a> are not updated when available commands change. Use <a href="Player.Listener.html#onAvailableCommandsChanged(com.google.android.exoplayer2.Player.Commands)"><code>Player.Listener.onAvailableCommandsChanged(Commands)</code></a> to get an update when the available commands
change.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The currently available <a href="Player.Commands.html" title="class in com.google.android.exoplayer2"><code>Player.Commands</code></a>.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onAvailableCommandsChanged(com.google.android.exoplayer2.Player.Commands)"><code>Player.Listener.onAvailableCommandsChanged(com.google.android.exoplayer2.Player.Commands)</code></a></dd>
</dl>
</li>
</ul>
<a id="prepare()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prepare</h4>
<pre class="methodSignature">void&nbsp;prepare()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Prepares the player.
<p>This method must only be called if <a href="#COMMAND_PREPARE"><code>COMMAND_PREPARE</code></a> is <a href="#getAvailableCommands()">available</a>.
<p>This will move the player out of <a href="#STATE_IDLE"><code>idle state</code></a> and the player will start
loading media and acquire resources needed for playback.</div>
</li>
</ul>
<a id="getPlaybackState()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaybackState</h4>
<pre class="methodSignature"><a href="Player.State.html" title="annotation in com.google.android.exoplayer2">@State</a>
@com.google.android.exoplayer2.Player.State int&nbsp;getPlaybackState()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current <a href="Player.State.html" title="annotation in com.google.android.exoplayer2">playback state</a> of the player.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The current <a href="Player.State.html" title="annotation in com.google.android.exoplayer2">playback state</a>.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onPlaybackStateChanged(@com.google.android.exoplayer2.Player.Stateint)"><code>Player.Listener.onPlaybackStateChanged(int)</code></a></dd>
</dl>
</li>
</ul>
<a id="getPlaybackSuppressionReason()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaybackSuppressionReason</h4>
<pre class="methodSignature"><a href="Player.PlaybackSuppressionReason.html" title="annotation in com.google.android.exoplayer2">@PlaybackSuppressionReason</a>
@com.google.android.exoplayer2.Player.PlaybackSuppressionReason int&nbsp;getPlaybackSuppressionReason()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the reason why playback is suppressed even though <a href="#getPlayWhenReady()"><code>getPlayWhenReady()</code></a> is <code>
true</code>, or <a href="#PLAYBACK_SUPPRESSION_REASON_NONE"><code>PLAYBACK_SUPPRESSION_REASON_NONE</code></a> if playback is not suppressed.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The current <a href="Player.PlaybackSuppressionReason.html" title="annotation in com.google.android.exoplayer2"><code>Player.PlaybackSuppressionReason</code></a>.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onPlaybackSuppressionReasonChanged(@com.google.android.exoplayer2.Player.PlaybackSuppressionReasonint)"><code>Player.Listener.onPlaybackSuppressionReasonChanged(int)</code></a></dd>
</dl>
</li>
</ul>
<a id="isPlaying()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPlaying</h4>
<pre class="methodSignature">boolean&nbsp;isPlaying()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the player is playing, i.e. <a href="#getCurrentPosition()"><code>getCurrentPosition()</code></a> is advancing.
<p>If <code>false</code>, then at least one of the following is true:
<ul>
<li>The <a href="#getPlaybackState()"><code>playback state</code></a> is not <a href="#STATE_READY"><code>ready</code></a>.
<li>There is no <a href="#getPlayWhenReady()"><code>intention to play</code></a>.
<li>Playback is <a href="#getPlaybackSuppressionReason()"><code>suppressed for other reasons</code></a>.
</ul></div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether the player is playing.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onIsPlayingChanged(boolean)"><code>Player.Listener.onIsPlayingChanged(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a id="getPlayerError()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlayerError</h4>
<pre class="methodSignature">@Nullable
<a href="PlaybackException.html" title="class in com.google.android.exoplayer2">PlaybackException</a>&nbsp;getPlayerError()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the error that caused playback to fail. This is the same error that will have been
reported via <a href="Player.Listener.html#onPlayerError(com.google.android.exoplayer2.PlaybackException)"><code>Player.Listener.onPlayerError(PlaybackException)</code></a> at the time of failure. It can
be queried using this method until the player is re-prepared.
<p>Note that this method will always return <code>null</code> if <a href="#getPlaybackState()"><code>getPlaybackState()</code></a> is not
<a href="#STATE_IDLE"><code>STATE_IDLE</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The error, or <code>null</code>.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onPlayerError(com.google.android.exoplayer2.PlaybackException)"><code>Player.Listener.onPlayerError(PlaybackException)</code></a></dd>
</dl>
</li>
</ul>
<a id="play()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>play</h4>
<pre class="methodSignature">void&nbsp;play()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Resumes playback as soon as <a href="#getPlaybackState()"><code>getPlaybackState()</code></a> == <a href="#STATE_READY"><code>STATE_READY</code></a>. Equivalent to
<a href="#setPlayWhenReady(boolean)"><code>setPlayWhenReady(true)</code></a>.
<p>This method must only be called if <a href="#COMMAND_PLAY_PAUSE"><code>COMMAND_PLAY_PAUSE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="pause()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pause</h4>
<pre class="methodSignature">void&nbsp;pause()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Pauses playback. Equivalent to <a href="#setPlayWhenReady(boolean)"><code>setPlayWhenReady(false)</code></a>.
<p>This method must only be called if <a href="#COMMAND_PLAY_PAUSE"><code>COMMAND_PLAY_PAUSE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="setPlayWhenReady(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlayWhenReady</h4>
<pre class="methodSignature">void&nbsp;setPlayWhenReady&#8203;(boolean&nbsp;playWhenReady)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets whether playback should proceed when <a href="#getPlaybackState()"><code>getPlaybackState()</code></a> == <a href="#STATE_READY"><code>STATE_READY</code></a>.
<p>If the player is already in the ready state then this method pauses and resumes playback.
<p>This method must only be called if <a href="#COMMAND_PLAY_PAUSE"><code>COMMAND_PLAY_PAUSE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>playWhenReady</code> - Whether playback should proceed when ready.</dd>
</dl>
</li>
</ul>
<a id="getPlayWhenReady()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlayWhenReady</h4>
<pre class="methodSignature">boolean&nbsp;getPlayWhenReady()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Whether playback will proceed when <a href="#getPlaybackState()"><code>getPlaybackState()</code></a> == <a href="#STATE_READY"><code>STATE_READY</code></a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether playback will proceed when ready.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onPlayWhenReadyChanged(boolean,@com.google.android.exoplayer2.Player.PlayWhenReadyChangeReasonint)"><code>Player.Listener.onPlayWhenReadyChanged(boolean, int)</code></a></dd>
</dl>
</li>
</ul>
<a id="setRepeatMode(@com.google.android.exoplayer2.Player.RepeatModeint)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRepeatMode</h4>
<pre class="methodSignature">void&nbsp;setRepeatMode&#8203;(<a href="Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2">@RepeatMode</a>
@com.google.android.exoplayer2.Player.RepeatMode int&nbsp;repeatMode)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2"><code>Player.RepeatMode</code></a> to be used for playback.
<p>This method must only be called if <a href="#COMMAND_SET_REPEAT_MODE"><code>COMMAND_SET_REPEAT_MODE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>repeatMode</code> - The repeat mode.</dd>
</dl>
</li>
</ul>
<a id="getRepeatMode()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRepeatMode</h4>
<pre class="methodSignature"><a href="Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2">@RepeatMode</a>
@com.google.android.exoplayer2.Player.RepeatMode int&nbsp;getRepeatMode()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current <a href="Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2"><code>Player.RepeatMode</code></a> used for playback.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The current repeat mode.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onRepeatModeChanged(@com.google.android.exoplayer2.Player.RepeatModeint)"><code>Player.Listener.onRepeatModeChanged(int)</code></a></dd>
</dl>
</li>
</ul>
<a id="setShuffleModeEnabled(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShuffleModeEnabled</h4>
<pre class="methodSignature">void&nbsp;setShuffleModeEnabled&#8203;(boolean&nbsp;shuffleModeEnabled)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets whether shuffling of media items is enabled.
<p>This method must only be called if <a href="#COMMAND_SET_SHUFFLE_MODE"><code>COMMAND_SET_SHUFFLE_MODE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>shuffleModeEnabled</code> - Whether shuffling is enabled.</dd>
</dl>
</li>
</ul>
<a id="getShuffleModeEnabled()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShuffleModeEnabled</h4>
<pre class="methodSignature">boolean&nbsp;getShuffleModeEnabled()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether shuffling of media items is enabled.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onShuffleModeEnabledChanged(boolean)"><code>Player.Listener.onShuffleModeEnabledChanged(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a id="isLoading()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLoading</h4>
<pre class="methodSignature">boolean&nbsp;isLoading()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Whether the player is currently loading the source.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>Whether the player is currently loading the source.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onIsLoadingChanged(boolean)"><code>Player.Listener.onIsLoadingChanged(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a id="seekToDefaultPosition()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToDefaultPosition</h4>
<pre class="methodSignature">void&nbsp;seekToDefaultPosition()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to the default position associated with the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>. The position can
depend on the type of media being played. For live streams it will typically be the live edge.
For other streams it will typically be the start.
<p>This method must only be called if <a href="#COMMAND_SEEK_TO_DEFAULT_POSITION"><code>COMMAND_SEEK_TO_DEFAULT_POSITION</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="seekToDefaultPosition(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToDefaultPosition</h4>
<pre class="methodSignature">void&nbsp;seekToDefaultPosition&#8203;(int&nbsp;mediaItemIndex)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to the default position associated with the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>. The position can
depend on the type of media being played. For live streams it will typically be the live edge.
For other streams it will typically be the start.
<p>This method must only be called if <a href="#COMMAND_SEEK_TO_MEDIA_ITEM"><code>COMMAND_SEEK_TO_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItemIndex</code> - The index of the <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> whose associated default position
should be seeked to. If the index is larger than the size of the playlist, the request is
ignored.</dd>
</dl>
</li>
</ul>
<a id="seekTo(long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekTo</h4>
<pre class="methodSignature">void&nbsp;seekTo&#8203;(long&nbsp;positionMs)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to a position specified in milliseconds in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>This method must only be called if <a href="#COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM"><code>COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM</code></a> is
<a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>positionMs</code> - The seek position in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>, or <a href="C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a>
to seek to the media item's default position.</dd>
</dl>
</li>
</ul>
<a id="seekTo(int,long)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekTo</h4>
<pre class="methodSignature">void&nbsp;seekTo&#8203;(int&nbsp;mediaItemIndex,
long&nbsp;positionMs)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to a position specified in milliseconds in the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<p>This method must only be called if <a href="#COMMAND_SEEK_TO_MEDIA_ITEM"><code>COMMAND_SEEK_TO_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItemIndex</code> - The index of the <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>. If the index is larger than the size
of the playlist, the request is ignored.</dd>
<dd><code>positionMs</code> - The seek position in the specified <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>, or <a href="C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a>
to seek to the media item's default position.</dd>
</dl>
</li>
</ul>
<a id="getSeekBackIncrement()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSeekBackIncrement</h4>
<pre class="methodSignature">long&nbsp;getSeekBackIncrement()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the <a href="#seekBack()"><code>seekBack()</code></a> increment.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The seek back increment, in milliseconds.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onSeekBackIncrementChanged(long)"><code>Player.Listener.onSeekBackIncrementChanged(long)</code></a></dd>
</dl>
</li>
</ul>
<a id="seekBack()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekBack</h4>
<pre class="methodSignature">void&nbsp;seekBack()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks back in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> by <a href="#getSeekBackIncrement()"><code>getSeekBackIncrement()</code></a> milliseconds.
<p>This method must only be called if <a href="#COMMAND_SEEK_BACK"><code>COMMAND_SEEK_BACK</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getSeekForwardIncrement()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSeekForwardIncrement</h4>
<pre class="methodSignature">long&nbsp;getSeekForwardIncrement()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the <a href="#seekForward()"><code>seekForward()</code></a> increment.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The seek forward increment, in milliseconds.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onSeekForwardIncrementChanged(long)"><code>Player.Listener.onSeekForwardIncrementChanged(long)</code></a></dd>
</dl>
</li>
</ul>
<a id="seekForward()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekForward</h4>
<pre class="methodSignature">void&nbsp;seekForward()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks forward in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> by <a href="#getSeekForwardIncrement()"><code>getSeekForwardIncrement()</code></a>
milliseconds.
<p>This method must only be called if <a href="#COMMAND_SEEK_FORWARD"><code>COMMAND_SEEK_FORWARD</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="hasPrevious()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasPrevious</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
boolean&nbsp;hasPrevious()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#hasPreviousMediaItem()"><code>hasPreviousMediaItem()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="hasPreviousWindow()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasPreviousWindow</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
boolean&nbsp;hasPreviousWindow()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#hasPreviousMediaItem()"><code>hasPreviousMediaItem()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="hasPreviousMediaItem()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasPreviousMediaItem</h4>
<pre class="methodSignature">boolean&nbsp;hasPreviousMediaItem()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether a previous media item exists, which may depend on the current repeat mode and
whether shuffle mode is enabled.
<p>Note: When the repeat mode is <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.
<p>This method must only be called if <a href="#COMMAND_GET_TIMELINE"><code>COMMAND_GET_TIMELINE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="previous()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>previous</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
void&nbsp;previous()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#seekToPreviousMediaItem()"><code>seekToPreviousMediaItem()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="seekToPreviousWindow()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToPreviousWindow</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
void&nbsp;seekToPreviousWindow()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#seekToPreviousMediaItem()"><code>seekToPreviousMediaItem()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="seekToPreviousMediaItem()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToPreviousMediaItem</h4>
<pre class="methodSignature">void&nbsp;seekToPreviousMediaItem()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to the default position of the previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>, which may depend on the
current repeat mode and whether shuffle mode is enabled. Does nothing if <a href="#hasPreviousMediaItem()"><code>hasPreviousMediaItem()</code></a> is <code>false</code>.
<p>Note: When the repeat mode is <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.
<p>This method must only be called if <a href="#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM"><code>COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM</code></a> is
<a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getMaxSeekToPreviousPosition()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMaxSeekToPreviousPosition</h4>
<pre class="methodSignature">long&nbsp;getMaxSeekToPreviousPosition()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the maximum position for which <a href="#seekToPrevious()"><code>seekToPrevious()</code></a> seeks to the previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>, in milliseconds.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The maximum seek to previous position, in milliseconds.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onMaxSeekToPreviousPositionChanged(long)"><code>Player.Listener.onMaxSeekToPreviousPositionChanged(long)</code></a></dd>
</dl>
</li>
</ul>
<a id="seekToPrevious()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToPrevious</h4>
<pre class="methodSignature">void&nbsp;seekToPrevious()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to an earlier position in the current or previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> (if available). More
precisely:
<ul>
<li>If the timeline is empty or seeking is not possible, does nothing.
<li>Otherwise, if the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> is <a href="#isCurrentMediaItemLive()"><code>isCurrentMediaItemLive()</code></a> live}
and <a href="#isCurrentMediaItemSeekable()"><code>unseekable</code></a>, then:
<ul>
<li>If <a href="#hasPreviousMediaItem()"><code>a previous media item exists</code></a>, seeks to the
default position of the previous media item.
<li>Otherwise, does nothing.
</ul>
<li>Otherwise, if <a href="#hasPreviousMediaItem()"><code>a previous media item exists</code></a> and the <a href="#getCurrentPosition()"><code>current position</code></a> is less than <a href="#getMaxSeekToPreviousPosition()"><code>getMaxSeekToPreviousPosition()</code></a>, seeks to the default position of the previous <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<li>Otherwise, seeks to 0 in the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
</ul>
<p>This method must only be called if <a href="#COMMAND_SEEK_TO_PREVIOUS"><code>COMMAND_SEEK_TO_PREVIOUS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="hasNext()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasNext</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
boolean&nbsp;hasNext()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#hasNextMediaItem()"><code>hasNextMediaItem()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="hasNextWindow()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasNextWindow</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
boolean&nbsp;hasNextWindow()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#hasNextMediaItem()"><code>hasNextMediaItem()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="hasNextMediaItem()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasNextMediaItem</h4>
<pre class="methodSignature">boolean&nbsp;hasNextMediaItem()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether a next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> exists, which may depend on the current repeat mode
and whether shuffle mode is enabled.
<p>Note: When the repeat mode is <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.
<p>This method must only be called if <a href="#COMMAND_GET_TIMELINE"><code>COMMAND_GET_TIMELINE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="next()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>next</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
void&nbsp;next()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#seekToNextMediaItem()"><code>seekToNextMediaItem()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="seekToNextWindow()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToNextWindow</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
void&nbsp;seekToNextWindow()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#seekToNextMediaItem()"><code>seekToNextMediaItem()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="seekToNextMediaItem()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToNextMediaItem</h4>
<pre class="methodSignature">void&nbsp;seekToNextMediaItem()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to the default position of the next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>, which may depend on the current
repeat mode and whether shuffle mode is enabled. Does nothing if <a href="#hasNextMediaItem()"><code>hasNextMediaItem()</code></a> is
<code>false</code>.
<p>Note: When the repeat mode is <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.
<p>This method must only be called if <a href="#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM"><code>COMMAND_SEEK_TO_NEXT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="seekToNext()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToNext</h4>
<pre class="methodSignature">void&nbsp;seekToNext()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Seeks to a later position in the current or next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> (if available). More
precisely:
<ul>
<li>If the timeline is empty or seeking is not possible, does nothing.
<li>Otherwise, if <a href="#hasNextMediaItem()"><code>a next media item exists</code></a>, seeks to the default
position of the next <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<li>Otherwise, if the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> is <a href="#isCurrentMediaItemLive()"><code>live</code></a> and
has not ended, seeks to the live edge of the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.
<li>Otherwise, does nothing.
</ul>
<p>This method must only be called if <a href="#COMMAND_SEEK_TO_NEXT"><code>COMMAND_SEEK_TO_NEXT</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="setPlaybackParameters(com.google.android.exoplayer2.PlaybackParameters)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlaybackParameters</h4>
<pre class="methodSignature">void&nbsp;setPlaybackParameters&#8203;(<a href="PlaybackParameters.html" title="class in com.google.android.exoplayer2">PlaybackParameters</a>&nbsp;playbackParameters)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Attempts to set the playback parameters. Passing <a href="PlaybackParameters.html#DEFAULT"><code>PlaybackParameters.DEFAULT</code></a> resets the
player to the default, which means there is no speed or pitch adjustment.
<p>Playback parameters changes may cause the player to buffer. <a href="Player.Listener.html#onPlaybackParametersChanged(com.google.android.exoplayer2.PlaybackParameters)"><code>Player.Listener.onPlaybackParametersChanged(PlaybackParameters)</code></a> will be called whenever the currently
active playback parameters change.
<p>This method must only be called if <a href="#COMMAND_SET_SPEED_AND_PITCH"><code>COMMAND_SET_SPEED_AND_PITCH</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>playbackParameters</code> - The playback parameters.</dd>
</dl>
</li>
</ul>
<a id="setPlaybackSpeed(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlaybackSpeed</h4>
<pre class="methodSignature">void&nbsp;setPlaybackSpeed&#8203;(@FloatRange(from=0.0,fromInclusive=false)
float&nbsp;speed)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Changes the rate at which playback occurs. The pitch is not changed.
<p>This is equivalent to <code>
setPlaybackParameters(getPlaybackParameters().withSpeed(speed))</code>.
<p>This method must only be called if <a href="#COMMAND_SET_SPEED_AND_PITCH"><code>COMMAND_SET_SPEED_AND_PITCH</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>speed</code> - The linear factor by which playback will be sped up. Must be higher than 0. 1 is
normal speed, 2 is twice as fast, 0.5 is half normal speed.</dd>
</dl>
</li>
</ul>
<a id="getPlaybackParameters()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaybackParameters</h4>
<pre class="methodSignature"><a href="PlaybackParameters.html" title="class in com.google.android.exoplayer2">PlaybackParameters</a>&nbsp;getPlaybackParameters()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the currently active playback parameters.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onPlaybackParametersChanged(com.google.android.exoplayer2.PlaybackParameters)"><code>Player.Listener.onPlaybackParametersChanged(PlaybackParameters)</code></a></dd>
</dl>
</li>
</ul>
<a id="stop()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stop</h4>
<pre class="methodSignature">void&nbsp;stop()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Stops playback without resetting the playlist. Use <a href="#pause()"><code>pause()</code></a> rather than this method if
the intention is to pause playback.
<p>Calling this method will cause the playback state to transition to <a href="#STATE_IDLE"><code>STATE_IDLE</code></a> and
the player will release the loaded media and resources required for playback. The player
instance can still be used by calling <a href="#prepare()"><code>prepare()</code></a> again, and <a href="#release()"><code>release()</code></a> must
still be called on the player if it's no longer required.
<p>Calling this method does not clear the playlist, reset the playback position or the playback
error.
<p>This method must only be called if <a href="#COMMAND_STOP"><code>COMMAND_STOP</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="release()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>release</h4>
<pre class="methodSignature">void&nbsp;release()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Releases the player. This method must be called when the player is no longer required. The
player must not be used after calling this method.
<p>This method must only be called if <a href="#COMMAND_RELEASE"><code>COMMAND_RELEASE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getCurrentTracks()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentTracks</h4>
<pre class="methodSignature"><a href="Tracks.html" title="class in com.google.android.exoplayer2">Tracks</a>&nbsp;getCurrentTracks()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current tracks.
<p>This method must only be called if <a href="#COMMAND_GET_TRACKS"><code>COMMAND_GET_TRACKS</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onTracksChanged(com.google.android.exoplayer2.Tracks)"><code>Player.Listener.onTracksChanged(Tracks)</code></a></dd>
</dl>
</li>
</ul>
<a id="getTrackSelectionParameters()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTrackSelectionParameters</h4>
<pre class="methodSignature"><a href="trackselection/TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a>&nbsp;getTrackSelectionParameters()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the parameters constraining the track selection.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onTrackSelectionParametersChanged(com.google.android.exoplayer2.trackselection.TrackSelectionParameters)"><code>}</code></a></dd>
</dl>
</li>
</ul>
<a id="setTrackSelectionParameters(com.google.android.exoplayer2.trackselection.TrackSelectionParameters)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTrackSelectionParameters</h4>
<pre class="methodSignature">void&nbsp;setTrackSelectionParameters&#8203;(<a href="trackselection/TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a>&nbsp;parameters)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the parameters constraining the track selection.
<p>Unsupported parameters will be silently ignored.
<p>Use <a href="#getTrackSelectionParameters()"><code>getTrackSelectionParameters()</code></a> to retrieve the current parameters. For example,
the following snippet restricts video to SD whilst keep other track selection parameters
unchanged:
<pre><code>
player.setTrackSelectionParameters(
player.getTrackSelectionParameters()
.buildUpon()
.setMaxVideoSizeSd()
.build())
</code></pre>
<p>This method must only be called if <a href="#COMMAND_SET_TRACK_SELECTION_PARAMETERS"><code>COMMAND_SET_TRACK_SELECTION_PARAMETERS</code></a> is
<a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getMediaMetadata()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMediaMetadata</h4>
<pre class="methodSignature"><a href="MediaMetadata.html" title="class in com.google.android.exoplayer2">MediaMetadata</a>&nbsp;getMediaMetadata()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current combined <a href="MediaMetadata.html" title="class in com.google.android.exoplayer2"><code>MediaMetadata</code></a>, or <a href="MediaMetadata.html#EMPTY"><code>MediaMetadata.EMPTY</code></a> if not
supported.
<p>This <a href="MediaMetadata.html" title="class in com.google.android.exoplayer2"><code>MediaMetadata</code></a> is a combination of the <a href="MediaItem.html#mediaMetadata"><code>MediaItem
metadata</code></a>, the static metadata in the media's <a href="Format.html#metadata"><code>Format</code></a>, and any timed
metadata that has been parsed from the media and output via <a href="Player.Listener.html#onMetadata(com.google.android.exoplayer2.metadata.Metadata)"><code>Player.Listener.onMetadata(Metadata)</code></a>. If a field is populated in the <a href="MediaItem.html#mediaMetadata"><code>MediaItem.mediaMetadata</code></a>,
it will be prioritised above the same field coming from static or timed metadata.
<p>This method must only be called if <a href="#COMMAND_GET_METADATA"><code>COMMAND_GET_METADATA</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getPlaylistMetadata()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaylistMetadata</h4>
<pre class="methodSignature"><a href="MediaMetadata.html" title="class in com.google.android.exoplayer2">MediaMetadata</a>&nbsp;getPlaylistMetadata()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the playlist <a href="MediaMetadata.html" title="class in com.google.android.exoplayer2"><code>MediaMetadata</code></a>, as set by <a href="#setPlaylistMetadata(com.google.android.exoplayer2.MediaMetadata)"><code>setPlaylistMetadata(MediaMetadata)</code></a>, or <a href="MediaMetadata.html#EMPTY"><code>MediaMetadata.EMPTY</code></a> if not supported.
<p>This method must only be called if <a href="#COMMAND_GET_METADATA"><code>COMMAND_GET_METADATA</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="setPlaylistMetadata(com.google.android.exoplayer2.MediaMetadata)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlaylistMetadata</h4>
<pre class="methodSignature">void&nbsp;setPlaylistMetadata&#8203;(<a href="MediaMetadata.html" title="class in com.google.android.exoplayer2">MediaMetadata</a>&nbsp;mediaMetadata)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the playlist <a href="MediaMetadata.html" title="class in com.google.android.exoplayer2"><code>MediaMetadata</code></a>.
<p>This method must only be called if <a href="#COMMAND_SET_PLAYLIST_METADATA"><code>COMMAND_SET_PLAYLIST_METADATA</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getCurrentManifest()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentManifest</h4>
<pre class="methodSignature">@Nullable
<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a>&nbsp;getCurrentManifest()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current manifest. The type depends on the type of media being played. May be null.</div>
</li>
</ul>
<a id="getCurrentTimeline()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentTimeline</h4>
<pre class="methodSignature"><a href="Timeline.html" title="class in com.google.android.exoplayer2">Timeline</a>&nbsp;getCurrentTimeline()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>. Never null, but may be empty.
<p>This method must only be called if <a href="#COMMAND_GET_TIMELINE"><code>COMMAND_GET_TIMELINE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onTimelineChanged(com.google.android.exoplayer2.Timeline,@com.google.android.exoplayer2.Player.TimelineChangeReasonint)"><code>Player.Listener.onTimelineChanged(Timeline, int)</code></a></dd>
</dl>
</li>
</ul>
<a id="getCurrentPeriodIndex()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentPeriodIndex</h4>
<pre class="methodSignature">int&nbsp;getCurrentPeriodIndex()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the index of the period currently being played.
<p>This method must only be called if <a href="#COMMAND_GET_TIMELINE"><code>COMMAND_GET_TIMELINE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getCurrentWindowIndex()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentWindowIndex</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
int&nbsp;getCurrentWindowIndex()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#getCurrentMediaItemIndex()"><code>getCurrentMediaItemIndex()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="getCurrentMediaItemIndex()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentMediaItemIndex</h4>
<pre class="methodSignature">int&nbsp;getCurrentMediaItemIndex()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the index of the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> in the <a href="#getCurrentTimeline()"><code>timeline</code></a>, or the prospective index if the <a href="#getCurrentTimeline()"><code>current timeline</code></a> is
empty.
<p>This method must only be called if <a href="#COMMAND_GET_TIMELINE"><code>COMMAND_GET_TIMELINE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getNextWindowIndex()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNextWindowIndex</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
int&nbsp;getNextWindowIndex()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#getNextMediaItemIndex()"><code>getNextMediaItemIndex()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="getNextMediaItemIndex()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNextMediaItemIndex</h4>
<pre class="methodSignature">int&nbsp;getNextMediaItemIndex()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the index of the <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> that will be played if <a href="#seekToNextMediaItem()"><code>seekToNextMediaItem()</code></a> is called, which may depend on the current repeat mode and whether
shuffle mode is enabled. Returns <a href="C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a> if <a href="#hasNextMediaItem()"><code>hasNextMediaItem()</code></a> is <code>
false</code>.
<p>Note: When the repeat mode is <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.
<p>This method must only be called if <a href="#COMMAND_GET_TIMELINE"><code>COMMAND_GET_TIMELINE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getPreviousWindowIndex()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPreviousWindowIndex</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
int&nbsp;getPreviousWindowIndex()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#getPreviousMediaItemIndex()"><code>getPreviousMediaItemIndex()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="getPreviousMediaItemIndex()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPreviousMediaItemIndex</h4>
<pre class="methodSignature">int&nbsp;getPreviousMediaItemIndex()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the index of the <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> that will be played if <a href="#seekToPreviousMediaItem()"><code>seekToPreviousMediaItem()</code></a> is called, which may depend on the current repeat mode and whether
shuffle mode is enabled. Returns <a href="C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a> if <a href="#hasPreviousMediaItem()"><code>hasPreviousMediaItem()</code></a> is
<code>false</code>.
<p>Note: When the repeat mode is <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.
<p>This method must only be called if <a href="#COMMAND_GET_TIMELINE"><code>COMMAND_GET_TIMELINE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getCurrentMediaItem()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentMediaItem</h4>
<pre class="methodSignature">@Nullable
<a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;getCurrentMediaItem()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the currently playing <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>. May be null if the timeline is empty.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onMediaItemTransition(com.google.android.exoplayer2.MediaItem,@com.google.android.exoplayer2.Player.MediaItemTransitionReasonint)"><code>Player.Listener.onMediaItemTransition(MediaItem, int)</code></a></dd>
</dl>
</li>
</ul>
<a id="getMediaItemCount()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMediaItemCount</h4>
<pre class="methodSignature">int&nbsp;getMediaItemCount()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the number of <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a> in the playlist.
<p>This method must only be called if <a href="#COMMAND_GET_TIMELINE"><code>COMMAND_GET_TIMELINE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getMediaItemAt(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMediaItemAt</h4>
<pre class="methodSignature"><a href="MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;getMediaItemAt&#8203;(int&nbsp;index)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> at the given index.
<p>This method must only be called if <a href="#COMMAND_GET_TIMELINE"><code>COMMAND_GET_TIMELINE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getDuration()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDuration</h4>
<pre class="methodSignature">long&nbsp;getDuration()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the duration of the current content or ad in milliseconds, or <a href="C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if
the duration is not known.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getCurrentPosition()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentPosition</h4>
<pre class="methodSignature">long&nbsp;getCurrentPosition()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the playback position in the current content or ad, in milliseconds, or the prospective
position in milliseconds if the <a href="#getCurrentTimeline()"><code>current timeline</code></a> is empty.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getBufferedPosition()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBufferedPosition</h4>
<pre class="methodSignature">long&nbsp;getBufferedPosition()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns an estimate of the position in the current content or ad up to which data is buffered,
in milliseconds.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getBufferedPercentage()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBufferedPercentage</h4>
<pre class="methodSignature">@IntRange(from=0L,
to=100L)
int&nbsp;getBufferedPercentage()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns an estimate of the percentage in the current content or ad up to which data is
buffered, or 0 if no estimate is available.</div>
</li>
</ul>
<a id="getTotalBufferedDuration()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTotalBufferedDuration</h4>
<pre class="methodSignature">long&nbsp;getTotalBufferedDuration()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns an estimate of the total buffered duration from the current position, in milliseconds.
This includes pre-buffered data for subsequent ads and <a href="MediaItem.html" title="class in com.google.android.exoplayer2">media items</a>.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="isCurrentWindowDynamic()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCurrentWindowDynamic</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
boolean&nbsp;isCurrentWindowDynamic()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#isCurrentMediaItemDynamic()"><code>isCurrentMediaItemDynamic()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="isCurrentMediaItemDynamic()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCurrentMediaItemDynamic</h4>
<pre class="methodSignature">boolean&nbsp;isCurrentMediaItemDynamic()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> is dynamic (may change when the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>
is updated), or <code>false</code> if the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is empty.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Timeline.Window.html#isDynamic"><code>Timeline.Window.isDynamic</code></a></dd>
</dl>
</li>
</ul>
<a id="isCurrentWindowLive()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCurrentWindowLive</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
boolean&nbsp;isCurrentWindowLive()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#isCurrentMediaItemLive()"><code>isCurrentMediaItemLive()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="isCurrentMediaItemLive()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCurrentMediaItemLive</h4>
<pre class="methodSignature">boolean&nbsp;isCurrentMediaItemLive()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> is live, or <code>false</code> if the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>
is empty.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Timeline.Window.html#isLive()"><code>Timeline.Window.isLive()</code></a></dd>
</dl>
</li>
</ul>
<a id="getCurrentLiveOffset()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentLiveOffset</h4>
<pre class="methodSignature">long&nbsp;getCurrentLiveOffset()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the offset of the current playback position from the live edge in milliseconds, or
<a href="C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> <a href="#isCurrentMediaItemLive()"><code>isCurrentMediaItemLive()</code></a> isn't
live} or the offset is unknown.
<p>The offset is calculated as <code>currentTime - playbackPosition</code>, so should usually be
positive.
<p>Note that this offset may rely on an accurate local time, so this method may return an
incorrect value if the difference between system clock and server clock is unknown.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="isCurrentWindowSeekable()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCurrentWindowSeekable</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
boolean&nbsp;isCurrentWindowSeekable()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#isCurrentMediaItemSeekable()"><code>isCurrentMediaItemSeekable()</code></a> instead.</div>
</div>
</li>
</ul>
<a id="isCurrentMediaItemSeekable()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCurrentMediaItemSeekable</h4>
<pre class="methodSignature">boolean&nbsp;isCurrentMediaItemSeekable()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the current <a href="MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> is seekable, or <code>false</code> if the <a href="Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is empty.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Timeline.Window.html#isSeekable"><code>Timeline.Window.isSeekable</code></a></dd>
</dl>
</li>
</ul>
<a id="isPlayingAd()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPlayingAd</h4>
<pre class="methodSignature">boolean&nbsp;isPlayingAd()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns whether the player is currently playing an ad.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getCurrentAdGroupIndex()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentAdGroupIndex</h4>
<pre class="methodSignature">int&nbsp;getCurrentAdGroupIndex()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns true, returns the index of the ad group in the period
currently being played. Returns <a href="C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a> otherwise.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getCurrentAdIndexInAdGroup()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentAdIndexInAdGroup</h4>
<pre class="methodSignature">int&nbsp;getCurrentAdIndexInAdGroup()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns true, returns the index of the ad in its ad group. Returns
<a href="C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a> otherwise.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getContentDuration()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getContentDuration</h4>
<pre class="methodSignature">long&nbsp;getContentDuration()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns <code>true</code>, returns the duration of the current content in
milliseconds, or <a href="C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if the duration is not known. If there is no ad playing,
the returned duration is the same as that returned by <a href="#getDuration()"><code>getDuration()</code></a>.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getContentPosition()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getContentPosition</h4>
<pre class="methodSignature">long&nbsp;getContentPosition()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns <code>true</code>, returns the content position that will be
played once all ads in the ad group have finished playing, in milliseconds. If there is no ad
playing, the returned position is the same as that returned by <a href="#getCurrentPosition()"><code>getCurrentPosition()</code></a>.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getContentBufferedPosition()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getContentBufferedPosition</h4>
<pre class="methodSignature">long&nbsp;getContentBufferedPosition()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">If <a href="#isPlayingAd()"><code>isPlayingAd()</code></a> returns <code>true</code>, returns an estimate of the content position in
the current content up to which data is buffered, in milliseconds. If there is no ad playing,
the returned position is the same as that returned by <a href="#getBufferedPosition()"><code>getBufferedPosition()</code></a>.
<p>This method must only be called if <a href="#COMMAND_GET_CURRENT_MEDIA_ITEM"><code>COMMAND_GET_CURRENT_MEDIA_ITEM</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getAudioAttributes()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAudioAttributes</h4>
<pre class="methodSignature"><a href="audio/AudioAttributes.html" title="class in com.google.android.exoplayer2.audio">AudioAttributes</a>&nbsp;getAudioAttributes()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the attributes for audio playback.
<p>This method must only be called if <a href="#COMMAND_GET_AUDIO_ATTRIBUTES"><code>COMMAND_GET_AUDIO_ATTRIBUTES</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="setVolume(float)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVolume</h4>
<pre class="methodSignature">void&nbsp;setVolume&#8203;(@FloatRange(from=0.0,to=1.0)
float&nbsp;volume)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal
unchanged), inclusive.
<p>This method must only be called if <a href="#COMMAND_SET_VOLUME"><code>COMMAND_SET_VOLUME</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>volume</code> - Linear output gain to apply to all audio channels.</dd>
</dl>
</li>
</ul>
<a id="getVolume()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVolume</h4>
<pre class="methodSignature">@FloatRange(from=0.0,
to=1.0)
float&nbsp;getVolume()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
<p>This method must only be called if <a href="#COMMAND_GET_VOLUME"><code>COMMAND_GET_VOLUME</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The linear gain applied to all audio channels.</dd>
</dl>
</li>
</ul>
<a id="clearVideoSurface()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearVideoSurface</h4>
<pre class="methodSignature">void&nbsp;clearVideoSurface()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears any <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink"><code>Surface</code></a>, <a href="https://developer.android.com/reference/android/view/SurfaceHolder.html?is-external=true" title="class or interface in android.view" class="externalLink"><code>SurfaceHolder</code></a>, <a href="https://developer.android.com/reference/android/view/SurfaceView.html?is-external=true" title="class or interface in android.view" class="externalLink"><code>SurfaceView</code></a> or <a href="https://developer.android.com/reference/android/view/TextureView.html?is-external=true" title="class or interface in android.view" class="externalLink" target="_top"><code>TextureView</code></a>
currently set on the player.
<p>This method must only be called if <a href="#COMMAND_SET_VIDEO_SURFACE"><code>COMMAND_SET_VIDEO_SURFACE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="clearVideoSurface(android.view.Surface)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearVideoSurface</h4>
<pre class="methodSignature">void&nbsp;clearVideoSurface&#8203;(@Nullable
<a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top">Surface</a>&nbsp;surface)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> onto which video is being rendered if it matches the one passed.
Else does nothing.
<p>This method must only be called if <a href="#COMMAND_SET_VIDEO_SURFACE"><code>COMMAND_SET_VIDEO_SURFACE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>surface</code> - The surface to clear.</dd>
</dl>
</li>
</ul>
<a id="setVideoSurface(android.view.Surface)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVideoSurface</h4>
<pre class="methodSignature">void&nbsp;setVideoSurface&#8203;(@Nullable
<a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top">Surface</a>&nbsp;surface)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> onto which video will be rendered. The caller is responsible for
tracking the lifecycle of the surface, and must clear the surface by calling <code>
setVideoSurface(null)</code> if the surface is destroyed.
<p>If the surface is held by a <a href="https://developer.android.com/reference/android/view/SurfaceView.html" title="class or interface in android.view" class="externalLink"><code>SurfaceView</code></a>, <a href="https://developer.android.com/reference/android/view/TextureView.html?is-external=true" title="class or interface in android.view" class="externalLink"><code>TextureView</code></a> or <a href="https://developer.android.com/reference/android/view/SurfaceHolder.html?is-external=true" title="class or interface in android.view" class="externalLink"><code>SurfaceHolder</code></a> then it's recommended to use <a href="#setVideoSurfaceView(android.view.SurfaceView)"><code>setVideoSurfaceView(SurfaceView)</code></a>, <a href="#setVideoTextureView(android.view.TextureView)"><code>setVideoTextureView(TextureView)</code></a> or <a href="#setVideoSurfaceHolder(android.view.SurfaceHolder)" target="_top"><code>setVideoSurfaceHolder(SurfaceHolder)</code></a> rather than
this method, since passing the holder allows the player to track the lifecycle of the surface
automatically.
<p>This method must only be called if <a href="#COMMAND_SET_VIDEO_SURFACE"><code>COMMAND_SET_VIDEO_SURFACE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>surface</code> - The <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setVideoSurfaceHolder(android.view.SurfaceHolder)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVideoSurfaceHolder</h4>
<pre class="methodSignature">void&nbsp;setVideoSurfaceHolder&#8203;(@Nullable
<a href="https://developer.android.com/reference/android/view/SurfaceHolder.html" title="class or interface in android.view" class="externalLink" target="_top">SurfaceHolder</a>&nbsp;surfaceHolder)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="https://developer.android.com/reference/android/view/SurfaceHolder.html" title="class or interface in android.view" class="externalLink"><code>SurfaceHolder</code></a> that holds the <a href="https://developer.android.com/reference/android/view/Surface.html?is-external=true" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> onto which video will be
rendered. The player will track the lifecycle of the surface automatically.
<p>The thread that calls the <a href="https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html" title="class or interface in android.view" class="externalLink" target="_top"><code>SurfaceHolder.Callback</code></a> methods must be the thread
associated with <a href="#getApplicationLooper()"><code>getApplicationLooper()</code></a>.
<p>This method must only be called if <a href="#COMMAND_SET_VIDEO_SURFACE"><code>COMMAND_SET_VIDEO_SURFACE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>surfaceHolder</code> - The surface holder.</dd>
</dl>
</li>
</ul>
<a id="clearVideoSurfaceHolder(android.view.SurfaceHolder)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearVideoSurfaceHolder</h4>
<pre class="methodSignature">void&nbsp;clearVideoSurfaceHolder&#8203;(@Nullable
<a href="https://developer.android.com/reference/android/view/SurfaceHolder.html" title="class or interface in android.view" class="externalLink" target="_top">SurfaceHolder</a>&nbsp;surfaceHolder)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the <a href="https://developer.android.com/reference/android/view/SurfaceHolder.html" title="class or interface in android.view" class="externalLink"><code>SurfaceHolder</code></a> that holds the <a href="https://developer.android.com/reference/android/view/Surface.html?is-external=true" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> onto which video is being
rendered if it matches the one passed. Else does nothing.
<p>This method must only be called if <a href="#COMMAND_SET_VIDEO_SURFACE"><code>COMMAND_SET_VIDEO_SURFACE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>surfaceHolder</code> - The surface holder to clear.</dd>
</dl>
</li>
</ul>
<a id="setVideoSurfaceView(android.view.SurfaceView)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVideoSurfaceView</h4>
<pre class="methodSignature">void&nbsp;setVideoSurfaceView&#8203;(@Nullable
<a href="https://developer.android.com/reference/android/view/SurfaceView.html" title="class or interface in android.view" class="externalLink" target="_top">SurfaceView</a>&nbsp;surfaceView)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="https://developer.android.com/reference/android/view/SurfaceView.html" title="class or interface in android.view" class="externalLink" target="_top"><code>SurfaceView</code></a> onto which video will be rendered. The player will track the
lifecycle of the surface automatically.
<p>The thread that calls the <a href="https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html" title="class or interface in android.view" class="externalLink" target="_top"><code>SurfaceHolder.Callback</code></a> methods must be the thread
associated with <a href="#getApplicationLooper()"><code>getApplicationLooper()</code></a>.
<p>This method must only be called if <a href="#COMMAND_SET_VIDEO_SURFACE"><code>COMMAND_SET_VIDEO_SURFACE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>surfaceView</code> - The surface view.</dd>
</dl>
</li>
</ul>
<a id="clearVideoSurfaceView(android.view.SurfaceView)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearVideoSurfaceView</h4>
<pre class="methodSignature">void&nbsp;clearVideoSurfaceView&#8203;(@Nullable
<a href="https://developer.android.com/reference/android/view/SurfaceView.html" title="class or interface in android.view" class="externalLink" target="_top">SurfaceView</a>&nbsp;surfaceView)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the <a href="https://developer.android.com/reference/android/view/SurfaceView.html" title="class or interface in android.view" class="externalLink" target="_top"><code>SurfaceView</code></a> onto which video is being rendered if it matches the one passed.
Else does nothing.
<p>This method must only be called if <a href="#COMMAND_SET_VIDEO_SURFACE"><code>COMMAND_SET_VIDEO_SURFACE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>surfaceView</code> - The texture view to clear.</dd>
</dl>
</li>
</ul>
<a id="setVideoTextureView(android.view.TextureView)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVideoTextureView</h4>
<pre class="methodSignature">void&nbsp;setVideoTextureView&#8203;(@Nullable
<a href="https://developer.android.com/reference/android/view/TextureView.html" title="class or interface in android.view" class="externalLink" target="_top">TextureView</a>&nbsp;textureView)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the <a href="https://developer.android.com/reference/android/view/TextureView.html" title="class or interface in android.view" class="externalLink" target="_top"><code>TextureView</code></a> onto which video will be rendered. The player will track the
lifecycle of the surface automatically.
<p>The thread that calls the <a href="https://developer.android.com/reference/android/view/TextureView.SurfaceTextureListener.html" title="class or interface in android.view" class="externalLink" target="_top"><code>TextureView.SurfaceTextureListener</code></a> methods must be the
thread associated with <a href="#getApplicationLooper()"><code>getApplicationLooper()</code></a>.
<p>This method must only be called if <a href="#COMMAND_SET_VIDEO_SURFACE"><code>COMMAND_SET_VIDEO_SURFACE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>textureView</code> - The texture view.</dd>
</dl>
</li>
</ul>
<a id="clearVideoTextureView(android.view.TextureView)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearVideoTextureView</h4>
<pre class="methodSignature">void&nbsp;clearVideoTextureView&#8203;(@Nullable
<a href="https://developer.android.com/reference/android/view/TextureView.html" title="class or interface in android.view" class="externalLink" target="_top">TextureView</a>&nbsp;textureView)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Clears the <a href="https://developer.android.com/reference/android/view/TextureView.html" title="class or interface in android.view" class="externalLink" target="_top"><code>TextureView</code></a> onto which video is being rendered if it matches the one passed.
Else does nothing.
<p>This method must only be called if <a href="#COMMAND_SET_VIDEO_SURFACE"><code>COMMAND_SET_VIDEO_SURFACE</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>textureView</code> - The texture view to clear.</dd>
</dl>
</li>
</ul>
<a id="getVideoSize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVideoSize</h4>
<pre class="methodSignature"><a href="video/VideoSize.html" title="class in com.google.android.exoplayer2.video">VideoSize</a>&nbsp;getVideoSize()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets the size of the video.
<p>The video's width and height are <code>0</code> if there is <a href="Tracks.html#isTypeSupported(@com.google.android.exoplayer2.C.TrackTypeint)">no supported video track</a> or its size has not been determined yet.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onVideoSizeChanged(com.google.android.exoplayer2.video.VideoSize)"><code>Player.Listener.onVideoSizeChanged(VideoSize)</code></a></dd>
</dl>
</li>
</ul>
<a id="getSurfaceSize()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getSurfaceSize</h4>
<pre class="methodSignature"><a href="util/Size.html" title="class in com.google.android.exoplayer2.util">Size</a>&nbsp;getSurfaceSize()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets the size of the surface on which the video is rendered.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="Player.Listener.html#onSurfaceSizeChanged(int,int)"><code>Player.Listener.onSurfaceSizeChanged(int, int)</code></a></dd>
</dl>
</li>
</ul>
<a id="getCurrentCues()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentCues</h4>
<pre class="methodSignature"><a href="text/CueGroup.html" title="class in com.google.android.exoplayer2.text">CueGroup</a>&nbsp;getCurrentCues()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Returns the current <a href="text/CueGroup.html" title="class in com.google.android.exoplayer2.text"><code>CueGroup</code></a>.
<p>This method must only be called if <a href="#COMMAND_GET_TEXT"><code>COMMAND_GET_TEXT</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="getDeviceInfo()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDeviceInfo</h4>
<pre class="methodSignature"><a href="DeviceInfo.html" title="class in com.google.android.exoplayer2">DeviceInfo</a>&nbsp;getDeviceInfo()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets the device information.</div>
</li>
</ul>
<a id="getDeviceVolume()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDeviceVolume</h4>
<pre class="methodSignature">@IntRange(from=0L)
int&nbsp;getDeviceVolume()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets the current volume of the device.
<p>For devices with <a href="DeviceInfo.html#PLAYBACK_TYPE_LOCAL"><code>local playback</code></a>, the volume returned
by this method varies according to the current <a href="C.StreamType.html" title="annotation in com.google.android.exoplayer2"><code>stream type</code></a>. The stream
type is determined by <a href="audio/AudioAttributes.html#usage"><code>AudioAttributes.usage</code></a> which can be converted to stream type with
<a href="util/Util.html#getStreamTypeForAudioUsage(@com.google.android.exoplayer2.C.AudioUsageint)"><code>Util.getStreamTypeForAudioUsage(int)</code></a>.
<p>For devices with <a href="DeviceInfo.html#PLAYBACK_TYPE_REMOTE"><code>remote playback</code></a>, the volume of the
remote device is returned.
<p>This method must only be called if <a href="#COMMAND_GET_DEVICE_VOLUME"><code>COMMAND_GET_DEVICE_VOLUME</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="isDeviceMuted()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isDeviceMuted</h4>
<pre class="methodSignature">boolean&nbsp;isDeviceMuted()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Gets whether the device is muted or not.
<p>This method must only be called if <a href="#COMMAND_GET_DEVICE_VOLUME"><code>COMMAND_GET_DEVICE_VOLUME</code></a> is <a href="#getAvailableCommands()">available</a>.</div>
</li>
</ul>
<a id="setDeviceVolume(int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDeviceVolume</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
void&nbsp;setDeviceVolume&#8203;(@IntRange(from=0L)
int&nbsp;volume)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#setDeviceVolume(int,int)"><code>setDeviceVolume(int, int)</code></a> instead.</div>
</div>
</li>
</ul>
<a id="setDeviceVolume(int,int)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDeviceVolume</h4>
<pre class="methodSignature">void&nbsp;setDeviceVolume&#8203;(@IntRange(from=0L)
int&nbsp;volume,
int&nbsp;flags)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the volume of the device with volume flags.
<p>This method must only be called if <a href="#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS"><code>COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS</code></a> is
<a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>volume</code> - The volume to set.</dd>
<dd><code>flags</code> - Either 0 or a bitwise combination of one or more <a href="C.VolumeFlags.html" title="annotation in com.google.android.exoplayer2"><code>C.VolumeFlags</code></a>.</dd>
</dl>
</li>
</ul>
<a id="increaseDeviceVolume()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>increaseDeviceVolume</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
void&nbsp;increaseDeviceVolume()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#increaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)"><code>increaseDeviceVolume(int)</code></a> instead.</div>
</div>
</li>
</ul>
<a id="increaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>increaseDeviceVolume</h4>
<pre class="methodSignature">void&nbsp;increaseDeviceVolume&#8203;(@com.google.android.exoplayer2.C.VolumeFlags int&nbsp;flags)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Increases the volume of the device.
<p>The <a href="#getDeviceVolume()"><code>getDeviceVolume()</code></a> device volume cannot be increased above <a href="DeviceInfo.html#maxVolume"><code>DeviceInfo.maxVolume</code></a>, if defined.
<p>This method must only be called if <a href="#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS"><code>COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS</code></a> is
<a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>flags</code> - Either 0 or a bitwise combination of one or more <a href="C.VolumeFlags.html" title="annotation in com.google.android.exoplayer2"><code>C.VolumeFlags</code></a>.</dd>
</dl>
</li>
</ul>
<a id="decreaseDeviceVolume()">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>decreaseDeviceVolume</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
void&nbsp;decreaseDeviceVolume()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#decreaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)"><code>decreaseDeviceVolume(int)</code></a> instead.</div>
</div>
</li>
</ul>
<a id="decreaseDeviceVolume(@com.google.android.exoplayer2.C.VolumeFlagsint)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>decreaseDeviceVolume</h4>
<pre class="methodSignature">void&nbsp;decreaseDeviceVolume&#8203;(@com.google.android.exoplayer2.C.VolumeFlags int&nbsp;flags)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Decreases the volume of the device.
<p>The <a href="#getDeviceVolume()"><code>getDeviceVolume()</code></a> device volume cannot be decreased below <a href="DeviceInfo.html#minVolume"><code>DeviceInfo.minVolume</code></a>.
<p>This method must only be called if <a href="#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS"><code>COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS</code></a> is
<a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>flags</code> - Either 0 or a bitwise combination of one or more <a href="C.VolumeFlags.html" title="annotation in com.google.android.exoplayer2"><code>C.VolumeFlags</code></a>.</dd>
</dl>
</li>
</ul>
<a id="setDeviceMuted(boolean)">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDeviceMuted</h4>
<pre class="methodSignature"><a href="https://developer.android.com/reference/java/lang/Deprecated.html" title="class or interface in java.lang" class="externalLink" target="_top">@Deprecated</a>
void&nbsp;setDeviceMuted&#8203;(boolean&nbsp;muted)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="#setDeviceMuted(boolean,@com.google.android.exoplayer2.C.VolumeFlagsint)"><code>setDeviceMuted(boolean, int)</code></a> instead.</div>
</div>
</li>
</ul>
<a id="setDeviceMuted(boolean,@com.google.android.exoplayer2.C.VolumeFlagsint)">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setDeviceMuted</h4>
<pre class="methodSignature">void&nbsp;setDeviceMuted&#8203;(boolean&nbsp;muted,
@com.google.android.exoplayer2.C.VolumeFlags int&nbsp;flags)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span></div>
<div class="block">Sets the mute state of the device.
<p>This method must only be called if <a href="#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS"><code>COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS</code></a> is
<a href="#getAvailableCommands()">available</a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>muted</code> - Whether to set the device to be muted or not</dd>
<dd><code>flags</code> - Either 0 or a bitwise combination of one or more <a href="C.VolumeFlags.html" title="annotation in com.google.android.exoplayer2"><code>C.VolumeFlags</code></a>.</dd>
</dl>
</li>
</ul>
</li>
</ul>
</section>
</li>
</ul>
</div>
</div>
</main>
<!-- ========= END OF CLASS DATA ========= -->
<footer role="contentinfo">
<nav role="navigation">
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a id="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a id="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../index.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../index-all.html">Index</a></li>
<li><a href="../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses.html">All&nbsp;Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
</div>
<div>
<ul class="subNavList">
<li>Summary:&nbsp;</li>
<li><a href="#nested.class.summary">Nested</a>&nbsp;|&nbsp;</li>
<li><a href="#field.summary">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.summary">Method</a></li>
</ul>
<ul class="subNavList">
<li>Detail:&nbsp;</li>
<li><a href="#field.detail">Field</a>&nbsp;|&nbsp;</li>
<li>Constr&nbsp;|&nbsp;</li>
<li><a href="#method.detail">Method</a></li>
</ul>
</div>
<a id="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</nav>
</footer>
</body>
</html>