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

项目:androidtv-sample    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
        MediaDrmCallback drmCallback, DemoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.drmCallback = drmCallback;
    this.player = player;
    SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
    manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
            parser);
}
项目:AndroidTvDemo    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:ShaddockVideoPlayer    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:ExoPlayerController    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:FriendsCameraSDK-android    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:talk-android    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:OKPlayer    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:miku    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, MediaPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:Mediathek    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, Player player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:ChannelSurfer    文件:TvInputPlayer.java   
private static Uri processUriParameters(Uri uri, DefaultHttpDataSource dataSource) {
    String[] parameters = uri.getPath().split("\\|");
    for (int i = 1; i < parameters.length; i++) {
        String[] pair = parameters[i].split("=", 2);
        if (pair.length == 2) {
            dataSource.setRequestProperty(pair[0], pair[1]);
        }
    }
    return uri.buildUpon().path(parameters[0]).build();
}
项目:WliveTV    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:ExoPlayerWrapper    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, ExoPlayerWrapper player) {
    this.context = context;
    this.userAgent = userAgent;
    this.drmCallback = drmCallback;
    this.player = player;
    SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
    manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
            parser);
}
项目:Android-Birdcopy-Application    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, FlyingPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:ExoPlayer    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
项目:androidtv-sample-inputs    文件:SmoothStreamingRendererBuilder.java   
public AsyncRendererBuilder(Context context, String userAgent, String url,
        MediaDrmCallback drmCallback, DemoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.drmCallback = drmCallback;
    this.player = player;
    SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
    manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
            parser);
}
项目:ExoPlayer-Demo    文件:DashRendererBuilder.java   
public void build() {
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  ManifestFetcher<MediaPresentationDescription> manifestFetcher =
      new ManifestFetcher<>(manifestUrl, new DefaultHttpDataSource(userAgent, null), parser);
  manifestFetcher.singleLoad(player.getMainHandler().getLooper(), this);
}
项目:luxunPro    文件:SmoothStreamRenderBuilder.java   
@SuppressWarnings("UnusedParameters") // Context kept for consistency with the HLS and Dash builders
protected UriDataSource createManifestDataSource(Context context, String userAgent) {
    return new DefaultHttpDataSource(userAgent, null);
}
项目:ExoPlayer    文件:DashRendererBuilder.java   
public void build() {
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  ManifestFetcher<MediaPresentationDescription> manifestFetcher =
      new ManifestFetcher<>(manifestUrl, new DefaultHttpDataSource(userAgent, null), parser);
  manifestFetcher.singleLoad(player.getMainHandler().getLooper(), this);
}