com.google.android.exoplayer.upstream.DefaultHttpDataSource Java Examples
The following examples show how to use
com.google.android.exoplayer.upstream.DefaultHttpDataSource.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SmoothStreamingRendererBuilder.java From AndroidTvDemo with Apache License 2.0 | 5 votes |
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); }
Example #2
Source File: SmoothStreamingRendererBuilder.java From ShareBox with Apache License 2.0 | 5 votes |
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); }
Example #3
Source File: SmoothStreamingRendererBuilder.java From talk-android with MIT License | 5 votes |
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); }
Example #4
Source File: TvInputPlayer.java From ChannelSurfer with MIT License | 5 votes |
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(); }
Example #5
Source File: SmoothStreamingRendererBuilder.java From WliveTV with Apache License 2.0 | 5 votes |
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); }
Example #6
Source File: SmoothStreamingRendererBuilder.java From androidtv-sample-inputs with Apache License 2.0 | 5 votes |
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); }