com.google.android.exoplayer.hls.HlsPlaylistParser Java Examples

The following examples show how to use com.google.android.exoplayer.hls.HlsPlaylistParser. 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: HlsRendererBuilder.java    From AndroidTvDemo with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
Example #2
Source File: HlsRendererBuilder.java    From ShareBox with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
Example #3
Source File: HlsRendererBuilder.java    From ExVidPlayer with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url, ExVidPlayerImp player) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
Example #4
Source File: HlsRendererBuilder.java    From talk-android with MIT License 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
Example #5
Source File: HlsRendererBuilder.java    From WliveTV with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
Example #6
Source File: HlsRendererBuilder.java    From Android-Example-HLS-ExoPlayer with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
Example #7
Source File: HlsRendererBuilder.java    From exoplayer-textureview with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(HlsRendererBuilder rendererBuilder,
        RendererBuilderCallback callback) {
    this.rendererBuilder = rendererBuilder;
    this.callback = callback;
    HlsPlaylistParser parser = new HlsPlaylistParser();
    playlistFetcher = new ManifestFetcher<>(rendererBuilder.uri.toString(),
            new DefaultUriDataSource(rendererBuilder.context,
                    rendererBuilder.userAgent), parser);
}
 
Example #8
Source File: HlsRendererBuilder.java    From iview-android-tv with MIT License 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            AudioCapabilities audioCapabilities, VideoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.url = url;
    this.audioCapabilities = audioCapabilities;
    this.player = player;
    HlsPlaylistParser parser = new HlsPlaylistParser();
    playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
            parser);
}
 
Example #9
Source File: HlsRendererBuilder.java    From Exoplayer_VLC with Apache License 2.0 5 votes vote down vote up
@Override
public void buildRenderers(DemoPlayer player, RendererBuilderCallback callback) {
  this.player = player;
  this.callback = callback;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  ManifestFetcher<HlsPlaylist> playlistFetcher =
      new ManifestFetcher<HlsPlaylist>(parser, contentId, url, userAgent);
  playlistFetcher.singleLoad(player.getMainHandler().getLooper(), this);
}
 
Example #10
Source File: HlsRendererBuilder.java    From androidtv-sample-inputs with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url,
        DemoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.player = player;
    HlsPlaylistParser parser = new HlsPlaylistParser();
    playlistFetcher = new ManifestFetcher<>(url,
            new DefaultUriDataSource(context, userAgent), parser);
}
 
Example #11
Source File: HlsRendererBuilder.java    From google-media-framework-android with Apache License 2.0 5 votes vote down vote up
public AsyncRendererBuilder(Context context, String userAgent, String url, ExoplayerWrapper player) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
          parser);
}