本文整理汇总了Java中com.google.android.exoplayer.upstream.Loader类的典型用法代码示例。如果您正苦于以下问题:Java Loader类的具体用法?Java Loader怎么用?Java Loader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Loader类属于com.google.android.exoplayer.upstream包,在下文中一共展示了Loader类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: prepare
import com.google.android.exoplayer.upstream.Loader; //导入依赖的package包/类
@Override
public boolean prepare(long positionUs) {
Assertions.checkState(state == STATE_INITIALIZED || state == STATE_PREPARED);
if (state == STATE_PREPARED) {
return true;
}
loader = new Loader("Loader:" + chunkSource.getTrackInfo().mimeType);
state = STATE_PREPARED;
return true;
}
开发者ID:XueyanLiu,项目名称:miku,代码行数:11,代码来源:ChunkSampleSource.java
示例2: SingleFetchHelper
import com.google.android.exoplayer.upstream.Loader; //导入依赖的package包/类
public SingleFetchHelper(UriLoadable<T> singleUseLoadable, Looper callbackLooper,
ManifestCallback<T> wrappedCallback) {
this.singleUseLoadable = singleUseLoadable;
this.callbackLooper = callbackLooper;
this.wrappedCallback = wrappedCallback;
singleUseLoader = new Loader("manifestLoader:single");
}
开发者ID:XueyanLiu,项目名称:miku,代码行数:8,代码来源:ManifestFetcher.java
示例3: prepare
import com.google.android.exoplayer.upstream.Loader; //导入依赖的package包/类
@Override
public boolean prepare(long positionUs) {
Assertions.checkState(state == STATE_INITIALIZED || state == STATE_PREPARED);
if (state == STATE_PREPARED) {
return true;
} else if (!chunkSource.prepare()) {
return false;
}
if (chunkSource.getTrackCount() > 0) {
loader = new Loader("Loader:" + chunkSource.getFormat(0).mimeType);
}
state = STATE_PREPARED;
return true;
}
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:15,代码来源:ChunkSampleSource.java
示例4: prepare
import com.google.android.exoplayer.upstream.Loader; //导入依赖的package包/类
@Override
public boolean prepare() {
Assertions.checkState(state == STATE_UNPREPARED);
loader = new Loader("Loader:" + chunkSource.getTrackInfo().mimeType);
state = STATE_PREPARED;
return true;
}
开发者ID:Weco,项目名称:android-exoplayer,代码行数:8,代码来源:ChunkSampleSource.java
示例5: prepare
import com.google.android.exoplayer.upstream.Loader; //导入依赖的package包/类
@Override
public boolean prepare() {
Assertions.checkState(state == STATE_UNPREPARED);
loader = new Loader("Loader:" + chunkSource.getTrackInfo().mimeType, this);
state = STATE_PREPARED;
return true;
}
开发者ID:edx,项目名称:edx-app-android,代码行数:8,代码来源:ChunkSampleSource.java
示例6: resolveHttp
import com.google.android.exoplayer.upstream.Loader; //导入依赖的package包/类
private void resolveHttp(UriLoadable.Parser<Long> parser) {
singleUseLoader = new Loader("utctiming");
singleUseLoadable = new UriLoadable<>(timingElement.value, uriDataSource, parser);
singleUseLoader.startLoading(singleUseLoadable, this);
}
开发者ID:XueyanLiu,项目名称:miku,代码行数:6,代码来源:UtcTimingElementResolver.java
示例7: SingleFetchHelper
import com.google.android.exoplayer.upstream.Loader; //导入依赖的package包/类
public SingleFetchHelper(Looper callbackLooper, ManifestCallback<T> wrappedCallback) {
this.callbackLooper = callbackLooper;
this.wrappedCallback = wrappedCallback;
singleUseLoader = new Loader("manifestLoader:single");
singleUseLoadable = new ManifestLoadable();
}
开发者ID:Weco,项目名称:android-exoplayer,代码行数:7,代码来源:ManifestFetcher.java
注:本文中的com.google.android.exoplayer.upstream.Loader类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论