Java 类com.google.android.exoplayer.upstream.Loader 实例源码

项目:miku    文件:ChunkSampleSource.java   
@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;
}
项目:miku    文件:ManifestFetcher.java   
public SingleFetchHelper(UriLoadable<T> singleUseLoadable, Looper callbackLooper,
    ManifestCallback<T> wrappedCallback) {
  this.singleUseLoadable = singleUseLoadable;
  this.callbackLooper = callbackLooper;
  this.wrappedCallback = wrappedCallback;
  singleUseLoader = new Loader("manifestLoader:single");
}
项目:ExoPlayer-Demo    文件:ChunkSampleSource.java   
@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;
}
项目:ExoPlayer-Demo    文件:ManifestFetcher.java   
public SingleFetchHelper(UriLoadable<T> singleUseLoadable, Looper callbackLooper,
    ManifestCallback<T> wrappedCallback) {
  this.singleUseLoadable = singleUseLoadable;
  this.callbackLooper = callbackLooper;
  this.wrappedCallback = wrappedCallback;
  singleUseLoader = new Loader("manifestLoader:single");
}
项目:android-exoplayer    文件:ChunkSampleSource.java   
@Override
public boolean prepare() {
  Assertions.checkState(state == STATE_UNPREPARED);
  loader = new Loader("Loader:" + chunkSource.getTrackInfo().mimeType);
  state = STATE_PREPARED;
  return true;
}
项目:Exoplayer_VLC    文件:ChunkSampleSource.java   
@Override
public boolean prepare() {
  Assertions.checkState(state == STATE_UNPREPARED);
  loader = new Loader("Loader:" + chunkSource.getTrackInfo().mimeType);
  state = STATE_PREPARED;
  return true;
}
项目:edx-app-android    文件:ChunkSampleSource.java   
@Override
public boolean prepare() {
  Assertions.checkState(state == STATE_UNPREPARED);
  loader = new Loader("Loader:" + chunkSource.getTrackInfo().mimeType, this);
  state = STATE_PREPARED;
  return true;
}
项目:ExoPlayer    文件:ChunkSampleSource.java   
@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;
}
项目:ExoPlayer    文件:ManifestFetcher.java   
public SingleFetchHelper(UriLoadable<T> singleUseLoadable, Looper callbackLooper,
    ManifestCallback<T> wrappedCallback) {
  this.singleUseLoadable = singleUseLoadable;
  this.callbackLooper = callbackLooper;
  this.wrappedCallback = wrappedCallback;
  singleUseLoader = new Loader("manifestLoader:single");
}
项目:miku    文件:UtcTimingElementResolver.java   
private void resolveHttp(UriLoadable.Parser<Long> parser) {
  singleUseLoader = new Loader("utctiming");
  singleUseLoadable = new UriLoadable<>(timingElement.value, uriDataSource, parser);
  singleUseLoader.startLoading(singleUseLoadable, this);
}
项目:ExoPlayer-Demo    文件:UtcTimingElementResolver.java   
private void resolveHttp(UriLoadable.Parser<Long> parser) {
  singleUseLoader = new Loader("utctiming");
  singleUseLoadable = new UriLoadable<>(timingElement.value, uriDataSource, parser);
  singleUseLoader.startLoading(singleUseLoadable, this);
}
项目:android-exoplayer    文件:ManifestFetcher.java   
public SingleFetchHelper(Looper callbackLooper, ManifestCallback<T> wrappedCallback) {
  this.callbackLooper = callbackLooper;
  this.wrappedCallback = wrappedCallback;
  singleUseLoader = new Loader("manifestLoader:single");
  singleUseLoadable = new ManifestLoadable();
}
项目:Exoplayer_VLC    文件:ManifestFetcher.java   
public SingleFetchHelper(Looper callbackLooper, ManifestCallback<T> wrappedCallback) {
  this.callbackLooper = callbackLooper;
  this.wrappedCallback = wrappedCallback;
  singleUseLoader = new Loader("manifestLoader:single");
  singleUseLoadable = new ManifestLoadable();
}
项目:ExoPlayer    文件:UtcTimingElementResolver.java   
private void resolveHttp(UriLoadable.Parser<Long> parser) {
  singleUseLoader = new Loader("utctiming");
  singleUseLoadable = new UriLoadable<>(timingElement.value, uriDataSource, parser);
  singleUseLoader.startLoading(singleUseLoadable, this);
}