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); }
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); }
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); }
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(); }
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); }
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); }
public void build() { MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser(); ManifestFetcher<MediaPresentationDescription> manifestFetcher = new ManifestFetcher<>(manifestUrl, new DefaultHttpDataSource(userAgent, null), parser); manifestFetcher.singleLoad(player.getMainHandler().getLooper(), this); }
@SuppressWarnings("UnusedParameters") // Context kept for consistency with the HLS and Dash builders protected UriDataSource createManifestDataSource(Context context, String userAgent) { return new DefaultHttpDataSource(userAgent, null); }