2021-04-21 11:00:57 +01:00

3021 lines
162 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- 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 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-1.10.2.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 methods = {"i0":6,"i1":6,"i2":6,"i3":6,"i4":6,"i5":6,"i6":6,"i7":6,"i8":6,"i9":6,"i10":6,"i11":6,"i12":6,"i13":6,"i14":6,"i15":6,"i16":6,"i17":6,"i18":6,"i19":6,"i20":6,"i21":38,"i22":6,"i23":6,"i24":6,"i25":6,"i26":6,"i27":6,"i28":6,"i29":6,"i30":6,"i31":6,"i32":38,"i33":6,"i34":6,"i35":6,"i36":6,"i37":6,"i38":6,"i39":6,"i40":6,"i41":6,"i42":6,"i43":6,"i44":6,"i45":6,"i46":6,"i47":6,"i48":6,"i49":6,"i50":6,"i51":6,"i52":6,"i53":6,"i54":6,"i55":6,"i56":6,"i57":6,"i58":6,"i59":6,"i60":6,"i61":6,"i62":6,"i63":6,"i64":6,"i65":6,"i66":6,"i67":6,"i68":6,"i69":6,"i70":6,"i71":6,"i72":6,"i73":6,"i74":6,"i75":6,"i76":6,"i77":6,"i78":6,"i79":6,"i80":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 = "../../../../";loadScripts(document, 'script');</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<div class="fixedNav">
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar.top">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.top.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.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">
<li><a href="../../../../com/google/android/exoplayer2/PlaybackPreparer.html" title="interface in com.google.android.exoplayer2"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/google/android/exoplayer2/Player.AudioComponent.html" title="interface in com.google.android.exoplayer2"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/google/android/exoplayer2/Player.html" target="_top">Frames</a></li>
<li><a href="Player.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../allclasses-noframe.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 name="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>
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<div class="subTitle"><span class="packageLabelInType">Package</span>&nbsp;<a href="../../../../com/google/android/exoplayer2/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="../../../../com/google/android/exoplayer2/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="../../../../com/google/android/exoplayer2/BasePlayer.html" title="class in com.google.android.exoplayer2">BasePlayer</a></code>, <code><a href="../../../../com/google/android/exoplayer2/ext/cast/CastPlayer.html" title="class in com.google.android.exoplayer2.ext.cast">CastPlayer</a></code>, <code><a href="../../../../com/google/android/exoplayer2/SimpleExoPlayer.html" title="class in com.google.android.exoplayer2">SimpleExoPlayer</a></code>, <code><a href="../../../../com/google/android/exoplayer2/testutil/StubExoPlayer.html" title="class in com.google.android.exoplayer2.testutil">StubExoPlayer</a></code></dd>
</dl>
<hr>
<pre>public interface <span class="typeNameLabel">Player</span></pre>
<div class="block">A media player interface defining traditional high-level functionality, such as the ability to
play, pause, seek and query properties of the currently playing media.
<p>Some important properties of media players that implement this interface are:
<ul>
<li>They can provide a <a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> representing the structure of the media being played,
which can be obtained by calling <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTimeline--"><code>getCurrentTimeline()</code></a>.
<li>They can provide a <a href="../../../../com/google/android/exoplayer2/source/TrackGroupArray.html" title="class in com.google.android.exoplayer2.source"><code>TrackGroupArray</code></a> defining the currently available tracks, which
can be obtained by calling <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTrackGroups--"><code>getCurrentTrackGroups()</code></a>.
<li>They contain a number of renderers, each of which is able to render tracks of a single type
(e.g. audio, video or text). The number of renderers and their respective track types can
be obtained by calling <a href="../../../../com/google/android/exoplayer2/Player.html#getRendererCount--"><code>getRendererCount()</code></a> and <a href="../../../../com/google/android/exoplayer2/Player.html#getRendererType-int-"><code>getRendererType(int)</code></a>.
<li>They can provide a <a href="../../../../com/google/android/exoplayer2/trackselection/TrackSelectionArray.html" title="class in com.google.android.exoplayer2.trackselection"><code>TrackSelectionArray</code></a> defining which of the currently available
tracks are selected to be rendered by each renderer. This can be obtained by calling <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTrackSelections--"><code>getCurrentTrackSelections()</code></a>}.
</ul></div>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- ======== NESTED CLASS SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="nested.class.summary">
<!-- -->
</a>
<h3>Nested Class Summary</h3>
<table class="memberSummary" summary="Nested Class Summary table, listing nested classes, and an explanation">
<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="../../../../com/google/android/exoplayer2/Player.AudioComponent.html" title="interface in com.google.android.exoplayer2">Player.AudioComponent</a></span></code></th>
<td class="colLast">
<div class="block">The audio component of a <a href="../../../../com/google/android/exoplayer2/Player.html" title="interface in com.google.android.exoplayer2"><code>Player</code></a>.</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="../../../../com/google/android/exoplayer2/Player.DefaultEventListener.html" title="class in com.google.android.exoplayer2">Player.DefaultEventListener</a></span></code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="../../../../com/google/android/exoplayer2/Player.EventListener.html" title="interface in com.google.android.exoplayer2"><code>Player.EventListener</code></a> interface directly for selective overrides as all methods
are implemented as no-op default methods.</div>
</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="../../../../com/google/android/exoplayer2/Player.DeviceComponent.html" title="interface in com.google.android.exoplayer2">Player.DeviceComponent</a></span></code></th>
<td class="colLast">
<div class="block">The device component of a <a href="../../../../com/google/android/exoplayer2/Player.html" title="interface in com.google.android.exoplayer2"><code>Player</code></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="../../../../com/google/android/exoplayer2/Player.DiscontinuityReason.html" title="annotation in com.google.android.exoplayer2">Player.DiscontinuityReason</a></span></code></th>
<td class="colLast">
<div class="block">Reasons for position discontinuities.</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="../../../../com/google/android/exoplayer2/Player.EventFlags.html" title="annotation in com.google.android.exoplayer2">Player.EventFlags</a></span></code></th>
<td class="colLast">
<div class="block">Events that can be reported via <a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onEvents-com.google.android.exoplayer2.Player-com.google.android.exoplayer2.Player.Events-"><code>Player.EventListener.onEvents(Player, Events)</code></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="../../../../com/google/android/exoplayer2/Player.EventListener.html" title="interface in com.google.android.exoplayer2">Player.EventListener</a></span></code></th>
<td class="colLast">
<div class="block">Listener of changes in player state.</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="../../../../com/google/android/exoplayer2/Player.Events.html" title="class in com.google.android.exoplayer2">Player.Events</a></span></code></th>
<td class="colLast">
<div class="block">A set of <a href="../../../../com/google/android/exoplayer2/Player.EventFlags.html" title="annotation in com.google.android.exoplayer2"><code>Player.EventFlags</code></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="../../../../com/google/android/exoplayer2/Player.MediaItemTransitionReason.html" title="annotation in com.google.android.exoplayer2">Player.MediaItemTransitionReason</a></span></code></th>
<td class="colLast">
<div class="block">Reasons for media item transitions.</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="../../../../com/google/android/exoplayer2/Player.MetadataComponent.html" title="interface in com.google.android.exoplayer2">Player.MetadataComponent</a></span></code></th>
<td class="colLast">
<div class="block">The metadata component of a <a href="../../../../com/google/android/exoplayer2/Player.html" title="interface in com.google.android.exoplayer2"><code>Player</code></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="../../../../com/google/android/exoplayer2/Player.PlaybackSuppressionReason.html" title="annotation in com.google.android.exoplayer2">Player.PlaybackSuppressionReason</a></span></code></th>
<td class="colLast">
<div class="block">Reason why playback is suppressed even though <a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.PlayWhenReadyChangeReason.html" title="annotation in com.google.android.exoplayer2">Player.PlayWhenReadyChangeReason</a></span></code></th>
<td class="colLast">
<div class="block">Reasons for <a href="../../../../com/google/android/exoplayer2/Player.html#getPlayWhenReady--"><code>playWhenReady</code></a> changes.</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="../../../../com/google/android/exoplayer2/Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2">Player.RepeatMode</a></span></code></th>
<td class="colLast">
<div class="block">Repeat modes for playback.</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="../../../../com/google/android/exoplayer2/Player.State.html" title="annotation in com.google.android.exoplayer2">Player.State</a></span></code></th>
<td class="colLast">
<div class="block">Playback state.</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="../../../../com/google/android/exoplayer2/Player.TextComponent.html" title="interface in com.google.android.exoplayer2">Player.TextComponent</a></span></code></th>
<td class="colLast">
<div class="block">The text component of a <a href="../../../../com/google/android/exoplayer2/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="../../../../com/google/android/exoplayer2/Player.TimelineChangeReason.html" title="annotation in com.google.android.exoplayer2">Player.TimelineChangeReason</a></span></code></th>
<td class="colLast">
<div class="block">Reasons for timeline changes.</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="../../../../com/google/android/exoplayer2/Player.VideoComponent.html" title="interface in com.google.android.exoplayer2">Player.VideoComponent</a></span></code></th>
<td class="colLast">
<div class="block">The video component of a <a href="../../../../com/google/android/exoplayer2/Player.html" title="interface in com.google.android.exoplayer2"><code>Player</code></a>.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.summary">
<!-- -->
</a>
<h3>Field Summary</h3>
<table class="memberSummary" summary="Field Summary table, listing fields, and an explanation">
<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="../../../../com/google/android/exoplayer2/Player.html#DISCONTINUITY_REASON_AD_INSERTION">DISCONTINUITY_REASON_AD_INSERTION</a></span></code></th>
<td class="colLast">
<div class="block">Discontinuity to or from an ad within one period in the timeline.</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="../../../../com/google/android/exoplayer2/Player.html#DISCONTINUITY_REASON_INTERNAL">DISCONTINUITY_REASON_INTERNAL</a></span></code></th>
<td class="colLast">
<div class="block">Discontinuity introduced internally by the source.</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="../../../../com/google/android/exoplayer2/Player.html#DISCONTINUITY_REASON_PERIOD_TRANSITION">DISCONTINUITY_REASON_PERIOD_TRANSITION</a></span></code></th>
<td class="colLast">
<div class="block">Automatic playback transition from one period in the timeline to the next.</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="../../../../com/google/android/exoplayer2/Player.html#DISCONTINUITY_REASON_SEEK">DISCONTINUITY_REASON_SEEK</a></span></code></th>
<td class="colLast">
<div class="block">Seek within the current period or to another period.</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="../../../../com/google/android/exoplayer2/Player.html#DISCONTINUITY_REASON_SEEK_ADJUSTMENT">DISCONTINUITY_REASON_SEEK_ADJUSTMENT</a></span></code></th>
<td class="colLast">
<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="rowColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#EVENT_IS_LOADING_CHANGED">EVENT_IS_LOADING_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.html#EVENT_IS_PLAYING_CHANGED">EVENT_IS_PLAYING_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.html#EVENT_MEDIA_ITEM_TRANSITION">EVENT_MEDIA_ITEM_TRANSITION</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentMediaItem--"><code>getCurrentMediaItem()</code></a> changed or the player started repeating the current item.</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="../../../../com/google/android/exoplayer2/Player.html#EVENT_PLAY_WHEN_READY_CHANGED">EVENT_PLAY_WHEN_READY_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlayWhenReady--"><code>getPlayWhenReady()</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="../../../../com/google/android/exoplayer2/Player.html#EVENT_PLAYBACK_PARAMETERS_CHANGED">EVENT_PLAYBACK_PARAMETERS_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackParameters--"><code>getPlaybackParameters()</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="../../../../com/google/android/exoplayer2/Player.html#EVENT_PLAYBACK_STATE_CHANGED">EVENT_PLAYBACK_STATE_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--"><code>getPlaybackState()</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="../../../../com/google/android/exoplayer2/Player.html#EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED">EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackSuppressionReason--"><code>getPlaybackSuppressionReason()</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="../../../../com/google/android/exoplayer2/Player.html#EVENT_PLAYER_ERROR">EVENT_PLAYER_ERROR</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlayerError--"><code>getPlayerError()</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="../../../../com/google/android/exoplayer2/Player.html#EVENT_POSITION_DISCONTINUITY">EVENT_POSITION_DISCONTINUITY</a></span></code></th>
<td class="colLast">
<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="../../../../com/google/android/exoplayer2/Player.html#EVENT_REPEAT_MODE_CHANGED">EVENT_REPEAT_MODE_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getRepeatMode--"><code>getRepeatMode()</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="../../../../com/google/android/exoplayer2/Player.html#EVENT_SHUFFLE_MODE_ENABLED_CHANGED">EVENT_SHUFFLE_MODE_ENABLED_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getShuffleModeEnabled--"><code>getShuffleModeEnabled()</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="../../../../com/google/android/exoplayer2/Player.html#EVENT_STATIC_METADATA_CHANGED">EVENT_STATIC_METADATA_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentStaticMetadata--"><code>getCurrentStaticMetadata()</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="../../../../com/google/android/exoplayer2/Player.html#EVENT_TIMELINE_CHANGED">EVENT_TIMELINE_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.html#EVENT_TRACKS_CHANGED">EVENT_TRACKS_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTrackGroups--"><code>getCurrentTrackGroups()</code></a> or <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTrackSelections--"><code>getCurrentTrackSelections()</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="../../../../com/google/android/exoplayer2/Player.html#MEDIA_ITEM_TRANSITION_REASON_AUTO">MEDIA_ITEM_TRANSITION_REASON_AUTO</a></span></code></th>
<td class="colLast">
<div class="block">Playback has automatically transitioned to the next media item.</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="../../../../com/google/android/exoplayer2/Player.html#MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED">MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED</a></span></code></th>
<td class="colLast">
<div class="block">The current media item has changed because of a change 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="../../../../com/google/android/exoplayer2/Player.html#MEDIA_ITEM_TRANSITION_REASON_REPEAT">MEDIA_ITEM_TRANSITION_REASON_REPEAT</a></span></code></th>
<td class="colLast">
<div class="block">The media item has been repeated.</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="../../../../com/google/android/exoplayer2/Player.html#MEDIA_ITEM_TRANSITION_REASON_SEEK">MEDIA_ITEM_TRANSITION_REASON_SEEK</a></span></code></th>
<td class="colLast">
<div class="block">A seek to another media item has occurred.</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="../../../../com/google/android/exoplayer2/Player.html#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">Playback has been paused to avoid becoming noisy.</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="../../../../com/google/android/exoplayer2/Player.html#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">Playback has been paused because of a loss of audio focus.</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="../../../../com/google/android/exoplayer2/Player.html#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">Playback has been paused at the end of a media item.</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="../../../../com/google/android/exoplayer2/Player.html#PLAY_WHEN_READY_CHANGE_REASON_REMOTE">PLAY_WHEN_READY_CHANGE_REASON_REMOTE</a></span></code></th>
<td class="colLast">
<div class="block">Playback has been started or paused because of a remote change.</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="../../../../com/google/android/exoplayer2/Player.html#PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST">PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST</a></span></code></th>
<td class="colLast">
<div class="block">Playback has been started or paused by a call to <a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.html#PLAYBACK_SUPPRESSION_REASON_NONE">PLAYBACK_SUPPRESSION_REASON_NONE</a></span></code></th>
<td class="colLast">
<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="../../../../com/google/android/exoplayer2/Player.html#PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS">PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS</a></span></code></th>
<td class="colLast">
<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="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ALL">REPEAT_MODE_ALL</a></span></code></th>
<td class="colLast">
<div class="block">Repeats the entire timeline infinitely.</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="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_OFF">REPEAT_MODE_OFF</a></span></code></th>
<td class="colLast">
<div class="block">Normal playback without repetition.</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="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE">REPEAT_MODE_ONE</a></span></code></th>
<td class="colLast">
<div class="block">Repeats the currently playing window infinitely during ongoing 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="../../../../com/google/android/exoplayer2/Player.html#STATE_BUFFERING">STATE_BUFFERING</a></span></code></th>
<td class="colLast">
<div class="block">The player is not 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="../../../../com/google/android/exoplayer2/Player.html#STATE_ENDED">STATE_ENDED</a></span></code></th>
<td class="colLast">
<div class="block">The player has finished playing the media.</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="../../../../com/google/android/exoplayer2/Player.html#STATE_IDLE">STATE_IDLE</a></span></code></th>
<td class="colLast">
<div class="block">The player does not have any media to play.</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="../../../../com/google/android/exoplayer2/Player.html#STATE_READY">STATE_READY</a></span></code></th>
<td class="colLast">
<div class="block">The player is able to immediately play from its current position.</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="../../../../com/google/android/exoplayer2/Player.html#TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED">TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED</a></span></code></th>
<td class="colLast">
<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="altColor">
<td class="colFirst"><code>static int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#TIMELINE_CHANGE_REASON_SOURCE_UPDATE">TIMELINE_CHANGE_REASON_SOURCE_UPDATE</a></span></code></th>
<td class="colLast">
<div class="block">Timeline changed as a result of a dynamic update introduced by the played media.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method.summary">
<!-- -->
</a>
<h3>Method Summary</h3>
<table class="memberSummary" summary="Method Summary table, listing methods, and an explanation">
<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="../../../../com/google/android/exoplayer2/Player.html#addListener-com.google.android.exoplayer2.Player.EventListener-">addListener</a></span>&#8203;(<a href="../../../../com/google/android/exoplayer2/Player.EventListener.html" title="interface in com.google.android.exoplayer2">Player.EventListener</a>&nbsp;listener)</code></th>
<td class="colLast">
<div class="block">Register a listener to receive 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="../../../../com/google/android/exoplayer2/Player.html#addMediaItem-int-com.google.android.exoplayer2.MediaItem-">addMediaItem</a></span>&#8203;(int&nbsp;index,
<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</code></th>
<td class="colLast">
<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="../../../../com/google/android/exoplayer2/Player.html#addMediaItem-com.google.android.exoplayer2.MediaItem-">addMediaItem</a></span>&#8203;(<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</code></th>
<td class="colLast">
<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="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</code></th>
<td class="colLast">
<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="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</code></th>
<td class="colLast">
<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>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#clearMediaItems--">clearMediaItems</a></span>()</code></th>
<td class="colLast">
<div class="block">Clears the playlist.</div>
</td>
</tr>
<tr id="i6" 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="../../../../com/google/android/exoplayer2/Player.html#getApplicationLooper--">getApplicationLooper</a></span>()</code></th>
<td class="colLast">
<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="i7" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/Player.AudioComponent.html" title="interface in com.google.android.exoplayer2">Player.AudioComponent</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getAudioComponent--">getAudioComponent</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the component of this player for audio output, or null if audio is not supported.</div>
</td>
</tr>
<tr id="i8" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getBufferedPercentage--">getBufferedPercentage</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns an estimate of the percentage in the current content window or ad up to which data is
buffered, or 0 if no estimate is available.</div>
</td>
</tr>
<tr id="i9" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getBufferedPosition--">getBufferedPosition</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns an estimate of the position in the current content window or ad up to which data is
buffered, in milliseconds.</div>
</td>
</tr>
<tr id="i10" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getContentBufferedPosition--">getContentBufferedPosition</a></span>()</code></th>
<td class="colLast">
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#isPlayingAd--"><code>isPlayingAd()</code></a> returns <code>true</code>, returns an estimate of the content position in
the current content window up to which data is buffered, in milliseconds.</div>
</td>
</tr>
<tr id="i11" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getContentDuration--">getContentDuration</a></span>()</code></th>
<td class="colLast">
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#isPlayingAd--"><code>isPlayingAd()</code></a> returns <code>true</code>, returns the duration of the current content
window in milliseconds, or <a href="../../../../com/google/android/exoplayer2/C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if the duration is not known.</div>
</td>
</tr>
<tr id="i12" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getContentPosition--">getContentPosition</a></span>()</code></th>
<td class="colLast">
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#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="i13" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentAdGroupIndex--">getCurrentAdGroupIndex</a></span>()</code></th>
<td class="colLast">
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#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="i14" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentAdIndexInAdGroup--">getCurrentAdIndexInAdGroup</a></span>()</code></th>
<td class="colLast">
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#isPlayingAd--"><code>isPlayingAd()</code></a> returns true, returns the index of the ad in its ad group.</div>
</td>
</tr>
<tr id="i15" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentLiveOffset--">getCurrentLiveOffset</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the offset of the current playback position from the live edge in milliseconds, or
<a href="../../../../com/google/android/exoplayer2/C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if the current window <a href="../../../../com/google/android/exoplayer2/Player.html#isCurrentWindowLive--"><code>isn't live</code></a> or the
offset is unknown.</div>
</td>
</tr>
<tr id="i16" 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="../../../../com/google/android/exoplayer2/Player.html#getCurrentManifest--">getCurrentManifest</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the current manifest.</div>
</td>
</tr>
<tr id="i17" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentMediaItem--">getCurrentMediaItem</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the media item of the current window in the timeline.</div>
</td>
</tr>
<tr id="i18" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentPeriodIndex--">getCurrentPeriodIndex</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the index of the period currently being played.</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="../../../../com/google/android/exoplayer2/Player.html#getCurrentPosition--">getCurrentPosition</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the playback position in the current content window or ad, in milliseconds, or the
prospective position in milliseconds if the <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTimeline--"><code>current timeline</code></a> is
empty.</div>
</td>
</tr>
<tr id="i20" class="altColor">
<td class="colFirst"><code><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="../../../../com/google/android/exoplayer2/metadata/Metadata.html" title="class in com.google.android.exoplayer2.metadata" target="_top">Metadata</a>&gt;</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentStaticMetadata--">getCurrentStaticMetadata</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the current static metadata for the track selections.</div>
</td>
</tr>
<tr id="i21" class="rowColor">
<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="../../../../com/google/android/exoplayer2/Player.html#getCurrentTag--">getCurrentTag</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentMediaItem--"><code>getCurrentMediaItem()</code></a> and <a href="../../../../com/google/android/exoplayer2/MediaItem.PlaybackProperties.html#tag"><code>MediaItem.PlaybackProperties.tag</code></a>
instead.</div>
</div>
</td>
</tr>
<tr id="i22" class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2">Timeline</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTimeline--">getCurrentTimeline</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the current <a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>.</div>
</td>
</tr>
<tr id="i23" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/source/TrackGroupArray.html" title="class in com.google.android.exoplayer2.source">TrackGroupArray</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTrackGroups--">getCurrentTrackGroups</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the available track groups.</div>
</td>
</tr>
<tr id="i24" class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/trackselection/TrackSelectionArray.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionArray</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTrackSelections--">getCurrentTrackSelections</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the current track selections for each renderer.</div>
</td>
</tr>
<tr id="i25" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentWindowIndex--">getCurrentWindowIndex</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the index of the current <a href="../../../../com/google/android/exoplayer2/Timeline.Window.html" title="class in com.google.android.exoplayer2"><code>window</code></a> in the <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTimeline--"><code>timeline</code></a>, or the prospective window index if the <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTimeline--"><code>current timeline</code></a> is empty.</div>
</td>
</tr>
<tr id="i26" class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/Player.DeviceComponent.html" title="interface in com.google.android.exoplayer2">Player.DeviceComponent</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getDeviceComponent--">getDeviceComponent</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the component of this player for playback device, or null if it's not supported.</div>
</td>
</tr>
<tr id="i27" class="rowColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getDuration--">getDuration</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the duration of the current content window or ad in milliseconds, or <a href="../../../../com/google/android/exoplayer2/C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if the duration is not known.</div>
</td>
</tr>
<tr id="i28" class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getMediaItemAt-int-">getMediaItemAt</a></span>&#8203;(int&nbsp;index)</code></th>
<td class="colLast">
<div class="block">Returns the <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> at the given index.</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="../../../../com/google/android/exoplayer2/Player.html#getMediaItemCount--">getMediaItemCount</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the number of <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>media items</code></a> in the playlist.</div>
</td>
</tr>
<tr id="i30" class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/Player.MetadataComponent.html" title="interface in com.google.android.exoplayer2">Player.MetadataComponent</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getMetadataComponent--">getMetadataComponent</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the component of this player for metadata output, or null if metadata is not supported.</div>
</td>
</tr>
<tr id="i31" class="rowColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getNextWindowIndex--">getNextWindowIndex</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the index of the window that will be played if <a href="../../../../com/google/android/exoplayer2/Player.html#next--"><code>next()</code></a> is called, which may
depend on the current repeat mode and whether shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i32" class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/ExoPlaybackException.html" title="class in com.google.android.exoplayer2">ExoPlaybackException</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackError--">getPlaybackError</a></span>()</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="../../../../com/google/android/exoplayer2/Player.html#getPlayerError--"><code>getPlayerError()</code></a> instead.</div>
</div>
</td>
</tr>
<tr id="i33" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/PlaybackParameters.html" title="class in com.google.android.exoplayer2">PlaybackParameters</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackParameters--">getPlaybackParameters</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the currently active playback parameters.</div>
</td>
</tr>
<tr id="i34" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--">getPlaybackState</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the current <a href="../../../../com/google/android/exoplayer2/Player.State.html" title="annotation in com.google.android.exoplayer2"><code>playback state</code></a> of the player.</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="../../../../com/google/android/exoplayer2/Player.html#getPlaybackSuppressionReason--">getPlaybackSuppressionReason</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the reason why playback is suppressed even though <a href="../../../../com/google/android/exoplayer2/Player.html#getPlayWhenReady--"><code>getPlayWhenReady()</code></a> is <code>
true</code>, or <a href="../../../../com/google/android/exoplayer2/Player.html#PLAYBACK_SUPPRESSION_REASON_NONE"><code>PLAYBACK_SUPPRESSION_REASON_NONE</code></a> if playback is not suppressed.</div>
</td>
</tr>
<tr id="i36" class="altColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/ExoPlaybackException.html" title="class in com.google.android.exoplayer2">ExoPlaybackException</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlayerError--">getPlayerError</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the error that caused playback to fail.</div>
</td>
</tr>
<tr id="i37" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getPlayWhenReady--">getPlayWhenReady</a></span>()</code></th>
<td class="colLast">
<div class="block">Whether playback will proceed when <a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--"><code>getPlaybackState()</code></a> == <a href="../../../../com/google/android/exoplayer2/Player.html#STATE_READY"><code>STATE_READY</code></a>.</div>
</td>
</tr>
<tr id="i38" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getPreviousWindowIndex--">getPreviousWindowIndex</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the index of the window that will be played if <a href="../../../../com/google/android/exoplayer2/Player.html#previous--"><code>previous()</code></a> is called, which may
depend on the current repeat mode and whether shuffle mode is enabled.</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="../../../../com/google/android/exoplayer2/Player.html#getRendererCount--">getRendererCount</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the number of renderers.</div>
</td>
</tr>
<tr id="i40" class="altColor">
<td class="colFirst"><code>int</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getRendererType-int-">getRendererType</a></span>&#8203;(int&nbsp;index)</code></th>
<td class="colLast">
<div class="block">Returns the track type that the renderer at a given index handles.</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="../../../../com/google/android/exoplayer2/Player.html#getRepeatMode--">getRepeatMode</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the current <a href="../../../../com/google/android/exoplayer2/Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2"><code>Player.RepeatMode</code></a> used for playback.</div>
</td>
</tr>
<tr id="i42" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getShuffleModeEnabled--">getShuffleModeEnabled</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether shuffling of windows is enabled.</div>
</td>
</tr>
<tr id="i43" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/Player.TextComponent.html" title="interface in com.google.android.exoplayer2">Player.TextComponent</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getTextComponent--">getTextComponent</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the component of this player for text output, or null if text is not supported.</div>
</td>
</tr>
<tr id="i44" class="altColor">
<td class="colFirst"><code>long</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getTotalBufferedDuration--">getTotalBufferedDuration</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns an estimate of the total buffered duration from the current position, in milliseconds.</div>
</td>
</tr>
<tr id="i45" class="rowColor">
<td class="colFirst"><code><a href="../../../../com/google/android/exoplayer2/Player.VideoComponent.html" title="interface in com.google.android.exoplayer2">Player.VideoComponent</a></code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#getVideoComponent--">getVideoComponent</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns the component of this player for video output, or null if video is not supported.</div>
</td>
</tr>
<tr id="i46" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#hasNext--">hasNext</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether a next window exists, which may depend on the current repeat mode and whether
shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i47" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#hasPrevious--">hasPrevious</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether a previous window exists, which may depend on the current repeat mode and
whether shuffle mode is enabled.</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="../../../../com/google/android/exoplayer2/Player.html#isCurrentWindowDynamic--">isCurrentWindowDynamic</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether the current window is dynamic, or <code>false</code> if the <a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is
empty.</div>
</td>
</tr>
<tr id="i49" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#isCurrentWindowLive--">isCurrentWindowLive</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether the current window is live, or <code>false</code> if the <a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is empty.</div>
</td>
</tr>
<tr id="i50" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#isCurrentWindowSeekable--">isCurrentWindowSeekable</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether the current window is seekable, or <code>false</code> if the <a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is
empty.</div>
</td>
</tr>
<tr id="i51" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#isLoading--">isLoading</a></span>()</code></th>
<td class="colLast">
<div class="block">Whether the player is currently loading the source.</div>
</td>
</tr>
<tr id="i52" class="altColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#isPlaying--">isPlaying</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether the player is playing, i.e.</div>
</td>
</tr>
<tr id="i53" class="rowColor">
<td class="colFirst"><code>boolean</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#isPlayingAd--">isPlayingAd</a></span>()</code></th>
<td class="colLast">
<div class="block">Returns whether the player is currently playing an ad.</div>
</td>
</tr>
<tr id="i54" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#moveMediaItem-int-int-">moveMediaItem</a></span>&#8203;(int&nbsp;currentIndex,
int&nbsp;newIndex)</code></th>
<td class="colLast">
<div class="block">Moves the media item at the current index to the new index.</div>
</td>
</tr>
<tr id="i55" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#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">Moves the media item range to the new index.</div>
</td>
</tr>
<tr id="i56" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#next--">next</a></span>()</code></th>
<td class="colLast">
<div class="block">Seeks to the default position of the next window, which may depend on the current repeat mode
and whether shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i57" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#pause--">pause</a></span>()</code></th>
<td class="colLast">
<div class="block">Pauses playback.</div>
</td>
</tr>
<tr id="i58" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#play--">play</a></span>()</code></th>
<td class="colLast">
<div class="block">Resumes playback as soon as <a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--"><code>getPlaybackState()</code></a> == <a href="../../../../com/google/android/exoplayer2/Player.html#STATE_READY"><code>STATE_READY</code></a>.</div>
</td>
</tr>
<tr id="i59" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#prepare--">prepare</a></span>()</code></th>
<td class="colLast">
<div class="block">Prepares the player.</div>
</td>
</tr>
<tr id="i60" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#previous--">previous</a></span>()</code></th>
<td class="colLast">
<div class="block">Seeks to the default position of the previous window, which may depend on the current repeat
mode and whether shuffle mode is enabled.</div>
</td>
</tr>
<tr id="i61" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#release--">release</a></span>()</code></th>
<td class="colLast">
<div class="block">Releases the player.</div>
</td>
</tr>
<tr id="i62" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#removeListener-com.google.android.exoplayer2.Player.EventListener-">removeListener</a></span>&#8203;(<a href="../../../../com/google/android/exoplayer2/Player.EventListener.html" title="interface in com.google.android.exoplayer2">Player.EventListener</a>&nbsp;listener)</code></th>
<td class="colLast">
<div class="block">Unregister a listener.</div>
</td>
</tr>
<tr id="i63" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#removeMediaItem-int-">removeMediaItem</a></span>&#8203;(int&nbsp;index)</code></th>
<td class="colLast">
<div class="block">Removes the media item at the given index of the playlist.</div>
</td>
</tr>
<tr id="i64" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#removeMediaItems-int-int-">removeMediaItems</a></span>&#8203;(int&nbsp;fromIndex,
int&nbsp;toIndex)</code></th>
<td class="colLast">
<div class="block">Removes a range of media items from the playlist.</div>
</td>
</tr>
<tr id="i65" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#seekTo-int-long-">seekTo</a></span>&#8203;(int&nbsp;windowIndex,
long&nbsp;positionMs)</code></th>
<td class="colLast">
<div class="block">Seeks to a position specified in milliseconds in the specified window.</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="../../../../com/google/android/exoplayer2/Player.html#seekTo-long-">seekTo</a></span>&#8203;(long&nbsp;positionMs)</code></th>
<td class="colLast">
<div class="block">Seeks to a position specified in milliseconds in the current window.</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="../../../../com/google/android/exoplayer2/Player.html#seekToDefaultPosition--">seekToDefaultPosition</a></span>()</code></th>
<td class="colLast">
<div class="block">Seeks to the default position associated with the current window.</div>
</td>
</tr>
<tr id="i68" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#seekToDefaultPosition-int-">seekToDefaultPosition</a></span>&#8203;(int&nbsp;windowIndex)</code></th>
<td class="colLast">
<div class="block">Seeks to the default position associated with the specified window.</div>
</td>
</tr>
<tr id="i69" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#setMediaItem-com.google.android.exoplayer2.MediaItem-">setMediaItem</a></span>&#8203;(<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</code></th>
<td class="colLast">
<div class="block">Clears the playlist, adds the specified <a href="../../../../com/google/android/exoplayer2/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="i70" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#setMediaItem-com.google.android.exoplayer2.MediaItem-boolean-">setMediaItem</a></span>&#8203;(<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem,
boolean&nbsp;resetPosition)</code></th>
<td class="colLast">
<div class="block">Clears the playlist and adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr id="i71" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#setMediaItem-com.google.android.exoplayer2.MediaItem-long-">setMediaItem</a></span>&#8203;(<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem,
long&nbsp;startPositionMs)</code></th>
<td class="colLast">
<div class="block">Clears the playlist and adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
</td>
</tr>
<tr id="i72" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</code></th>
<td class="colLast">
<div class="block">Clears the playlist, adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a> and resets the position to
the default position.</div>
</td>
</tr>
<tr id="i73" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/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">Clears the playlist and adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a>.</div>
</td>
</tr>
<tr id="i74" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems,
int&nbsp;startWindowIndex,
long&nbsp;startPositionMs)</code></th>
<td class="colLast">
<div class="block">Clears the playlist and adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a>.</div>
</td>
</tr>
<tr id="i75" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#setPlaybackParameters-com.google.android.exoplayer2.PlaybackParameters-">setPlaybackParameters</a></span>&#8203;(<a href="../../../../com/google/android/exoplayer2/PlaybackParameters.html" title="class in com.google.android.exoplayer2">PlaybackParameters</a>&nbsp;playbackParameters)</code></th>
<td class="colLast">
<div class="block">Attempts to set the playback parameters.</div>
</td>
</tr>
<tr id="i76" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#setPlayWhenReady-boolean-">setPlayWhenReady</a></span>&#8203;(boolean&nbsp;playWhenReady)</code></th>
<td class="colLast">
<div class="block">Sets whether playback should proceed when <a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--"><code>getPlaybackState()</code></a> == <a href="../../../../com/google/android/exoplayer2/Player.html#STATE_READY"><code>STATE_READY</code></a>.</div>
</td>
</tr>
<tr id="i77" class="rowColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#setRepeatMode-int-">setRepeatMode</a></span>&#8203;(int&nbsp;repeatMode)</code></th>
<td class="colLast">
<div class="block">Sets the <a href="../../../../com/google/android/exoplayer2/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="i78" class="altColor">
<td class="colFirst"><code>void</code></td>
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="../../../../com/google/android/exoplayer2/Player.html#setShuffleModeEnabled-boolean-">setShuffleModeEnabled</a></span>&#8203;(boolean&nbsp;shuffleModeEnabled)</code></th>
<td class="colLast">
<div class="block">Sets whether shuffling of windows is enabled.</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="../../../../com/google/android/exoplayer2/Player.html#stop--">stop</a></span>()</code></th>
<td class="colLast">
<div class="block">Stops playback without resetting the player.</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="../../../../com/google/android/exoplayer2/Player.html#stop-boolean-">stop</a></span>&#8203;(boolean&nbsp;reset)</code></th>
<td class="colLast">
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="../../../../com/google/android/exoplayer2/Player.html#stop--"><code>stop()</code></a> and <a href="../../../../com/google/android/exoplayer2/Player.html#clearMediaItems--"><code>clearMediaItems()</code></a> (if <code>reset</code> is true) or
just <a href="../../../../com/google/android/exoplayer2/Player.html#stop--"><code>stop()</code></a> (if <code>reset</code> is false).</div>
</div>
</td>
</tr>
</table>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field.detail">
<!-- -->
</a>
<h3>Field Detail</h3>
<a name="STATE_IDLE">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STATE_IDLE</h4>
<pre>static final&nbsp;int STATE_IDLE</pre>
<div class="block">The player does not have any media to play.</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 name="STATE_BUFFERING">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STATE_BUFFERING</h4>
<pre>static final&nbsp;int STATE_BUFFERING</pre>
<div class="block">The player is not able to immediately play from its current position. This state typically
occurs when more data needs to be loaded.</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 name="STATE_READY">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STATE_READY</h4>
<pre>static final&nbsp;int STATE_READY</pre>
<div class="block">The player is able to immediately play from its current position. The player will be playing if
<a href="../../../../com/google/android/exoplayer2/Player.html#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 name="STATE_ENDED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>STATE_ENDED</h4>
<pre>static final&nbsp;int STATE_ENDED</pre>
<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 name="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="block">Playback has been started or paused by a call to <a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="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 name="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="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 name="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="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 name="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="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 name="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="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 name="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="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 name="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="block">Normal playback without repetition. "Previous" and "Next" actions move to the previous and next
windows respectively, and do nothing when there is no previous or next window 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 name="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="block">Repeats the currently playing window infinitely during ongoing playback. "Previous" and "Next"
actions behave as they do in <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>, moving to the previous and next windows
respectively, and doing nothing when there is no previous or next window 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 name="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="block">Repeats the entire timeline infinitely. "Previous" and "Next" actions behave as they do in
<a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>, but with looping at the ends so that "Previous" when playing the
first window will move to the last window, and "Next" when playing the last window will move to
the first window.</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 name="DISCONTINUITY_REASON_PERIOD_TRANSITION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DISCONTINUITY_REASON_PERIOD_TRANSITION</h4>
<pre>static final&nbsp;int DISCONTINUITY_REASON_PERIOD_TRANSITION</pre>
<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.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.DISCONTINUITY_REASON_PERIOD_TRANSITION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="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="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 name="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="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 name="DISCONTINUITY_REASON_AD_INSERTION">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>DISCONTINUITY_REASON_AD_INSERTION</h4>
<pre>static final&nbsp;int DISCONTINUITY_REASON_AD_INSERTION</pre>
<div class="block">Discontinuity to or from an ad within one period in the timeline.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../constant-values.html#com.google.android.exoplayer2.Player.DISCONTINUITY_REASON_AD_INSERTION">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="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="block">Discontinuity introduced internally 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 name="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="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 name="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="block">Timeline changed as a result of a dynamic update introduced by the played media.</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 name="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="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 name="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="block">Playback has automatically transitioned to the next media item.</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 name="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="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 name="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="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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTrackGroups--"><code>getCurrentTrackGroups()</code></a> or <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTrackSelections--"><code>getCurrentTrackSelections()</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 name="EVENT_STATIC_METADATA_CHANGED">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>EVENT_STATIC_METADATA_CHANGED</h4>
<pre>static final&nbsp;int EVENT_STATIC_METADATA_CHANGED</pre>
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentStaticMetadata--"><code>getCurrentStaticMetadata()</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_STATIC_METADATA_CHANGED">Constant Field Values</a></dd>
</dl>
</li>
</ul>
<a name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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 name="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="block">A position discontinuity occurred. See <a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onPositionDiscontinuity-int-"><code>Player.EventListener.onPositionDiscontinuity(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 name="EVENT_PLAYBACK_PARAMETERS_CHANGED">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>EVENT_PLAYBACK_PARAMETERS_CHANGED</h4>
<pre>static final&nbsp;int EVENT_PLAYBACK_PARAMETERS_CHANGED</pre>
<div class="block"><a href="../../../../com/google/android/exoplayer2/Player.html#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>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method.detail">
<!-- -->
</a>
<h3>Method Detail</h3>
<a name="getAudioComponent--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getAudioComponent</h4>
<pre>@Nullable
<a href="../../../../com/google/android/exoplayer2/Player.AudioComponent.html" title="interface in com.google.android.exoplayer2">Player.AudioComponent</a>&nbsp;getAudioComponent()</pre>
<div class="block">Returns the component of this player for audio output, or null if audio is not supported.</div>
</li>
</ul>
<a name="getVideoComponent--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVideoComponent</h4>
<pre>@Nullable
<a href="../../../../com/google/android/exoplayer2/Player.VideoComponent.html" title="interface in com.google.android.exoplayer2">Player.VideoComponent</a>&nbsp;getVideoComponent()</pre>
<div class="block">Returns the component of this player for video output, or null if video is not supported.</div>
</li>
</ul>
<a name="getTextComponent--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextComponent</h4>
<pre>@Nullable
<a href="../../../../com/google/android/exoplayer2/Player.TextComponent.html" title="interface in com.google.android.exoplayer2">Player.TextComponent</a>&nbsp;getTextComponent()</pre>
<div class="block">Returns the component of this player for text output, or null if text is not supported.</div>
</li>
</ul>
<a name="getMetadataComponent--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMetadataComponent</h4>
<pre>@Nullable
<a href="../../../../com/google/android/exoplayer2/Player.MetadataComponent.html" title="interface in com.google.android.exoplayer2">Player.MetadataComponent</a>&nbsp;getMetadataComponent()</pre>
<div class="block">Returns the component of this player for metadata output, or null if metadata is not supported.</div>
</li>
</ul>
<a name="getDeviceComponent--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDeviceComponent</h4>
<pre>@Nullable
<a href="../../../../com/google/android/exoplayer2/Player.DeviceComponent.html" title="interface in com.google.android.exoplayer2">Player.DeviceComponent</a>&nbsp;getDeviceComponent()</pre>
<div class="block">Returns the component of this player for playback device, or null if it's not supported.</div>
</li>
</ul>
<a name="getApplicationLooper--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getApplicationLooper</h4>
<pre><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="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>
</li>
</ul>
<a name="addListener-com.google.android.exoplayer2.Player.EventListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addListener</h4>
<pre>void&nbsp;addListener&#8203;(<a href="../../../../com/google/android/exoplayer2/Player.EventListener.html" title="interface in com.google.android.exoplayer2">Player.EventListener</a>&nbsp;listener)</pre>
<div class="block">Register a listener to receive events from the player. The listener's methods will be called on
the thread that was used to construct the player. However, if the thread used to construct the
player does not have a <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>, then the listener will be called on the main thread.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - The listener to register.</dd>
</dl>
</li>
</ul>
<a name="removeListener-com.google.android.exoplayer2.Player.EventListener-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeListener</h4>
<pre>void&nbsp;removeListener&#8203;(<a href="../../../../com/google/android/exoplayer2/Player.EventListener.html" title="interface in com.google.android.exoplayer2">Player.EventListener</a>&nbsp;listener)</pre>
<div class="block">Unregister a listener. The listener will no longer receive events from the player.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>listener</code> - The listener to unregister.</dd>
</dl>
</li>
</ul>
<a name="setMediaItems-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItems</h4>
<pre>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="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</pre>
<div class="block">Clears the playlist, adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a> and resets the position to
the default position.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItems</code> - The new <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a>.</dd>
</dl>
</li>
</ul>
<a name="setMediaItems-java.util.List-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItems</h4>
<pre>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="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems,
boolean&nbsp;resetPosition)</pre>
<div class="block">Clears the playlist and adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItems</code> - The new <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a>.</dd>
<dd><code>resetPosition</code> - Whether the playback position should be reset to the default position in
the first <a href="../../../../com/google/android/exoplayer2/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="../../../../com/google/android/exoplayer2/Player.html#getCurrentWindowIndex--"><code>getCurrentWindowIndex()</code></a> and <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentPosition--"><code>getCurrentPosition()</code></a>.</dd>
</dl>
</li>
</ul>
<a name="setMediaItems-java.util.List-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItems</h4>
<pre>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="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems,
int&nbsp;startWindowIndex,
long&nbsp;startPositionMs)</pre>
<div class="block">Clears the playlist and adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItems</code> - The new <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a>.</dd>
<dd><code>startWindowIndex</code> - The window index to start playback from. If <a href="../../../../com/google/android/exoplayer2/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="../../../../com/google/android/exoplayer2/C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> is passed, the default position of the given window is used. In any case, if
<code>startWindowIndex</code> is set to <a href="../../../../com/google/android/exoplayer2/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="../../../../com/google/android/exoplayer2/IllegalSeekPositionException.html" title="class in com.google.android.exoplayer2">IllegalSeekPositionException</a></code> - If the provided <code>windowIndex</code> is not within the
bounds of the list of media items.</dd>
</dl>
</li>
</ul>
<a name="setMediaItem-com.google.android.exoplayer2.MediaItem-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItem</h4>
<pre>void&nbsp;setMediaItem&#8203;(<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</pre>
<div class="block">Clears the playlist, adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> and resets the position to the
default position.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItem</code> - The new <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</dd>
</dl>
</li>
</ul>
<a name="setMediaItem-com.google.android.exoplayer2.MediaItem-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItem</h4>
<pre>void&nbsp;setMediaItem&#8203;(<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem,
long&nbsp;startPositionMs)</pre>
<div class="block">Clears the playlist and adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItem</code> - The new <a href="../../../../com/google/android/exoplayer2/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 name="setMediaItem-com.google.android.exoplayer2.MediaItem-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMediaItem</h4>
<pre>void&nbsp;setMediaItem&#8203;(<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem,
boolean&nbsp;resetPosition)</pre>
<div class="block">Clears the playlist and adds the specified <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItem</code> - The new <a href="../../../../com/google/android/exoplayer2/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="../../../../com/google/android/exoplayer2/Player.html#getCurrentWindowIndex--"><code>getCurrentWindowIndex()</code></a>
and <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentPosition--"><code>getCurrentPosition()</code></a>.</dd>
</dl>
</li>
</ul>
<a name="addMediaItem-com.google.android.exoplayer2.MediaItem-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMediaItem</h4>
<pre>void&nbsp;addMediaItem&#8203;(<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</pre>
<div class="block">Adds a media item to the end of the playlist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItem</code> - The <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> to add.</dd>
</dl>
</li>
</ul>
<a name="addMediaItem-int-com.google.android.exoplayer2.MediaItem-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMediaItem</h4>
<pre>void&nbsp;addMediaItem&#8203;(int&nbsp;index,
<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;mediaItem)</pre>
<div class="block">Adds a media item at the given index of the playlist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The index at which to add the item.</dd>
<dd><code>mediaItem</code> - The <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> to add.</dd>
</dl>
</li>
</ul>
<a name="addMediaItems-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMediaItems</h4>
<pre>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="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</pre>
<div class="block">Adds a list of media items to the end of the playlist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>mediaItems</code> - The <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a> to add.</dd>
</dl>
</li>
</ul>
<a name="addMediaItems-int-java.util.List-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>addMediaItems</h4>
<pre>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="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2" target="_top">MediaItem</a>&gt;&nbsp;mediaItems)</pre>
<div class="block">Adds a list of media items at the given index of the playlist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The index at which to add the media items.</dd>
<dd><code>mediaItems</code> - The <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItems</code></a> to add.</dd>
</dl>
</li>
</ul>
<a name="moveMediaItem-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>moveMediaItem</h4>
<pre>void&nbsp;moveMediaItem&#8203;(int&nbsp;currentIndex,
int&nbsp;newIndex)</pre>
<div class="block">Moves the media item at the current index to the new index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>currentIndex</code> - The current index of the media item to move.</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 name="moveMediaItems-int-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>moveMediaItems</h4>
<pre>void&nbsp;moveMediaItems&#8203;(int&nbsp;fromIndex,
int&nbsp;toIndex,
int&nbsp;newIndex)</pre>
<div class="block">Moves the media item range to the new index.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fromIndex</code> - The start of the range to move.</dd>
<dd><code>toIndex</code> - The first item not to be included in the range (exclusive).</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 name="removeMediaItem-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeMediaItem</h4>
<pre>void&nbsp;removeMediaItem&#8203;(int&nbsp;index)</pre>
<div class="block">Removes the media item at the given index of the playlist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The index at which to remove the media item.</dd>
</dl>
</li>
</ul>
<a name="removeMediaItems-int-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>removeMediaItems</h4>
<pre>void&nbsp;removeMediaItems&#8203;(int&nbsp;fromIndex,
int&nbsp;toIndex)</pre>
<div class="block">Removes a range of media items from the playlist.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>fromIndex</code> - The index at which to start removing media items.</dd>
<dd><code>toIndex</code> - The index of the first item to be kept (exclusive).</dd>
</dl>
</li>
</ul>
<a name="clearMediaItems--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>clearMediaItems</h4>
<pre>void&nbsp;clearMediaItems()</pre>
<div class="block">Clears the playlist.</div>
</li>
</ul>
<a name="prepare--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>prepare</h4>
<pre>void&nbsp;prepare()</pre>
<div class="block">Prepares the player.</div>
</li>
</ul>
<a name="getPlaybackState--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaybackState</h4>
<pre><a href="../../../../com/google/android/exoplayer2/Player.State.html" title="annotation in com.google.android.exoplayer2">@State</a>
int&nbsp;getPlaybackState()</pre>
<div class="block">Returns the current <a href="../../../../com/google/android/exoplayer2/Player.State.html" title="annotation in com.google.android.exoplayer2"><code>playback state</code></a> of the player.</div>
<dl>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>The current <a href="../../../../com/google/android/exoplayer2/Player.State.html" title="annotation in com.google.android.exoplayer2"><code>playback state</code></a>.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onPlaybackStateChanged-int-"><code>Player.EventListener.onPlaybackStateChanged(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getPlaybackSuppressionReason--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaybackSuppressionReason</h4>
<pre><a href="../../../../com/google/android/exoplayer2/Player.PlaybackSuppressionReason.html" title="annotation in com.google.android.exoplayer2">@PlaybackSuppressionReason</a>
int&nbsp;getPlaybackSuppressionReason()</pre>
<div class="block">Returns the reason why playback is suppressed even though <a href="../../../../com/google/android/exoplayer2/Player.html#getPlayWhenReady--"><code>getPlayWhenReady()</code></a> is <code>
true</code>, or <a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.PlaybackSuppressionReason.html" title="annotation in com.google.android.exoplayer2"><code>playback suppression reason</code></a>.</dd>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onPlaybackSuppressionReasonChanged-int-"><code>Player.EventListener.onPlaybackSuppressionReasonChanged(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="isPlaying--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPlaying</h4>
<pre>boolean&nbsp;isPlaying()</pre>
<div class="block">Returns whether the player is playing, i.e. <a href="../../../../com/google/android/exoplayer2/Player.html#getContentPosition--"><code>getContentPosition()</code></a> is advancing.
<p>If <code>false</code>, then at least one of the following is true:
<ul>
<li>The <a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--"><code>playback state</code></a> is not <a href="../../../../com/google/android/exoplayer2/Player.html#STATE_READY"><code>ready</code></a>.
<li>There is no <a href="../../../../com/google/android/exoplayer2/Player.html#getPlayWhenReady--"><code>intention to play</code></a>.
<li>Playback is <a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.EventListener.html#onIsPlayingChanged-boolean-"><code>Player.EventListener.onIsPlayingChanged(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="getPlayerError--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlayerError</h4>
<pre>@Nullable
<a href="../../../../com/google/android/exoplayer2/ExoPlaybackException.html" title="class in com.google.android.exoplayer2">ExoPlaybackException</a>&nbsp;getPlayerError()</pre>
<div class="block">Returns the error that caused playback to fail. This is the same error that will have been
reported via <a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onPlayerError-com.google.android.exoplayer2.ExoPlaybackException-"><code>Player.EventListener.onPlayerError(ExoPlaybackException)</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="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--"><code>getPlaybackState()</code></a> is not
<a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.EventListener.html#onPlayerError-com.google.android.exoplayer2.ExoPlaybackException-"><code>Player.EventListener.onPlayerError(ExoPlaybackException)</code></a></dd>
</dl>
</li>
</ul>
<a name="getPlaybackError--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaybackError</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>
@Nullable
<a href="../../../../com/google/android/exoplayer2/ExoPlaybackException.html" title="class in com.google.android.exoplayer2">ExoPlaybackException</a>&nbsp;getPlaybackError()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="../../../../com/google/android/exoplayer2/Player.html#getPlayerError--"><code>getPlayerError()</code></a> instead.</div>
</div>
</li>
</ul>
<a name="play--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>play</h4>
<pre>void&nbsp;play()</pre>
<div class="block">Resumes playback as soon as <a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--"><code>getPlaybackState()</code></a> == <a href="../../../../com/google/android/exoplayer2/Player.html#STATE_READY"><code>STATE_READY</code></a>. Equivalent to
<code>setPlayWhenReady(true)</code>.</div>
</li>
</ul>
<a name="pause--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>pause</h4>
<pre>void&nbsp;pause()</pre>
<div class="block">Pauses playback. Equivalent to <code>setPlayWhenReady(false)</code>.</div>
</li>
</ul>
<a name="setPlayWhenReady-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlayWhenReady</h4>
<pre>void&nbsp;setPlayWhenReady&#8203;(boolean&nbsp;playWhenReady)</pre>
<div class="block">Sets whether playback should proceed when <a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--"><code>getPlaybackState()</code></a> == <a href="../../../../com/google/android/exoplayer2/Player.html#STATE_READY"><code>STATE_READY</code></a>.
<p>If the player is already in the ready state then this method pauses and resumes playback.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>playWhenReady</code> - Whether playback should proceed when ready.</dd>
</dl>
</li>
</ul>
<a name="getPlayWhenReady--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlayWhenReady</h4>
<pre>boolean&nbsp;getPlayWhenReady()</pre>
<div class="block">Whether playback will proceed when <a href="../../../../com/google/android/exoplayer2/Player.html#getPlaybackState--"><code>getPlaybackState()</code></a> == <a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.EventListener.html#onPlayWhenReadyChanged-boolean-int-"><code>Player.EventListener.onPlayWhenReadyChanged(boolean, int)</code></a></dd>
</dl>
</li>
</ul>
<a name="setRepeatMode-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setRepeatMode</h4>
<pre>void&nbsp;setRepeatMode&#8203;(<a href="../../../../com/google/android/exoplayer2/Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2">@RepeatMode</a>
int&nbsp;repeatMode)</pre>
<div class="block">Sets the <a href="../../../../com/google/android/exoplayer2/Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2"><code>Player.RepeatMode</code></a> to be used for playback.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>repeatMode</code> - The repeat mode.</dd>
</dl>
</li>
</ul>
<a name="getRepeatMode--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRepeatMode</h4>
<pre><a href="../../../../com/google/android/exoplayer2/Player.RepeatMode.html" title="annotation in com.google.android.exoplayer2">@RepeatMode</a>
int&nbsp;getRepeatMode()</pre>
<div class="block">Returns the current <a href="../../../../com/google/android/exoplayer2/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="../../../../com/google/android/exoplayer2/Player.EventListener.html#onRepeatModeChanged-int-"><code>Player.EventListener.onRepeatModeChanged(int)</code></a></dd>
</dl>
</li>
</ul>
<a name="setShuffleModeEnabled-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setShuffleModeEnabled</h4>
<pre>void&nbsp;setShuffleModeEnabled&#8203;(boolean&nbsp;shuffleModeEnabled)</pre>
<div class="block">Sets whether shuffling of windows is enabled.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>shuffleModeEnabled</code> - Whether shuffling is enabled.</dd>
</dl>
</li>
</ul>
<a name="getShuffleModeEnabled--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getShuffleModeEnabled</h4>
<pre>boolean&nbsp;getShuffleModeEnabled()</pre>
<div class="block">Returns whether shuffling of windows is enabled.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onShuffleModeEnabledChanged-boolean-"><code>Player.EventListener.onShuffleModeEnabledChanged(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="isLoading--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isLoading</h4>
<pre>boolean&nbsp;isLoading()</pre>
<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="../../../../com/google/android/exoplayer2/Player.EventListener.html#onIsLoadingChanged-boolean-"><code>Player.EventListener.onIsLoadingChanged(boolean)</code></a></dd>
</dl>
</li>
</ul>
<a name="seekToDefaultPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToDefaultPosition</h4>
<pre>void&nbsp;seekToDefaultPosition()</pre>
<div class="block">Seeks to the default position associated with the current window. The position can depend on
the type of media being played. For live streams it will typically be the live edge of the
window. For other streams it will typically be the start of the window.</div>
</li>
</ul>
<a name="seekToDefaultPosition-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekToDefaultPosition</h4>
<pre>void&nbsp;seekToDefaultPosition&#8203;(int&nbsp;windowIndex)</pre>
<div class="block">Seeks to the default position associated with the specified window. The position can depend on
the type of media being played. For live streams it will typically be the live edge of the
window. For other streams it will typically be the start of the window.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>windowIndex</code> - The index of the window whose associated default position should be seeked
to.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/google/android/exoplayer2/IllegalSeekPositionException.html" title="class in com.google.android.exoplayer2">IllegalSeekPositionException</a></code> - If the player has a non-empty timeline and the provided
<code>windowIndex</code> is not within the bounds of the current timeline.</dd>
</dl>
</li>
</ul>
<a name="seekTo-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekTo</h4>
<pre>void&nbsp;seekTo&#8203;(long&nbsp;positionMs)</pre>
<div class="block">Seeks to a position specified in milliseconds in the current window.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>positionMs</code> - The seek position in the current window, or <a href="../../../../com/google/android/exoplayer2/C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> to seek to
the window's default position.</dd>
</dl>
</li>
</ul>
<a name="seekTo-int-long-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>seekTo</h4>
<pre>void&nbsp;seekTo&#8203;(int&nbsp;windowIndex,
long&nbsp;positionMs)</pre>
<div class="block">Seeks to a position specified in milliseconds in the specified window.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>windowIndex</code> - The index of the window.</dd>
<dd><code>positionMs</code> - The seek position in the specified window, or <a href="../../../../com/google/android/exoplayer2/C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> to seek to
the window's default position.</dd>
<dt><span class="throwsLabel">Throws:</span></dt>
<dd><code><a href="../../../../com/google/android/exoplayer2/IllegalSeekPositionException.html" title="class in com.google.android.exoplayer2">IllegalSeekPositionException</a></code> - If the player has a non-empty timeline and the provided
<code>windowIndex</code> is not within the bounds of the current timeline.</dd>
</dl>
</li>
</ul>
<a name="hasPrevious--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasPrevious</h4>
<pre>boolean&nbsp;hasPrevious()</pre>
<div class="block">Returns whether a previous window exists, which may depend on the current repeat mode and
whether shuffle mode is enabled.
<p>Note: When the repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.</div>
</li>
</ul>
<a name="previous--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>previous</h4>
<pre>void&nbsp;previous()</pre>
<div class="block">Seeks to the default position of the previous window, which may depend on the current repeat
mode and whether shuffle mode is enabled. Does nothing if <a href="../../../../com/google/android/exoplayer2/Player.html#hasPrevious--"><code>hasPrevious()</code></a> is <code>
false</code>.
<p>Note: When the repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.</div>
</li>
</ul>
<a name="hasNext--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>hasNext</h4>
<pre>boolean&nbsp;hasNext()</pre>
<div class="block">Returns whether a next window exists, which may depend on the current repeat mode and whether
shuffle mode is enabled.
<p>Note: When the repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.</div>
</li>
</ul>
<a name="next--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>next</h4>
<pre>void&nbsp;next()</pre>
<div class="block">Seeks to the default position of the next window, which may depend on the current repeat mode
and whether shuffle mode is enabled. Does nothing if <a href="../../../../com/google/android/exoplayer2/Player.html#hasNext--"><code>hasNext()</code></a> is <code>false</code>.
<p>Note: When the repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.</div>
</li>
</ul>
<a name="setPlaybackParameters-com.google.android.exoplayer2.PlaybackParameters-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setPlaybackParameters</h4>
<pre>void&nbsp;setPlaybackParameters&#8203;(@Nullable
<a href="../../../../com/google/android/exoplayer2/PlaybackParameters.html" title="class in com.google.android.exoplayer2">PlaybackParameters</a>&nbsp;playbackParameters)</pre>
<div class="block">Attempts to set the playback parameters. Passing <code>null</code> sets the parameters to the
default, <a href="../../../../com/google/android/exoplayer2/PlaybackParameters.html#DEFAULT"><code>PlaybackParameters.DEFAULT</code></a>, which means there is no speed or pitch adjustment.
<p>Playback parameters changes may cause the player to buffer. <a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onPlaybackParametersChanged-com.google.android.exoplayer2.PlaybackParameters-"><code>Player.EventListener.onPlaybackParametersChanged(PlaybackParameters)</code></a> will be called whenever the
currently active playback parameters change.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>playbackParameters</code> - The playback parameters, or <code>null</code> to use the defaults.</dd>
</dl>
</li>
</ul>
<a name="getPlaybackParameters--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaybackParameters</h4>
<pre><a href="../../../../com/google/android/exoplayer2/PlaybackParameters.html" title="class in com.google.android.exoplayer2">PlaybackParameters</a>&nbsp;getPlaybackParameters()</pre>
<div class="block">Returns the currently active playback parameters.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onPlaybackParametersChanged-com.google.android.exoplayer2.PlaybackParameters-"><code>Player.EventListener.onPlaybackParametersChanged(PlaybackParameters)</code></a></dd>
</dl>
</li>
</ul>
<a name="stop--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stop</h4>
<pre>void&nbsp;stop()</pre>
<div class="block">Stops playback without resetting the player. Use <a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.html#STATE_IDLE"><code>STATE_IDLE</code></a>. The
player instance can still be used, and <a href="../../../../com/google/android/exoplayer2/Player.html#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.</div>
</li>
</ul>
<a name="stop-boolean-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>stop</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>
void&nbsp;stop&#8203;(boolean&nbsp;reset)</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="../../../../com/google/android/exoplayer2/Player.html#stop--"><code>stop()</code></a> and <a href="../../../../com/google/android/exoplayer2/Player.html#clearMediaItems--"><code>clearMediaItems()</code></a> (if <code>reset</code> is true) or
just <a href="../../../../com/google/android/exoplayer2/Player.html#stop--"><code>stop()</code></a> (if <code>reset</code> is false). Any player error will be cleared when
<a href="../../../../com/google/android/exoplayer2/Player.html#prepare--"><code>re-preparing</code></a> the player.</div>
</div>
</li>
</ul>
<a name="release--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>release</h4>
<pre>void&nbsp;release()</pre>
<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.</div>
</li>
</ul>
<a name="getRendererCount--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRendererCount</h4>
<pre>int&nbsp;getRendererCount()</pre>
<div class="block">Returns the number of renderers.</div>
</li>
</ul>
<a name="getRendererType-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getRendererType</h4>
<pre>int&nbsp;getRendererType&#8203;(int&nbsp;index)</pre>
<div class="block">Returns the track type that the renderer at a given index handles.
<p>For example, a video renderer will return <a href="../../../../com/google/android/exoplayer2/C.html#TRACK_TYPE_VIDEO"><code>C.TRACK_TYPE_VIDEO</code></a>, an audio renderer will
return <a href="../../../../com/google/android/exoplayer2/C.html#TRACK_TYPE_AUDIO"><code>C.TRACK_TYPE_AUDIO</code></a> and a text renderer will return <a href="../../../../com/google/android/exoplayer2/C.html#TRACK_TYPE_TEXT"><code>C.TRACK_TYPE_TEXT</code></a>.</div>
<dl>
<dt><span class="paramLabel">Parameters:</span></dt>
<dd><code>index</code> - The index of the renderer.</dd>
<dt><span class="returnLabel">Returns:</span></dt>
<dd>One of the <code>TRACK_TYPE_*</code> constants defined in <a href="../../../../com/google/android/exoplayer2/C.html" title="class in com.google.android.exoplayer2"><code>C</code></a>.</dd>
</dl>
</li>
</ul>
<a name="getCurrentTrackGroups--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentTrackGroups</h4>
<pre><a href="../../../../com/google/android/exoplayer2/source/TrackGroupArray.html" title="class in com.google.android.exoplayer2.source">TrackGroupArray</a>&nbsp;getCurrentTrackGroups()</pre>
<div class="block">Returns the available track groups.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onTracksChanged-com.google.android.exoplayer2.source.TrackGroupArray-com.google.android.exoplayer2.trackselection.TrackSelectionArray-"><code>Player.EventListener.onTracksChanged(TrackGroupArray, TrackSelectionArray)</code></a></dd>
</dl>
</li>
</ul>
<a name="getCurrentTrackSelections--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentTrackSelections</h4>
<pre><a href="../../../../com/google/android/exoplayer2/trackselection/TrackSelectionArray.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionArray</a>&nbsp;getCurrentTrackSelections()</pre>
<div class="block">Returns the current track selections for each renderer.
<p>A concrete implementation may include null elements if it has a fixed number of renderer
components, wishes to report a TrackSelection for each of them, and has one or more renderer
components that is not assigned any selected tracks.</div>
</li>
</ul>
<a name="getCurrentStaticMetadata--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentStaticMetadata</h4>
<pre><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="../../../../com/google/android/exoplayer2/metadata/Metadata.html" title="class in com.google.android.exoplayer2.metadata" target="_top">Metadata</a>&gt;&nbsp;getCurrentStaticMetadata()</pre>
<div class="block">Returns the current static metadata for the track selections.
<p>The returned <code>metadataList</code> is an immutable list of <a href="../../../../com/google/android/exoplayer2/metadata/Metadata.html" title="class in com.google.android.exoplayer2.metadata"><code>Metadata</code></a> instances, where
the elements correspond to the <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTrackSelections--"><code>current track selections</code></a>,
or an empty list if there are no track selections or the selected tracks contain no static
metadata.
<p>This metadata is considered static in that it comes from the tracks' declared Formats,
rather than being timed (or dynamic) metadata, which is represented within a metadata track.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onStaticMetadataChanged-java.util.List-"><code>Player.EventListener.onStaticMetadataChanged(List)</code></a></dd>
</dl>
</li>
</ul>
<a name="getCurrentManifest--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentManifest</h4>
<pre>@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="block">Returns the current manifest. The type depends on the type of media being played. May be null.</div>
</li>
</ul>
<a name="getCurrentTimeline--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentTimeline</h4>
<pre><a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2">Timeline</a>&nbsp;getCurrentTimeline()</pre>
<div class="block">Returns the current <a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a>. Never null, but may be empty.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onTimelineChanged-com.google.android.exoplayer2.Timeline-int-"><code>Player.EventListener.onTimelineChanged(Timeline, int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getCurrentPeriodIndex--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentPeriodIndex</h4>
<pre>int&nbsp;getCurrentPeriodIndex()</pre>
<div class="block">Returns the index of the period currently being played.</div>
</li>
</ul>
<a name="getCurrentWindowIndex--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentWindowIndex</h4>
<pre>int&nbsp;getCurrentWindowIndex()</pre>
<div class="block">Returns the index of the current <a href="../../../../com/google/android/exoplayer2/Timeline.Window.html" title="class in com.google.android.exoplayer2"><code>window</code></a> in the <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTimeline--"><code>timeline</code></a>, or the prospective window index if the <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTimeline--"><code>current timeline</code></a> is empty.</div>
</li>
</ul>
<a name="getNextWindowIndex--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getNextWindowIndex</h4>
<pre>int&nbsp;getNextWindowIndex()</pre>
<div class="block">Returns the index of the window that will be played if <a href="../../../../com/google/android/exoplayer2/Player.html#next--"><code>next()</code></a> is called, which may
depend on the current repeat mode and whether shuffle mode is enabled. Returns <a href="../../../../com/google/android/exoplayer2/C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a> if <a href="../../../../com/google/android/exoplayer2/Player.html#hasNext--"><code>hasNext()</code></a> is <code>false</code>.
<p>Note: When the repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.</div>
</li>
</ul>
<a name="getPreviousWindowIndex--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPreviousWindowIndex</h4>
<pre>int&nbsp;getPreviousWindowIndex()</pre>
<div class="block">Returns the index of the window that will be played if <a href="../../../../com/google/android/exoplayer2/Player.html#previous--"><code>previous()</code></a> is called, which may
depend on the current repeat mode and whether shuffle mode is enabled. Returns <a href="../../../../com/google/android/exoplayer2/C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a> if <a href="../../../../com/google/android/exoplayer2/Player.html#hasPrevious--"><code>hasPrevious()</code></a> is <code>false</code>.
<p>Note: When the repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a>, this method behaves the same as when
the current repeat mode is <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_OFF"><code>REPEAT_MODE_OFF</code></a>. See <a href="../../../../com/google/android/exoplayer2/Player.html#REPEAT_MODE_ONE"><code>REPEAT_MODE_ONE</code></a> for more
details.</div>
</li>
</ul>
<a name="getCurrentTag--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentTag</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>
@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;getCurrentTag()</pre>
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
<div class="deprecationComment">Use <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentMediaItem--"><code>getCurrentMediaItem()</code></a> and <a href="../../../../com/google/android/exoplayer2/MediaItem.PlaybackProperties.html#tag"><code>MediaItem.PlaybackProperties.tag</code></a>
instead.</div>
</div>
</li>
</ul>
<a name="getCurrentMediaItem--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentMediaItem</h4>
<pre>@Nullable
<a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;getCurrentMediaItem()</pre>
<div class="block">Returns the media item of the current window in the timeline. May be null if the timeline is
empty.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Player.EventListener.html#onMediaItemTransition-com.google.android.exoplayer2.MediaItem-int-"><code>Player.EventListener.onMediaItemTransition(MediaItem, int)</code></a></dd>
</dl>
</li>
</ul>
<a name="getMediaItemCount--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMediaItemCount</h4>
<pre>int&nbsp;getMediaItemCount()</pre>
<div class="block">Returns the number of <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>media items</code></a> in the playlist.</div>
</li>
</ul>
<a name="getMediaItemAt-int-">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMediaItemAt</h4>
<pre><a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2">MediaItem</a>&nbsp;getMediaItemAt&#8203;(int&nbsp;index)</pre>
<div class="block">Returns the <a href="../../../../com/google/android/exoplayer2/MediaItem.html" title="class in com.google.android.exoplayer2"><code>MediaItem</code></a> at the given index.</div>
</li>
</ul>
<a name="getDuration--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getDuration</h4>
<pre>long&nbsp;getDuration()</pre>
<div class="block">Returns the duration of the current content window or ad in milliseconds, or <a href="../../../../com/google/android/exoplayer2/C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if the duration is not known.</div>
</li>
</ul>
<a name="getCurrentPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentPosition</h4>
<pre>long&nbsp;getCurrentPosition()</pre>
<div class="block">Returns the playback position in the current content window or ad, in milliseconds, or the
prospective position in milliseconds if the <a href="../../../../com/google/android/exoplayer2/Player.html#getCurrentTimeline--"><code>current timeline</code></a> is
empty.</div>
</li>
</ul>
<a name="getBufferedPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBufferedPosition</h4>
<pre>long&nbsp;getBufferedPosition()</pre>
<div class="block">Returns an estimate of the position in the current content window or ad up to which data is
buffered, in milliseconds.</div>
</li>
</ul>
<a name="getBufferedPercentage--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getBufferedPercentage</h4>
<pre>int&nbsp;getBufferedPercentage()</pre>
<div class="block">Returns an estimate of the percentage in the current content window or ad up to which data is
buffered, or 0 if no estimate is available.</div>
</li>
</ul>
<a name="getTotalBufferedDuration--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTotalBufferedDuration</h4>
<pre>long&nbsp;getTotalBufferedDuration()</pre>
<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 windows.</div>
</li>
</ul>
<a name="isCurrentWindowDynamic--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCurrentWindowDynamic</h4>
<pre>boolean&nbsp;isCurrentWindowDynamic()</pre>
<div class="block">Returns whether the current window is dynamic, or <code>false</code> if the <a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is
empty.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Timeline.Window.html#isDynamic"><code>Timeline.Window.isDynamic</code></a></dd>
</dl>
</li>
</ul>
<a name="isCurrentWindowLive--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCurrentWindowLive</h4>
<pre>boolean&nbsp;isCurrentWindowLive()</pre>
<div class="block">Returns whether the current window is live, or <code>false</code> if the <a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is empty.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Timeline.Window.html#isLive--"><code>Timeline.Window.isLive()</code></a></dd>
</dl>
</li>
</ul>
<a name="getCurrentLiveOffset--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentLiveOffset</h4>
<pre>long&nbsp;getCurrentLiveOffset()</pre>
<div class="block">Returns the offset of the current playback position from the live edge in milliseconds, or
<a href="../../../../com/google/android/exoplayer2/C.html#TIME_UNSET"><code>C.TIME_UNSET</code></a> if the current window <a href="../../../../com/google/android/exoplayer2/Player.html#isCurrentWindowLive--"><code>isn't live</code></a> 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.</div>
</li>
</ul>
<a name="isCurrentWindowSeekable--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isCurrentWindowSeekable</h4>
<pre>boolean&nbsp;isCurrentWindowSeekable()</pre>
<div class="block">Returns whether the current window is seekable, or <code>false</code> if the <a href="../../../../com/google/android/exoplayer2/Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> is
empty.</div>
<dl>
<dt><span class="seeLabel">See Also:</span></dt>
<dd><a href="../../../../com/google/android/exoplayer2/Timeline.Window.html#isSeekable"><code>Timeline.Window.isSeekable</code></a></dd>
</dl>
</li>
</ul>
<a name="isPlayingAd--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>isPlayingAd</h4>
<pre>boolean&nbsp;isPlayingAd()</pre>
<div class="block">Returns whether the player is currently playing an ad.</div>
</li>
</ul>
<a name="getCurrentAdGroupIndex--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentAdGroupIndex</h4>
<pre>int&nbsp;getCurrentAdGroupIndex()</pre>
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#isPlayingAd--"><code>isPlayingAd()</code></a> returns true, returns the index of the ad group in the period
currently being played. Returns <a href="../../../../com/google/android/exoplayer2/C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a> otherwise.</div>
</li>
</ul>
<a name="getCurrentAdIndexInAdGroup--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getCurrentAdIndexInAdGroup</h4>
<pre>int&nbsp;getCurrentAdIndexInAdGroup()</pre>
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#isPlayingAd--"><code>isPlayingAd()</code></a> returns true, returns the index of the ad in its ad group. Returns
<a href="../../../../com/google/android/exoplayer2/C.html#INDEX_UNSET"><code>C.INDEX_UNSET</code></a> otherwise.</div>
</li>
</ul>
<a name="getContentDuration--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getContentDuration</h4>
<pre>long&nbsp;getContentDuration()</pre>
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#isPlayingAd--"><code>isPlayingAd()</code></a> returns <code>true</code>, returns the duration of the current content
window in milliseconds, or <a href="../../../../com/google/android/exoplayer2/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="../../../../com/google/android/exoplayer2/Player.html#getDuration--"><code>getDuration()</code></a>.</div>
</li>
</ul>
<a name="getContentPosition--">
<!-- -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getContentPosition</h4>
<pre>long&nbsp;getContentPosition()</pre>
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#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="../../../../com/google/android/exoplayer2/Player.html#getCurrentPosition--"><code>getCurrentPosition()</code></a>.</div>
</li>
</ul>
<a name="getContentBufferedPosition--">
<!-- -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>getContentBufferedPosition</h4>
<pre>long&nbsp;getContentBufferedPosition()</pre>
<div class="block">If <a href="../../../../com/google/android/exoplayer2/Player.html#isPlayingAd--"><code>isPlayingAd()</code></a> returns <code>true</code>, returns an estimate of the content position in
the current content window 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="../../../../com/google/android/exoplayer2/Player.html#getBufferedPosition--"><code>getBufferedPosition()</code></a>.</div>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar.bottom">
<!-- -->
</a>
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
<a name="navbar.bottom.firstrow">
<!-- -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../overview-summary.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">
<li><a href="../../../../com/google/android/exoplayer2/PlaybackPreparer.html" title="interface in com.google.android.exoplayer2"><span class="typeNameLink">Prev&nbsp;Class</span></a></li>
<li><a href="../../../../com/google/android/exoplayer2/Player.AudioComponent.html" title="interface in com.google.android.exoplayer2"><span class="typeNameLink">Next&nbsp;Class</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../index.html?com/google/android/exoplayer2/Player.html" target="_top">Frames</a></li>
<li><a href="Player.html" target="_top">No&nbsp;Frames</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../allclasses-noframe.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 name="skip.navbar.bottom">
<!-- -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
</body>
</html>