mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
749 lines
45 KiB
HTML
749 lines
45 KiB
HTML
<!DOCTYPE HTML>
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head><!-- start favicons snippet, use https://realfavicongenerator.net/ --><link rel="apple-touch-icon" sizes="180x180" href="/assets/apple-touch-icon.png"><link rel="icon" type="image/png" sizes="32x32" href="/assets/favicon-32x32.png"><link rel="icon" type="image/png" sizes="16x16" href="/assets/favicon-16x16.png"><link rel="manifest" href="/assets/site.webmanifest"><link rel="mask-icon" href="/assets/safari-pinned-tab.svg" color="#fc4d50"><link rel="shortcut icon" href="/assets/favicon.ico"><meta name="msapplication-TileColor" content="#ffc40d"><meta name="msapplication-config" content="/assets/browserconfig.xml"><meta name="theme-color" content="#ffffff"><!-- end favicons snippet -->
|
|
<title>ExoPlayerTestRunner.Builder (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-3.5.1.js"></script>
|
|
<script type="text/javascript" src="../../../../../jquery/jquery-ui.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="ExoPlayerTestRunner.Builder (ExoPlayer library)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10,"i15":10,"i16":10,"i17":10,"i18":10,"i19":10};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
var pathtoroot = "../../../../../";
|
|
var useModuleDirectories = false;
|
|
loadScripts(document, 'script');</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<header role="banner">
|
|
<nav role="navigation">
|
|
<div class="fixedNav">
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a id="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../../allclasses.html">All 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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
</div>
|
|
<div class="navPadding"> </div>
|
|
<script type="text/javascript"><!--
|
|
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
|
|
//-->
|
|
</script>
|
|
</nav>
|
|
</header>
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<main role="main">
|
|
<div class="header">
|
|
<div class="subTitle"><span class="packageLabelInType">Package</span> <a href="package-summary.html">com.google.android.exoplayer2.testutil</a></div>
|
|
<h2 title="Class ExoPlayerTestRunner.Builder" class="title">Class ExoPlayerTestRunner.Builder</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">java.lang.Object</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.google.android.exoplayer2.testutil.ExoPlayerTestRunner.Builder</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>Enclosing class:</dt>
|
|
<dd><a href="ExoPlayerTestRunner.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<pre>public static final class <span class="typeNameLabel">ExoPlayerTestRunner.Builder</span>
|
|
extends <a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></pre>
|
|
<div class="block">Builder to set-up a <a href="ExoPlayerTestRunner.html" title="class in com.google.android.exoplayer2.testutil"><code>ExoPlayerTestRunner</code></a>. Default fake implementations will be used for
|
|
unset test properties.</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Constructor</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(android.content.Context)">Builder</a></span>​(<a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top">Context</a> context)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t2" class="tableTab"><span><a href="javascript:show(2);">Instance Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </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><a href="ExoPlayerTestRunner.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#build()">build</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Builds an <a href="ExoPlayerTestRunner.html" title="class in com.google.android.exoplayer2.testutil"><code>ExoPlayerTestRunner</code></a> using the provided values or their defaults.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#initialSeek(int,long)">initialSeek</a></span>​(int windowIndex,
|
|
long positionMs)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Seeks before setting the media sources and preparing the player.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setActionSchedule(com.google.android.exoplayer2.testutil.ActionSchedule)">setActionSchedule</a></span>​(<a href="ActionSchedule.html" title="class in com.google.android.exoplayer2.testutil">ActionSchedule</a> actionSchedule)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets an <a href="ActionSchedule.html" title="class in com.google.android.exoplayer2.testutil"><code>ActionSchedule</code></a> to be run by the test runner.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setAnalyticsListener(com.google.android.exoplayer2.analytics.AnalyticsListener)">setAnalyticsListener</a></span>​(<a href="../analytics/AnalyticsListener.html" title="interface in com.google.android.exoplayer2.analytics">AnalyticsListener</a> analyticsListener)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets an <a href="../analytics/AnalyticsListener.html" title="interface in com.google.android.exoplayer2.analytics"><code>AnalyticsListener</code></a> to be registered.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setBandwidthMeter(com.google.android.exoplayer2.upstream.BandwidthMeter)">setBandwidthMeter</a></span>​(<a href="../upstream/BandwidthMeter.html" title="interface in com.google.android.exoplayer2.upstream">BandwidthMeter</a> bandwidthMeter)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i5" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setClock(com.google.android.exoplayer2.util.Clock)">setClock</a></span>​(<a href="../util/Clock.html" title="interface in com.google.android.exoplayer2.util">Clock</a> clock)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i6" class="altColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setExpectedPlayerEndedCount(int)">setExpectedPlayerEndedCount</a></span>​(int expectedPlayerEndedCount)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the number of times the test runner is expected to reach the <a href="../Player.html#STATE_ENDED"><code>Player.STATE_ENDED</code></a>
|
|
or <a href="../Player.html#STATE_IDLE"><code>Player.STATE_IDLE</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i7" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setLoadControl(com.google.android.exoplayer2.LoadControl)">setLoadControl</a></span>​(<a href="../LoadControl.html" title="interface in com.google.android.exoplayer2">LoadControl</a> loadControl)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i8" class="altColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setManifest(java.lang.Object)">setManifest</a></span>​(<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a> manifest)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets a manifest to be used by a <a href="FakeMediaSource.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeMediaSource</code></a> in the test runner.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i9" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setMediaSources(com.google.android.exoplayer2.source.MediaSource...)">setMediaSources</a></span>​(<a href="../source/MediaSource.html" title="interface in com.google.android.exoplayer2.source">MediaSource</a>... mediaSources)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the <a href="../source/MediaSource.html" title="interface in com.google.android.exoplayer2.source"><code>MediaSource</code></a>s to be used by the test runner.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i10" class="altColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPauseAtEndOfMediaItems(boolean)">setPauseAtEndOfMediaItems</a></span>​(boolean pauseAtEndOfMediaItems)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets whether to enable pausing at the end of media items.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i11" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setPlayerListener(com.google.android.exoplayer2.Player.Listener)">setPlayerListener</a></span>​(<a href="../Player.Listener.html" title="interface in com.google.android.exoplayer2">Player.Listener</a> playerListener)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets an <a href="../Player.Listener.html" title="interface in com.google.android.exoplayer2"><code>Player.Listener</code></a> to be registered to listen to player events.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i12" class="altColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRenderers(com.google.android.exoplayer2.Renderer...)">setRenderers</a></span>​(<a href="../Renderer.html" title="interface in com.google.android.exoplayer2">Renderer</a>... renderers)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i13" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setRenderersFactory(com.google.android.exoplayer2.RenderersFactory)">setRenderersFactory</a></span>​(<a href="../RenderersFactory.html" title="interface in com.google.android.exoplayer2">RenderersFactory</a> renderersFactory)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i14" class="altColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setSupportedFormats(com.google.android.exoplayer2.Format...)">setSupportedFormats</a></span>​(<a href="../Format.html" title="class in com.google.android.exoplayer2">Format</a>... supportedFormats)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets a list of <a href="../Format.html" title="class in com.google.android.exoplayer2"><code>Format</code></a>s to be used by a <a href="FakeMediaSource.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeMediaSource</code></a> to create media
|
|
periods.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i15" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTimeline(com.google.android.exoplayer2.Timeline)">setTimeline</a></span>​(<a href="../Timeline.html" title="class in com.google.android.exoplayer2">Timeline</a> timeline)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets a <a href="../Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> to be used by a <a href="FakeMediaSource.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeMediaSource</code></a> in the test runner.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i16" class="altColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setTrackSelector(com.google.android.exoplayer2.trackselection.DefaultTrackSelector)">setTrackSelector</a></span>​(<a href="../trackselection/DefaultTrackSelector.html" title="class in com.google.android.exoplayer2.trackselection">DefaultTrackSelector</a> trackSelector)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i17" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setUseLazyPreparation(boolean)">setUseLazyPreparation</a></span>​(boolean useLazyPreparation)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i18" class="altColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#setVideoSurface(android.view.Surface)">setVideoSurface</a></span>​(<a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top">Surface</a> surface)</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Sets the video <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i19" class="rowColor">
|
|
<td class="colFirst"><code><a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#skipSettingMediaSources()">skipSettingMediaSources</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Skips calling <a href="../ExoPlayer.html#setMediaSources(java.util.List)"><code>ExoPlayer.setMediaSources(List)</code></a> before
|
|
preparing.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></h3>
|
|
<code><a href="https://developer.android.com/reference/java/lang/Object.html#clone()" title="class or interface in java.lang" class="externalLink">clone</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang" class="externalLink">finalize</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang" class="externalLink">getClass</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang" class="externalLink">notify</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang" class="externalLink">notifyAll</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang" class="externalLink">toString</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang" class="externalLink">wait</a>, <a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true#wait(long,int)" title="class or interface in java.lang" class="externalLink" target="_top">wait</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a id="<init>(android.content.Context)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>Builder</h4>
|
|
<pre>public Builder​(<a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top">Context</a> context)</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a id="setTimeline(com.google.android.exoplayer2.Timeline)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setTimeline</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setTimeline​(<a href="../Timeline.html" title="class in com.google.android.exoplayer2">Timeline</a> timeline)</pre>
|
|
<div class="block">Sets a <a href="../Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> to be used by a <a href="FakeMediaSource.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeMediaSource</code></a> in the test runner. The
|
|
default value is a seekable, non-dynamic <a href="FakeTimeline.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeTimeline</code></a> with a duration of <a href="FakeTimeline.TimelineWindowDefinition.html#DEFAULT_WINDOW_DURATION_US"><code>FakeTimeline.TimelineWindowDefinition.DEFAULT_WINDOW_DURATION_US</code></a>. Setting the timeline is
|
|
not allowed after a call to <a href="#setMediaSources(com.google.android.exoplayer2.source.MediaSource...)"><code>setMediaSources(MediaSource...)</code></a> or <a href="#skipSettingMediaSources()"><code>skipSettingMediaSources()</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>timeline</code> - A <a href="../Timeline.html" title="class in com.google.android.exoplayer2"><code>Timeline</code></a> to be used by a <a href="FakeMediaSource.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeMediaSource</code></a> in the test
|
|
runner.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setManifest(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setManifest</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setManifest​(<a href="https://developer.android.com/reference/java/lang/Object.html" title="class or interface in java.lang" class="externalLink" target="_top">Object</a> manifest)</pre>
|
|
<div class="block">Sets a manifest to be used by a <a href="FakeMediaSource.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeMediaSource</code></a> in the test runner. The default value
|
|
is null. Setting the manifest is not allowed after a call to <a href="#setMediaSources(com.google.android.exoplayer2.source.MediaSource...)"><code>setMediaSources(MediaSource...)</code></a> or <a href="#skipSettingMediaSources()"><code>skipSettingMediaSources()</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>manifest</code> - A manifest to be used by a <a href="FakeMediaSource.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeMediaSource</code></a> in the test runner.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="initialSeek(int,long)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>initialSeek</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> initialSeek​(int windowIndex,
|
|
long positionMs)</pre>
|
|
<div class="block">Seeks before setting the media sources and preparing the player.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>windowIndex</code> - The window index to seek to.</dd>
|
|
<dd><code>positionMs</code> - The position in milliseconds to seek to.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setMediaSources(com.google.android.exoplayer2.source.MediaSource...)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setMediaSources</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setMediaSources​(<a href="../source/MediaSource.html" title="interface in com.google.android.exoplayer2.source">MediaSource</a>... mediaSources)</pre>
|
|
<div class="block">Sets the <a href="../source/MediaSource.html" title="interface in com.google.android.exoplayer2.source"><code>MediaSource</code></a>s to be used by the test runner. The default value is a <a href="FakeMediaSource.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeMediaSource</code></a> with the timeline and manifest provided by <a href="#setTimeline(com.google.android.exoplayer2.Timeline)"><code>setTimeline(Timeline)</code></a>
|
|
and <a href="#setManifest(java.lang.Object)"><code>setManifest(Object)</code></a>. Setting media sources is not allowed after calls to <a href="#skipSettingMediaSources()"><code>skipSettingMediaSources()</code></a>, <a href="#setTimeline(com.google.android.exoplayer2.Timeline)"><code>setTimeline(Timeline)</code></a> and/or <a href="#setManifest(java.lang.Object)"><code>setManifest(Object)</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>mediaSources</code> - The <a href="../source/MediaSource.html" title="interface in com.google.android.exoplayer2.source"><code>MediaSource</code></a>s to be used by the test runner.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setSupportedFormats(com.google.android.exoplayer2.Format...)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setSupportedFormats</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setSupportedFormats​(<a href="../Format.html" title="class in com.google.android.exoplayer2">Format</a>... supportedFormats)</pre>
|
|
<div class="block">Sets a list of <a href="../Format.html" title="class in com.google.android.exoplayer2"><code>Format</code></a>s to be used by a <a href="FakeMediaSource.html" title="class in com.google.android.exoplayer2.testutil"><code>FakeMediaSource</code></a> to create media
|
|
periods. The default value is a single <a href="ExoPlayerTestRunner.html#VIDEO_FORMAT"><code>ExoPlayerTestRunner.VIDEO_FORMAT</code></a>. Note that this parameter
|
|
doesn't have any influence if a media source with <a href="#setMediaSources(com.google.android.exoplayer2.source.MediaSource...)"><code>setMediaSources(MediaSource...)</code></a> is
|
|
set.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>supportedFormats</code> - A list of supported <a href="../Format.html" title="class in com.google.android.exoplayer2"><code>Format</code></a>s.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="skipSettingMediaSources()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>skipSettingMediaSources</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> skipSettingMediaSources()</pre>
|
|
<div class="block">Skips calling <a href="../ExoPlayer.html#setMediaSources(java.util.List)"><code>ExoPlayer.setMediaSources(List)</code></a> before
|
|
preparing. Calling this method is not allowed after calls to <a href="#setMediaSources(com.google.android.exoplayer2.source.MediaSource...)"><code>setMediaSources(MediaSource...)</code></a>, <a href="#setTimeline(com.google.android.exoplayer2.Timeline)"><code>setTimeline(Timeline)</code></a> and/or <a href="#setManifest(java.lang.Object)"><code>setManifest(Object)</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setUseLazyPreparation(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setUseLazyPreparation</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setUseLazyPreparation​(boolean useLazyPreparation)</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="TestExoPlayerBuilder.html#setUseLazyPreparation(boolean)"><code>TestExoPlayerBuilder.setUseLazyPreparation(boolean)</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setPauseAtEndOfMediaItems(boolean)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPauseAtEndOfMediaItems</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setPauseAtEndOfMediaItems​(boolean pauseAtEndOfMediaItems)</pre>
|
|
<div class="block">Sets whether to enable pausing at the end of media items.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>pauseAtEndOfMediaItems</code> - Whether to pause at the end of media items.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setTrackSelector(com.google.android.exoplayer2.trackselection.DefaultTrackSelector)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setTrackSelector</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setTrackSelector​(<a href="../trackselection/DefaultTrackSelector.html" title="class in com.google.android.exoplayer2.trackselection">DefaultTrackSelector</a> trackSelector)</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="TestExoPlayerBuilder.html#setTrackSelector(com.google.android.exoplayer2.trackselection.DefaultTrackSelector)"><code>TestExoPlayerBuilder.setTrackSelector(DefaultTrackSelector)</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setLoadControl(com.google.android.exoplayer2.LoadControl)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setLoadControl</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setLoadControl​(<a href="../LoadControl.html" title="interface in com.google.android.exoplayer2">LoadControl</a> loadControl)</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="TestExoPlayerBuilder.html#setLoadControl(com.google.android.exoplayer2.LoadControl)"><code>TestExoPlayerBuilder.setLoadControl(LoadControl)</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setBandwidthMeter(com.google.android.exoplayer2.upstream.BandwidthMeter)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setBandwidthMeter</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setBandwidthMeter​(<a href="../upstream/BandwidthMeter.html" title="interface in com.google.android.exoplayer2.upstream">BandwidthMeter</a> bandwidthMeter)</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="TestExoPlayerBuilder.html#setBandwidthMeter(com.google.android.exoplayer2.upstream.BandwidthMeter)"><code>TestExoPlayerBuilder.setBandwidthMeter(BandwidthMeter)</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setRenderers(com.google.android.exoplayer2.Renderer...)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRenderers</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setRenderers​(<a href="../Renderer.html" title="interface in com.google.android.exoplayer2">Renderer</a>... renderers)</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="TestExoPlayerBuilder.html#setRenderers(com.google.android.exoplayer2.Renderer...)"><code>TestExoPlayerBuilder.setRenderers(Renderer...)</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setRenderersFactory(com.google.android.exoplayer2.RenderersFactory)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setRenderersFactory</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setRenderersFactory​(<a href="../RenderersFactory.html" title="interface in com.google.android.exoplayer2">RenderersFactory</a> renderersFactory)</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="TestExoPlayerBuilder.html#setRenderersFactory(com.google.android.exoplayer2.RenderersFactory)"><code>TestExoPlayerBuilder.setRenderersFactory(RenderersFactory)</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setClock(com.google.android.exoplayer2.util.Clock)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setClock</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setClock​(<a href="../util/Clock.html" title="interface in com.google.android.exoplayer2.util">Clock</a> clock)</pre>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="TestExoPlayerBuilder.html#setClock(com.google.android.exoplayer2.util.Clock)"><code>TestExoPlayerBuilder.setClock(Clock)</code></a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setActionSchedule(com.google.android.exoplayer2.testutil.ActionSchedule)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setActionSchedule</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setActionSchedule​(<a href="ActionSchedule.html" title="class in com.google.android.exoplayer2.testutil">ActionSchedule</a> actionSchedule)</pre>
|
|
<div class="block">Sets an <a href="ActionSchedule.html" title="class in com.google.android.exoplayer2.testutil"><code>ActionSchedule</code></a> to be run by the test runner. The first action will be
|
|
executed immediately before <a href="../SimpleExoPlayer.html#prepare()"><code>SimpleExoPlayer.prepare()</code></a>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>actionSchedule</code> - An <a href="ActionSchedule.html" title="class in com.google.android.exoplayer2.testutil"><code>ActionSchedule</code></a> to be used by the test runner.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setVideoSurface(android.view.Surface)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setVideoSurface</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setVideoSurface​(<a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top">Surface</a> surface)</pre>
|
|
<div class="block">Sets the video <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a>. The default value is <code>null</code>.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>surface</code> - The <a href="https://developer.android.com/reference/android/view/Surface.html" title="class or interface in android.view" class="externalLink" target="_top"><code>Surface</code></a> to be used by the player.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setPlayerListener(com.google.android.exoplayer2.Player.Listener)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setPlayerListener</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setPlayerListener​(<a href="../Player.Listener.html" title="interface in com.google.android.exoplayer2">Player.Listener</a> playerListener)</pre>
|
|
<div class="block">Sets an <a href="../Player.Listener.html" title="interface in com.google.android.exoplayer2"><code>Player.Listener</code></a> to be registered to listen to player events.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>playerListener</code> - A <a href="../Player.Listener.html" title="interface in com.google.android.exoplayer2"><code>Player.Listener</code></a> to be registered by the test runner to listen
|
|
to player events.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setAnalyticsListener(com.google.android.exoplayer2.analytics.AnalyticsListener)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setAnalyticsListener</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setAnalyticsListener​(<a href="../analytics/AnalyticsListener.html" title="interface in com.google.android.exoplayer2.analytics">AnalyticsListener</a> analyticsListener)</pre>
|
|
<div class="block">Sets an <a href="../analytics/AnalyticsListener.html" title="interface in com.google.android.exoplayer2.analytics"><code>AnalyticsListener</code></a> to be registered.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>analyticsListener</code> - An <a href="../analytics/AnalyticsListener.html" title="interface in com.google.android.exoplayer2.analytics"><code>AnalyticsListener</code></a> to be registered.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="setExpectedPlayerEndedCount(int)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>setExpectedPlayerEndedCount</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.Builder.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner.Builder</a> setExpectedPlayerEndedCount​(int expectedPlayerEndedCount)</pre>
|
|
<div class="block">Sets the number of times the test runner is expected to reach the <a href="../Player.html#STATE_ENDED"><code>Player.STATE_ENDED</code></a>
|
|
or <a href="../Player.html#STATE_IDLE"><code>Player.STATE_IDLE</code></a>. The default is 1. This affects how long
|
|
<a href="ExoPlayerTestRunner.html#blockUntilEnded(long)"><code>ExoPlayerTestRunner.blockUntilEnded(long)</code></a> waits.</div>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>expectedPlayerEndedCount</code> - The number of times the player is expected to reach the ended
|
|
or idle state.</dd>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>This builder.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="build()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>build</h4>
|
|
<pre class="methodSignature">public <a href="ExoPlayerTestRunner.html" title="class in com.google.android.exoplayer2.testutil">ExoPlayerTestRunner</a> build()</pre>
|
|
<div class="block">Builds an <a href="ExoPlayerTestRunner.html" title="class in com.google.android.exoplayer2.testutil"><code>ExoPlayerTestRunner</code></a> using the provided values or their defaults.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The built <a href="ExoPlayerTestRunner.html" title="class in com.google.android.exoplayer2.testutil"><code>ExoPlayerTestRunner</code></a>.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<footer role="contentinfo">
|
|
<nav role="navigation">
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a id="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a id="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../../index.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../../allclasses.html">All 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: </li>
|
|
<li>Nested | </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.summary">Constr</a> | </li>
|
|
<li><a href="#method.summary">Method</a></li>
|
|
</ul>
|
|
<ul class="subNavList">
|
|
<li>Detail: </li>
|
|
<li>Field | </li>
|
|
<li><a href="#constructor.detail">Constr</a> | </li>
|
|
<li><a href="#method.detail">Method</a></li>
|
|
</ul>
|
|
</div>
|
|
<a id="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</nav>
|
|
</footer>
|
|
</body>
|
|
</html>
|