mirror of
https://github.com/samsonjs/media.git
synced 2026-03-26 09:35:47 +00:00
983 lines
50 KiB
HTML
983 lines
50 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>TrackSelectionParameters (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="TrackSelectionParameters (ExoPlayer library)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var data = {"i0":10,"i1":10,"i2":9,"i3":10,"i4":10};
|
|
var tabs = {65535:["t0","All Methods"],1:["t1","Static 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><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </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.trackselection</a></div>
|
|
<h2 title="Class TrackSelectionParameters" class="title">Class TrackSelectionParameters</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.trackselection.TrackSelectionParameters</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd><code><a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a></code></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>Direct Known Subclasses:</dt>
|
|
<dd><code><a href="DefaultTrackSelector.Parameters.html" title="class in com.google.android.exoplayer2.trackselection">DefaultTrackSelector.Parameters</a></code></dd>
|
|
</dl>
|
|
<hr>
|
|
<pre>public class <span class="typeNameLabel">TrackSelectionParameters</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>
|
|
implements <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a></pre>
|
|
<div class="block">Constraint parameters for track selection.
|
|
|
|
<p>For example the following code modifies the parameters to restrict video track selections to
|
|
SD, and to select a German audio track if there is one:
|
|
|
|
<pre><code>
|
|
// Build on the current parameters.
|
|
TrackSelectionParameters currentParameters = player.getTrackSelectionParameters()
|
|
// Build the resulting parameters.
|
|
TrackSelectionParameters newParameters = currentParameters
|
|
.buildUpon()
|
|
.setMaxVideoSizeSd()
|
|
.setPreferredAudioLanguage("deu")
|
|
.build();
|
|
// Set the new parameters.
|
|
player.setTrackSelectionParameters(newParameters);
|
|
</code></pre></div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ======== NESTED CLASS SUMMARY ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="nested.class.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested Class Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Nested Classes</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colSecond" scope="col">Class</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static class </code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="TrackSelectionParameters.Builder.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters.Builder</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">A builder for <a href="TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection"><code>TrackSelectionParameters</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="nested.classes.inherited.from.class.com.google.android.exoplayer2.Bundleable">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Nested classes/interfaces inherited from interface com.google.android.exoplayer2.<a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a></h3>
|
|
<code><a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a><<a href="../Bundleable.Creator.html" title="type parameter in Bundleable.Creator">T</a> extends <a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a>></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary">
|
|
<caption><span>Fields</span><span class="tabEnd"> </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 <a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a><<a href="TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#CREATOR">CREATOR</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Object that can restore <code>TrackSelectionParameters</code> from a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static <a href="TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DEFAULT">DEFAULT</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">This instance is not configured using <a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top"><code>Context</code></a> constraints.</div>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static <a href="TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#DEFAULT_WITHOUT_CONTEXT">DEFAULT_WITHOUT_CONTEXT</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">An instance with default values, except those obtained from the <a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top"><code>Context</code></a>.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableSet.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableSet</a><<a href="../C.TrackType.html" title="annotation in com.google.android.exoplayer2">@TrackType</a> <a href="https://developer.android.com/reference/java/lang/Integer.html" title="class or interface in java.lang" class="externalLink" target="_top">Integer</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#disabledTrackTypes">disabledTrackTypes</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The track types that are disabled.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forceHighestSupportedBitrate">forceHighestSupportedBitrate</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Whether to force selection of the highest bitrate audio and video tracks that comply with all
|
|
other constraints.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#forceLowestBitrate">forceLowestBitrate</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Whether to force selection of the single lowest bitrate audio and video tracks that comply with
|
|
all other constraints.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxAudioBitrate">maxAudioBitrate</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Maximum allowed audio bitrate in bits per second.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxAudioChannelCount">maxAudioChannelCount</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Maximum allowed audio channel count.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxVideoBitrate">maxVideoBitrate</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Maximum allowed video bitrate in bits per second.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxVideoFrameRate">maxVideoFrameRate</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Maximum allowed video frame rate in hertz.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxVideoHeight">maxVideoHeight</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Maximum allowed video height in pixels.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#maxVideoWidth">maxVideoWidth</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Maximum allowed video width in pixels.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#minVideoBitrate">minVideoBitrate</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Minimum allowed video bitrate in bits per second.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#minVideoFrameRate">minVideoFrameRate</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Minimum allowed video frame rate in hertz.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#minVideoHeight">minVideoHeight</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Minimum allowed video height in pixels.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#minVideoWidth">minVideoWidth</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Minimum allowed video width in pixels.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a><<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#preferredAudioLanguages">preferredAudioLanguages</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The preferred languages for audio and forced text tracks as IETF BCP 47 conformant tags in
|
|
order of preference.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a><<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#preferredAudioMimeTypes">preferredAudioMimeTypes</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The preferred sample MIME types for audio tracks in order of preference, or an empty list for
|
|
no preference.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>@com.google.android.exoplayer2.C.RoleFlags int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#preferredAudioRoleFlags">preferredAudioRoleFlags</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The preferred <a href="../C.RoleFlags.html" title="annotation in com.google.android.exoplayer2"><code>C.RoleFlags</code></a> for audio tracks.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a><<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#preferredTextLanguages">preferredTextLanguages</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The preferred languages for text tracks as IETF BCP 47 conformant tags in order of preference.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>@com.google.android.exoplayer2.C.RoleFlags int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#preferredTextRoleFlags">preferredTextRoleFlags</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The preferred <a href="../C.RoleFlags.html" title="annotation in com.google.android.exoplayer2"><code>C.RoleFlags</code></a> for text tracks.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a><<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#preferredVideoMimeTypes">preferredVideoMimeTypes</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">The preferred sample MIME types for video tracks in order of preference, or an empty list for
|
|
no preference.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#selectUndeterminedTextLanguage">selectUndeterminedTextLanguage</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Whether a text track with undetermined language should be selected if no track with <a href="#preferredTextLanguages"><code>preferredTextLanguages</code></a> is available, or if <a href="#preferredTextLanguages"><code>preferredTextLanguages</code></a> is unset.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="TrackSelectionOverrides.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionOverrides</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#trackSelectionOverrides">trackSelectionOverrides</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Overrides to force tracks to be selected.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#viewportHeight">viewportHeight</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Viewport height in pixels.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#viewportOrientationMayChange">viewportOrientationMayChange</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Whether the viewport orientation may change during playback.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#viewportWidth">viewportWidth</a></span></code></th>
|
|
<td class="colLast">
|
|
<div class="block">Viewport width in pixels.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ======== 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">Modifier</th>
|
|
<th class="colSecond" scope="col">Constructor</th>
|
|
<th class="colLast" scope="col">Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected </code></td>
|
|
<th class="colConstructorName" scope="row"><code><span class="memberNameLink"><a href="#%3Cinit%3E(com.google.android.exoplayer2.trackselection.TrackSelectionParameters.Builder)">TrackSelectionParameters</a></span>​(<a href="TrackSelectionParameters.Builder.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters.Builder</a> builder)</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="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></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="TrackSelectionParameters.Builder.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters.Builder</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#buildUpon()">buildUpon</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Creates a new <a href="TrackSelectionParameters.Builder.html" title="class in com.google.android.exoplayer2.trackselection"><code>TrackSelectionParameters.Builder</code></a>, copying the initial values from this instance.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i1" class="rowColor">
|
|
<td class="colFirst"><code>boolean</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#equals(java.lang.Object)">equals</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> obj)</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i2" class="altColor">
|
|
<td class="colFirst"><code>static <a href="TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#getDefaults(android.content.Context)">getDefaults</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">
|
|
<div class="block">Returns an instance configured with default values.</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="i3" class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#hashCode()">hashCode</a></span>()</code></th>
|
|
<td class="colLast"> </td>
|
|
</tr>
|
|
<tr id="i4" class="altColor">
|
|
<td class="colFirst"><code><a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a></code></td>
|
|
<th class="colSecond" scope="row"><code><span class="memberNameLink"><a href="#toBundle()">toBundle</a></span>()</code></th>
|
|
<td class="colLast">
|
|
<div class="block">Returns a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a> representing the information stored in this object.</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#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#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">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a id="DEFAULT_WITHOUT_CONTEXT">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>DEFAULT_WITHOUT_CONTEXT</h4>
|
|
<pre>public static final <a href="TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a> DEFAULT_WITHOUT_CONTEXT</pre>
|
|
<div class="block">An instance with default values, except those obtained from the <a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink" target="_top"><code>Context</code></a>.
|
|
|
|
<p>If possible, use <a href="#getDefaults(android.content.Context)"><code>getDefaults(Context)</code></a> instead.
|
|
|
|
<p>This instance will not have the following settings:
|
|
|
|
<ul>
|
|
<li><a href="TrackSelectionParameters.Builder.html#setViewportSizeToPhysicalDisplaySize(android.content.Context,boolean)"><code>Viewport
|
|
constraints</code></a> configured for the primary display.
|
|
<li><a href="TrackSelectionParameters.Builder.html#setPreferredTextLanguageAndRoleFlagsToCaptioningManagerSettings(android.content.Context)"><code>Preferred text language and role flags</code></a> configured to the accessibility settings of
|
|
<a href="https://developer.android.com/reference/android/view/accessibility/CaptioningManager.html" title="class or interface in android.view.accessibility" class="externalLink" target="_top"><code>CaptioningManager</code></a>.
|
|
</ul></div>
|
|
</li>
|
|
</ul>
|
|
<a id="DEFAULT">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>DEFAULT</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>
|
|
public static final <a href="TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a> DEFAULT</pre>
|
|
<div class="deprecationBlock"><span class="deprecatedLabel">Deprecated.</span>
|
|
<div class="deprecationComment">This instance is not configured using <a href="https://developer.android.com/reference/android/content/Context.html" title="class or interface in android.content" class="externalLink"><code>Context</code></a> constraints. Use <a href="#getDefaults(android.content.Context)" target="_top"><code>getDefaults(Context)</code></a> instead.</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
<a id="maxVideoWidth">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxVideoWidth</h4>
|
|
<pre>public final int maxVideoWidth</pre>
|
|
<div class="block">Maximum allowed video width in pixels. The default value is <a href="https://developer.android.com/reference/java/lang/Integer.html#MAX_VALUE" title="class or interface in java.lang" class="externalLink" target="_top"><code>Integer.MAX_VALUE</code></a> (i.e. no
|
|
constraint).
|
|
|
|
<p>To constrain adaptive video track selections to be suitable for a given viewport (the region
|
|
of the display within which video will be played), use (<a href="#viewportWidth"><code>viewportWidth</code></a>, <a href="#viewportHeight"><code>viewportHeight</code></a> and <a href="#viewportOrientationMayChange"><code>viewportOrientationMayChange</code></a>) instead.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="maxVideoHeight">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxVideoHeight</h4>
|
|
<pre>public final int maxVideoHeight</pre>
|
|
<div class="block">Maximum allowed video height in pixels. The default value is <a href="https://developer.android.com/reference/java/lang/Integer.html#MAX_VALUE" title="class or interface in java.lang" class="externalLink" target="_top"><code>Integer.MAX_VALUE</code></a> (i.e. no
|
|
constraint).
|
|
|
|
<p>To constrain adaptive video track selections to be suitable for a given viewport (the region
|
|
of the display within which video will be played), use (<a href="#viewportWidth"><code>viewportWidth</code></a>, <a href="#viewportHeight"><code>viewportHeight</code></a> and <a href="#viewportOrientationMayChange"><code>viewportOrientationMayChange</code></a>) instead.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="maxVideoFrameRate">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxVideoFrameRate</h4>
|
|
<pre>public final int maxVideoFrameRate</pre>
|
|
<div class="block">Maximum allowed video frame rate in hertz. The default value is <a href="https://developer.android.com/reference/java/lang/Integer.html#MAX_VALUE" title="class or interface in java.lang" class="externalLink" target="_top"><code>Integer.MAX_VALUE</code></a> (i.e.
|
|
no constraint).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="maxVideoBitrate">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxVideoBitrate</h4>
|
|
<pre>public final int maxVideoBitrate</pre>
|
|
<div class="block">Maximum allowed video bitrate in bits per second. The default value is <a href="https://developer.android.com/reference/java/lang/Integer.html#MAX_VALUE" title="class or interface in java.lang" class="externalLink" target="_top"><code>Integer.MAX_VALUE</code></a> (i.e. no constraint).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="minVideoWidth">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>minVideoWidth</h4>
|
|
<pre>public final int minVideoWidth</pre>
|
|
<div class="block">Minimum allowed video width in pixels. The default value is 0 (i.e. no constraint).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="minVideoHeight">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>minVideoHeight</h4>
|
|
<pre>public final int minVideoHeight</pre>
|
|
<div class="block">Minimum allowed video height in pixels. The default value is 0 (i.e. no constraint).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="minVideoFrameRate">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>minVideoFrameRate</h4>
|
|
<pre>public final int minVideoFrameRate</pre>
|
|
<div class="block">Minimum allowed video frame rate in hertz. The default value is 0 (i.e. no constraint).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="minVideoBitrate">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>minVideoBitrate</h4>
|
|
<pre>public final int minVideoBitrate</pre>
|
|
<div class="block">Minimum allowed video bitrate in bits per second. The default value is 0 (i.e. no constraint).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="viewportWidth">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>viewportWidth</h4>
|
|
<pre>public final int viewportWidth</pre>
|
|
<div class="block">Viewport width in pixels. Constrains video track selections for adaptive content so that only
|
|
tracks suitable for the viewport are selected. The default value is the physical width of the
|
|
primary display, in pixels.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="viewportHeight">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>viewportHeight</h4>
|
|
<pre>public final int viewportHeight</pre>
|
|
<div class="block">Viewport height in pixels. Constrains video track selections for adaptive content so that only
|
|
tracks suitable for the viewport are selected. The default value is the physical height of the
|
|
primary display, in pixels.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="viewportOrientationMayChange">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>viewportOrientationMayChange</h4>
|
|
<pre>public final boolean viewportOrientationMayChange</pre>
|
|
<div class="block">Whether the viewport orientation may change during playback. Constrains video track selections
|
|
for adaptive content so that only tracks suitable for the viewport are selected. The default
|
|
value is <code>true</code>.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="preferredVideoMimeTypes">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>preferredVideoMimeTypes</h4>
|
|
<pre>public final <a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a><<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>> preferredVideoMimeTypes</pre>
|
|
<div class="block">The preferred sample MIME types for video tracks in order of preference, or an empty list for
|
|
no preference. The default is an empty list.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="preferredAudioLanguages">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>preferredAudioLanguages</h4>
|
|
<pre>public final <a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a><<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>> preferredAudioLanguages</pre>
|
|
<div class="block">The preferred languages for audio and forced text tracks as IETF BCP 47 conformant tags in
|
|
order of preference. An empty list selects the default track, or the first track if there's no
|
|
default. The default value is an empty list.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="preferredAudioRoleFlags">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>preferredAudioRoleFlags</h4>
|
|
<pre><a href="../C.RoleFlags.html" title="annotation in com.google.android.exoplayer2">@RoleFlags</a>
|
|
public final @com.google.android.exoplayer2.C.RoleFlags int preferredAudioRoleFlags</pre>
|
|
<div class="block">The preferred <a href="../C.RoleFlags.html" title="annotation in com.google.android.exoplayer2"><code>C.RoleFlags</code></a> for audio tracks. <code>0</code> selects the default track if
|
|
there is one, or the first track if there's no default. The default value is <code>0</code>.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="maxAudioChannelCount">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxAudioChannelCount</h4>
|
|
<pre>public final int maxAudioChannelCount</pre>
|
|
<div class="block">Maximum allowed audio channel count. The default value is <a href="https://developer.android.com/reference/java/lang/Integer.html#MAX_VALUE" title="class or interface in java.lang" class="externalLink" target="_top"><code>Integer.MAX_VALUE</code></a> (i.e. no
|
|
constraint).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="maxAudioBitrate">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>maxAudioBitrate</h4>
|
|
<pre>public final int maxAudioBitrate</pre>
|
|
<div class="block">Maximum allowed audio bitrate in bits per second. The default value is <a href="https://developer.android.com/reference/java/lang/Integer.html#MAX_VALUE" title="class or interface in java.lang" class="externalLink" target="_top"><code>Integer.MAX_VALUE</code></a> (i.e. no constraint).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="preferredAudioMimeTypes">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>preferredAudioMimeTypes</h4>
|
|
<pre>public final <a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a><<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>> preferredAudioMimeTypes</pre>
|
|
<div class="block">The preferred sample MIME types for audio tracks in order of preference, or an empty list for
|
|
no preference. The default is an empty list.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="preferredTextLanguages">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>preferredTextLanguages</h4>
|
|
<pre>public final <a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableList.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableList</a><<a href="https://developer.android.com/reference/java/lang/String.html" title="class or interface in java.lang" class="externalLink" target="_top">String</a>> preferredTextLanguages</pre>
|
|
<div class="block">The preferred languages for text tracks as IETF BCP 47 conformant tags in order of preference.
|
|
An empty list selects the default track if there is one, or no track otherwise. The default
|
|
value is an empty list, or the language of the accessibility <a href="https://developer.android.com/reference/android/view/accessibility/CaptioningManager.html" title="class or interface in android.view.accessibility" class="externalLink" target="_top"><code>CaptioningManager</code></a> if
|
|
enabled.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="preferredTextRoleFlags">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>preferredTextRoleFlags</h4>
|
|
<pre><a href="../C.RoleFlags.html" title="annotation in com.google.android.exoplayer2">@RoleFlags</a>
|
|
public final @com.google.android.exoplayer2.C.RoleFlags int preferredTextRoleFlags</pre>
|
|
<div class="block">The preferred <a href="../C.RoleFlags.html" title="annotation in com.google.android.exoplayer2"><code>C.RoleFlags</code></a> for text tracks. <code>0</code> selects the default track if there
|
|
is one, or no track otherwise. The default value is <code>0</code>, or <a href="../C.html#ROLE_FLAG_SUBTITLE"><code>C.ROLE_FLAG_SUBTITLE</code></a>
|
|
| <a href="../C.html#ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND"><code>C.ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND</code></a> if the accessibility <a href="https://developer.android.com/reference/android/view/accessibility/CaptioningManager.html" title="class or interface in android.view.accessibility" class="externalLink" target="_top"><code>CaptioningManager</code></a>
|
|
is enabled.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="selectUndeterminedTextLanguage">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>selectUndeterminedTextLanguage</h4>
|
|
<pre>public final boolean selectUndeterminedTextLanguage</pre>
|
|
<div class="block">Whether a text track with undetermined language should be selected if no track with <a href="#preferredTextLanguages"><code>preferredTextLanguages</code></a> is available, or if <a href="#preferredTextLanguages"><code>preferredTextLanguages</code></a> is unset. The
|
|
default value is <code>false</code>.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="forceLowestBitrate">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>forceLowestBitrate</h4>
|
|
<pre>public final boolean forceLowestBitrate</pre>
|
|
<div class="block">Whether to force selection of the single lowest bitrate audio and video tracks that comply with
|
|
all other constraints. The default value is <code>false</code>.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="forceHighestSupportedBitrate">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>forceHighestSupportedBitrate</h4>
|
|
<pre>public final boolean forceHighestSupportedBitrate</pre>
|
|
<div class="block">Whether to force selection of the highest bitrate audio and video tracks that comply with all
|
|
other constraints. The default value is <code>false</code>.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="trackSelectionOverrides">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>trackSelectionOverrides</h4>
|
|
<pre>public final <a href="TrackSelectionOverrides.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionOverrides</a> trackSelectionOverrides</pre>
|
|
<div class="block">Overrides to force tracks to be selected.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="disabledTrackTypes">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>disabledTrackTypes</h4>
|
|
<pre>public final <a href="https://guava.dev/releases/27.1-android/api/docs/com/google/common/collect/ImmutableSet.html?is-external=true" title="class or interface in com.google.common.collect" class="externalLink">ImmutableSet</a><<a href="../C.TrackType.html" title="annotation in com.google.android.exoplayer2">@TrackType</a> <a href="https://developer.android.com/reference/java/lang/Integer.html" title="class or interface in java.lang" class="externalLink" target="_top">Integer</a>> disabledTrackTypes</pre>
|
|
<div class="block">The track types that are disabled. No track of a disabled type will be selected, thus no track
|
|
type contained in the set will be played. The default value is that no track type is disabled
|
|
(empty set).</div>
|
|
</li>
|
|
</ul>
|
|
<a id="CREATOR">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>CREATOR</h4>
|
|
<pre>public static final <a href="../Bundleable.Creator.html" title="interface in com.google.android.exoplayer2">Bundleable.Creator</a><<a href="TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a>> CREATOR</pre>
|
|
<div class="block">Object that can restore <code>TrackSelectionParameters</code> from a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a>.</div>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<section role="region">
|
|
<ul class="blockList">
|
|
<li class="blockList"><a id="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a id="<init>(com.google.android.exoplayer2.trackselection.TrackSelectionParameters.Builder)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>TrackSelectionParameters</h4>
|
|
<pre>protected TrackSelectionParameters​(<a href="TrackSelectionParameters.Builder.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters.Builder</a> builder)</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="getDefaults(android.content.Context)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>getDefaults</h4>
|
|
<pre class="methodSignature">public static <a href="TrackSelectionParameters.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters</a> getDefaults​(<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>
|
|
<div class="block">Returns an instance configured with default values.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="buildUpon()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>buildUpon</h4>
|
|
<pre class="methodSignature">public <a href="TrackSelectionParameters.Builder.html" title="class in com.google.android.exoplayer2.trackselection">TrackSelectionParameters.Builder</a> buildUpon()</pre>
|
|
<div class="block">Creates a new <a href="TrackSelectionParameters.Builder.html" title="class in com.google.android.exoplayer2.trackselection"><code>TrackSelectionParameters.Builder</code></a>, copying the initial values from this instance.</div>
|
|
</li>
|
|
</ul>
|
|
<a id="equals(java.lang.Object)">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>equals</h4>
|
|
<pre class="methodSignature">public boolean equals​(@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> obj)</pre>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
|
<dd><code><a href="https://developer.android.com/reference/java/lang/Object.html#equals(java.lang.Object)" title="class or interface in java.lang" class="externalLink">equals</a></code> in class <code><a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="hashCode()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>hashCode</h4>
|
|
<pre class="methodSignature">public int hashCode()</pre>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Overrides:</span></dt>
|
|
<dd><code><a href="https://developer.android.com/reference/java/lang/Object.html#hashCode()" title="class or interface in java.lang" class="externalLink">hashCode</a></code> in class <code><a href="https://developer.android.com/reference/java/lang/Object.html?is-external=true" title="class or interface in java.lang" class="externalLink" target="_top">Object</a></code></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a id="toBundle()">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>toBundle</h4>
|
|
<pre class="methodSignature">public <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top">Bundle</a> toBundle()</pre>
|
|
<div class="block"><span class="descfrmTypeLabel">Description copied from interface: <code><a href="../Bundleable.html#toBundle()">Bundleable</a></code></span></div>
|
|
<div class="block">Returns a <a href="https://developer.android.com/reference/android/os/Bundle.html" title="class or interface in android.os" class="externalLink" target="_top"><code>Bundle</code></a> representing the information stored in this object.</div>
|
|
<dl>
|
|
<dt><span class="overrideSpecifyLabel">Specified by:</span></dt>
|
|
<dd><code><a href="../Bundleable.html#toBundle()">toBundle</a></code> in interface <code><a href="../Bundleable.html" title="interface in com.google.android.exoplayer2">Bundleable</a></code></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><a href="#nested.class.summary">Nested</a> | </li>
|
|
<li><a href="#field.summary">Field</a> | </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><a href="#field.detail">Field</a> | </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>
|