mirror of
https://github.com/samsonjs/media.git
synced 2026-04-11 12:15:47 +00:00
694 lines
34 KiB
HTML
694 lines
34 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<!-- NewPage -->
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Generated by javadoc (1.8.0_101) on Wed Dec 14 17:18:30 GMT 2016 -->
|
|
<title>Chunk (ExoPlayer library)</title>
|
|
<meta name="date" content="2016-12-14">
|
|
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
|
|
<script type="text/javascript" src="../../../../../script.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="text/javascript"><!--
|
|
try {
|
|
if (location.href.indexOf('is-external=true') == -1) {
|
|
parent.document.title="Chunk (ExoPlayer library)";
|
|
}
|
|
}
|
|
catch(err) {
|
|
}
|
|
//-->
|
|
var methods = {"i0":6};
|
|
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],4:["t3","Abstract Methods"]};
|
|
var altColor = "altColor";
|
|
var rowColor = "rowColor";
|
|
var tableTab = "tableTab";
|
|
var activeTableTab = "activeTableTab";
|
|
</script>
|
|
<noscript>
|
|
<div>JavaScript is disabled on your browser.</div>
|
|
</noscript>
|
|
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
<div class="topNav"><a name="navbar.top">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.top.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../../../com/google/android/exoplayer/chunk/BaseMediaChunk.html" title="class in com.google.android.exoplayer.chunk"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../../com/google/android/exoplayer/chunk/ChunkExtractorWrapper.html" title="class in com.google.android.exoplayer.chunk"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/google/android/exoplayer/chunk/Chunk.html" target="_top">Frames</a></li>
|
|
<li><a href="Chunk.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_top">
|
|
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></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>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </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 name="skip.navbar.top">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
<!-- ======== START OF CLASS DATA ======== -->
|
|
<div class="header">
|
|
<div class="subTitle">com.google.android.exoplayer.chunk</div>
|
|
<h2 title="Class Chunk" class="title">Class Chunk</h2>
|
|
</div>
|
|
<div class="contentContainer">
|
|
<ul class="inheritance">
|
|
<li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li>
|
|
<li>
|
|
<ul class="inheritance">
|
|
<li>com.google.android.exoplayer.chunk.Chunk</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<div class="description">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<dl>
|
|
<dt>All Implemented Interfaces:</dt>
|
|
<dd><a href="../../../../../com/google/android/exoplayer/upstream/Loader.Loadable.html" title="interface in com.google.android.exoplayer.upstream">Loader.Loadable</a></dd>
|
|
</dl>
|
|
<dl>
|
|
<dt>Direct Known Subclasses:</dt>
|
|
<dd><a href="../../../../../com/google/android/exoplayer/chunk/DataChunk.html" title="class in com.google.android.exoplayer.chunk">DataChunk</a>, <a href="../../../../../com/google/android/exoplayer/chunk/InitializationChunk.html" title="class in com.google.android.exoplayer.chunk">InitializationChunk</a>, <a href="../../../../../com/google/android/exoplayer/chunk/MediaChunk.html" title="class in com.google.android.exoplayer.chunk">MediaChunk</a></dd>
|
|
</dl>
|
|
<hr>
|
|
<br>
|
|
<pre>public abstract class <span class="typeNameLabel">Chunk</span>
|
|
extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a>
|
|
implements <a href="../../../../../com/google/android/exoplayer/upstream/Loader.Loadable.html" title="interface in com.google.android.exoplayer.upstream">Loader.Loadable</a></pre>
|
|
<div class="block">An abstract base class for <a href="../../../../../com/google/android/exoplayer/upstream/Loader.Loadable.html" title="interface in com.google.android.exoplayer.upstream"><code>Loader.Loadable</code></a> implementations that load chunks of data required
|
|
for the playback of streams.</div>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="summary">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- =========== FIELD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
|
|
<caption><span>Fields</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Field and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>protected <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream">DataSource</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#dataSource">dataSource</a></span></code> </td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html" title="class in com.google.android.exoplayer.upstream">DataSpec</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#dataSpec">dataSpec</a></span></code>
|
|
<div class="block">The <a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html" title="class in com.google.android.exoplayer.upstream"><code>DataSpec</code></a> that defines the data to be loaded.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code><a href="../../../../../com/google/android/exoplayer/chunk/Format.html" title="class in com.google.android.exoplayer.chunk">Format</a></code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#format">format</a></span></code>
|
|
<div class="block">The format associated with the data being loaded, or null if the data being loaded is not
|
|
associated with a specific format.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#NO_PARENT_ID">NO_PARENT_ID</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#parentId"><code>parentId</code></a> if no parent id need be specified.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#parentId">parentId</a></span></code>
|
|
<div class="block">Optional identifier for a parent from which this chunk originates.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger">trigger</a></span></code>
|
|
<div class="block">The reason why the chunk was generated.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TRIGGER_ADAPTIVE">TRIGGER_ADAPTIVE</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load triggered by an adaptive format selection.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TRIGGER_CUSTOM_BASE">TRIGGER_CUSTOM_BASE</a></span></code>
|
|
<div class="block">Implementations may define custom <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> codes greater than or equal to this value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TRIGGER_INITIAL">TRIGGER_INITIAL</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load triggered by an initial format selection.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TRIGGER_MANUAL">TRIGGER_MANUAL</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load triggered by a user initiated format selection.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TRIGGER_TRICK_PLAY">TRIGGER_TRICK_PLAY</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load triggered whilst in a trick play mode.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TRIGGER_UNSPECIFIED">TRIGGER_UNSPECIFIED</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load whose reason is unspecified.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type">type</a></span></code>
|
|
<div class="block">The type of the chunk.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TYPE_CUSTOM_BASE">TYPE_CUSTOM_BASE</a></span></code>
|
|
<div class="block">Implementations may define custom <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> codes greater than or equal to this value.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TYPE_DRM">TYPE_DRM</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing drm related data.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TYPE_MANIFEST">TYPE_MANIFEST</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing manifest or playlist data.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TYPE_MEDIA">TYPE_MEDIA</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing media data.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="rowColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TYPE_MEDIA_INITIALIZATION">TYPE_MEDIA_INITIALIZATION</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing media initialization data.</div>
|
|
</td>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colFirst"><code>static int</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#TYPE_UNSPECIFIED">TYPE_UNSPECIFIED</a></span></code>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing unspecified data.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
|
|
<caption><span>Constructors</span><span class="tabEnd"> </span></caption>
|
|
<tr>
|
|
<th class="colOne" scope="col">Constructor and Description</th>
|
|
</tr>
|
|
<tr class="altColor">
|
|
<td class="colOne"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#Chunk-com.google.android.exoplayer.upstream.DataSource-com.google.android.exoplayer.upstream.DataSpec-int-int-com.google.android.exoplayer.chunk.Format-int-">Chunk</a></span>(<a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream">DataSource</a> dataSource,
|
|
<a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html" title="class in com.google.android.exoplayer.upstream">DataSpec</a> dataSpec,
|
|
int type,
|
|
int trigger,
|
|
<a href="../../../../../com/google/android/exoplayer/chunk/Format.html" title="class in com.google.android.exoplayer.chunk">Format</a> format,
|
|
int parentId)</code> </td>
|
|
</tr>
|
|
</table>
|
|
</li>
|
|
</ul>
|
|
<!-- ========== METHOD SUMMARY =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.summary">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Summary</h3>
|
|
<table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
|
|
<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="t3" class="tableTab"><span><a href="javascript:show(4);">Abstract Methods</a></span><span class="tabEnd"> </span></span></caption>
|
|
<tr>
|
|
<th class="colFirst" scope="col">Modifier and Type</th>
|
|
<th class="colLast" scope="col">Method and Description</th>
|
|
</tr>
|
|
<tr id="i0" class="altColor">
|
|
<td class="colFirst"><code>abstract long</code></td>
|
|
<td class="colLast"><code><span class="memberNameLink"><a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#bytesLoaded--">bytesLoaded</a></span>()</code>
|
|
<div class="block">Gets the number of bytes that have been loaded.</div>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods.inherited.from.class.java.lang.Object">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3>
|
|
<code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li>
|
|
</ul>
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="methods.inherited.from.class.com.google.android.exoplayer.upstream.Loader.Loadable">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Methods inherited from interface com.google.android.exoplayer.upstream.<a href="../../../../../com/google/android/exoplayer/upstream/Loader.Loadable.html" title="interface in com.google.android.exoplayer.upstream">Loader.Loadable</a></h3>
|
|
<code><a href="../../../../../com/google/android/exoplayer/upstream/Loader.Loadable.html#cancelLoad--">cancelLoad</a>, <a href="../../../../../com/google/android/exoplayer/upstream/Loader.Loadable.html#isLoadCanceled--">isLoadCanceled</a>, <a href="../../../../../com/google/android/exoplayer/upstream/Loader.Loadable.html#load--">load</a></code></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
<div class="details">
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<!-- ============ FIELD DETAIL =========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="field.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Field Detail</h3>
|
|
<a name="TYPE_UNSPECIFIED">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TYPE_UNSPECIFIED</h4>
|
|
<pre>public static final int TYPE_UNSPECIFIED</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing unspecified data.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TYPE_UNSPECIFIED">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TYPE_MEDIA">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TYPE_MEDIA</h4>
|
|
<pre>public static final int TYPE_MEDIA</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing media data.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TYPE_MEDIA">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TYPE_MEDIA_INITIALIZATION">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TYPE_MEDIA_INITIALIZATION</h4>
|
|
<pre>public static final int TYPE_MEDIA_INITIALIZATION</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing media initialization data.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TYPE_MEDIA_INITIALIZATION">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TYPE_DRM">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TYPE_DRM</h4>
|
|
<pre>public static final int TYPE_DRM</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing drm related data.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TYPE_DRM">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TYPE_MANIFEST">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TYPE_MANIFEST</h4>
|
|
<pre>public static final int TYPE_MANIFEST</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> for chunks containing manifest or playlist data.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TYPE_MANIFEST">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TYPE_CUSTOM_BASE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TYPE_CUSTOM_BASE</h4>
|
|
<pre>public static final int TYPE_CUSTOM_BASE</pre>
|
|
<div class="block">Implementations may define custom <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a> codes greater than or equal to this value.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TYPE_CUSTOM_BASE">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TRIGGER_UNSPECIFIED">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TRIGGER_UNSPECIFIED</h4>
|
|
<pre>public static final int TRIGGER_UNSPECIFIED</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load whose reason is unspecified.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TRIGGER_UNSPECIFIED">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TRIGGER_INITIAL">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TRIGGER_INITIAL</h4>
|
|
<pre>public static final int TRIGGER_INITIAL</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load triggered by an initial format selection.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TRIGGER_INITIAL">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TRIGGER_MANUAL">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TRIGGER_MANUAL</h4>
|
|
<pre>public static final int TRIGGER_MANUAL</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load triggered by a user initiated format selection.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TRIGGER_MANUAL">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TRIGGER_ADAPTIVE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TRIGGER_ADAPTIVE</h4>
|
|
<pre>public static final int TRIGGER_ADAPTIVE</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load triggered by an adaptive format selection.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TRIGGER_ADAPTIVE">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TRIGGER_TRICK_PLAY">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TRIGGER_TRICK_PLAY</h4>
|
|
<pre>public static final int TRIGGER_TRICK_PLAY</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> for a load triggered whilst in a trick play mode.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TRIGGER_TRICK_PLAY">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="TRIGGER_CUSTOM_BASE">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>TRIGGER_CUSTOM_BASE</h4>
|
|
<pre>public static final int TRIGGER_CUSTOM_BASE</pre>
|
|
<div class="block">Implementations may define custom <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a> codes greater than or equal to this value.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.TRIGGER_CUSTOM_BASE">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="NO_PARENT_ID">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>NO_PARENT_ID</h4>
|
|
<pre>public static final int NO_PARENT_ID</pre>
|
|
<div class="block">Value of <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#parentId"><code>parentId</code></a> if no parent id need be specified.</div>
|
|
<dl>
|
|
<dt><span class="seeLabel">See Also:</span></dt>
|
|
<dd><a href="../../../../../constant-values.html#com.google.android.exoplayer.chunk.Chunk.NO_PARENT_ID">Constant Field Values</a></dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
<a name="type">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>type</h4>
|
|
<pre>public final int type</pre>
|
|
<div class="block">The type of the chunk. For reporting only.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="trigger">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>trigger</h4>
|
|
<pre>public final int trigger</pre>
|
|
<div class="block">The reason why the chunk was generated. For reporting only.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="format">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>format</h4>
|
|
<pre>public final <a href="../../../../../com/google/android/exoplayer/chunk/Format.html" title="class in com.google.android.exoplayer.chunk">Format</a> format</pre>
|
|
<div class="block">The format associated with the data being loaded, or null if the data being loaded is not
|
|
associated with a specific format.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="dataSpec">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>dataSpec</h4>
|
|
<pre>public final <a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html" title="class in com.google.android.exoplayer.upstream">DataSpec</a> dataSpec</pre>
|
|
<div class="block">The <a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html" title="class in com.google.android.exoplayer.upstream"><code>DataSpec</code></a> that defines the data to be loaded.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="parentId">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockList">
|
|
<li class="blockList">
|
|
<h4>parentId</h4>
|
|
<pre>public final int parentId</pre>
|
|
<div class="block">Optional identifier for a parent from which this chunk originates.</div>
|
|
</li>
|
|
</ul>
|
|
<a name="dataSource">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>dataSource</h4>
|
|
<pre>protected final <a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream">DataSource</a> dataSource</pre>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="constructor.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Constructor Detail</h3>
|
|
<a name="Chunk-com.google.android.exoplayer.upstream.DataSource-com.google.android.exoplayer.upstream.DataSpec-int-int-com.google.android.exoplayer.chunk.Format-int-">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>Chunk</h4>
|
|
<pre>public Chunk(<a href="../../../../../com/google/android/exoplayer/upstream/DataSource.html" title="interface in com.google.android.exoplayer.upstream">DataSource</a> dataSource,
|
|
<a href="../../../../../com/google/android/exoplayer/upstream/DataSpec.html" title="class in com.google.android.exoplayer.upstream">DataSpec</a> dataSpec,
|
|
int type,
|
|
int trigger,
|
|
<a href="../../../../../com/google/android/exoplayer/chunk/Format.html" title="class in com.google.android.exoplayer.chunk">Format</a> format,
|
|
int parentId)</pre>
|
|
<dl>
|
|
<dt><span class="paramLabel">Parameters:</span></dt>
|
|
<dd><code>dataSource</code> - The source from which the data should be loaded.</dd>
|
|
<dd><code>dataSpec</code> - Defines the data to be loaded. <code>dataSpec.length</code> must not exceed
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true#MAX_VALUE" title="class or interface in java.lang"><code>Integer.MAX_VALUE</code></a>. If <code>dataSpec.length == C.LENGTH_UNBOUNDED</code> then
|
|
the length resolved by <code>dataSource.open(dataSpec)</code> must not exceed
|
|
<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Integer.html?is-external=true#MAX_VALUE" title="class or interface in java.lang"><code>Integer.MAX_VALUE</code></a>.</dd>
|
|
<dd><code>type</code> - See <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#type"><code>type</code></a>.</dd>
|
|
<dd><code>trigger</code> - See <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#trigger"><code>trigger</code></a>.</dd>
|
|
<dd><code>format</code> - See <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#format"><code>format</code></a>.</dd>
|
|
<dd><code>parentId</code> - See <a href="../../../../../com/google/android/exoplayer/chunk/Chunk.html#parentId"><code>parentId</code></a>.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<!-- ============ METHOD DETAIL ========== -->
|
|
<ul class="blockList">
|
|
<li class="blockList"><a name="method.detail">
|
|
<!-- -->
|
|
</a>
|
|
<h3>Method Detail</h3>
|
|
<a name="bytesLoaded--">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="blockListLast">
|
|
<li class="blockList">
|
|
<h4>bytesLoaded</h4>
|
|
<pre>public abstract long bytesLoaded()</pre>
|
|
<div class="block">Gets the number of bytes that have been loaded.</div>
|
|
<dl>
|
|
<dt><span class="returnLabel">Returns:</span></dt>
|
|
<dd>The number of bytes that have been loaded.</dd>
|
|
</dl>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<!-- ========= END OF CLASS DATA ========= -->
|
|
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
<div class="bottomNav"><a name="navbar.bottom">
|
|
<!-- -->
|
|
</a>
|
|
<div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div>
|
|
<a name="navbar.bottom.firstrow">
|
|
<!-- -->
|
|
</a>
|
|
<ul class="navList" title="Navigation">
|
|
<li><a href="../../../../../overview-summary.html">Overview</a></li>
|
|
<li><a href="package-summary.html">Package</a></li>
|
|
<li class="navBarCell1Rev">Class</li>
|
|
<li><a href="package-tree.html">Tree</a></li>
|
|
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
|
|
<li><a href="../../../../../index-all.html">Index</a></li>
|
|
<li><a href="../../../../../help-doc.html">Help</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="subNav">
|
|
<ul class="navList">
|
|
<li><a href="../../../../../com/google/android/exoplayer/chunk/BaseMediaChunk.html" title="class in com.google.android.exoplayer.chunk"><span class="typeNameLink">Prev Class</span></a></li>
|
|
<li><a href="../../../../../com/google/android/exoplayer/chunk/ChunkExtractorWrapper.html" title="class in com.google.android.exoplayer.chunk"><span class="typeNameLink">Next Class</span></a></li>
|
|
</ul>
|
|
<ul class="navList">
|
|
<li><a href="../../../../../index.html?com/google/android/exoplayer/chunk/Chunk.html" target="_top">Frames</a></li>
|
|
<li><a href="Chunk.html" target="_top">No Frames</a></li>
|
|
</ul>
|
|
<ul class="navList" id="allclasses_navbar_bottom">
|
|
<li><a href="../../../../../allclasses-noframe.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>
|
|
</div>
|
|
<div>
|
|
<ul class="subNavList">
|
|
<li>Summary: </li>
|
|
<li>Nested | </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 name="skip.navbar.bottom">
|
|
<!-- -->
|
|
</a></div>
|
|
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
</body>
|
|
</html>
|