Specify UserAgent for ManifestFetcher in HlsRendererBuilder.

This commit is contained in:
Andrey Udovenko 2014-11-04 14:24:13 -05:00
parent c781fcd13d
commit b946ad9234
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ public class HlsRendererBuilder implements RendererBuilder, ManifestCallback<Hls
case DemoUtil.TYPE_HLS_MASTER:
HlsMasterPlaylistParser parser = new HlsMasterPlaylistParser();
ManifestFetcher<HlsMasterPlaylist> mediaPlaylistFetcher =
new ManifestFetcher<HlsMasterPlaylist>(parser, contentId, url);
new ManifestFetcher<HlsMasterPlaylist>(parser, contentId, url, userAgent);
mediaPlaylistFetcher.singleLoad(player.getMainHandler().getLooper(), this);
break;
case DemoUtil.TYPE_HLS_MEDIA:

View file

@ -74,7 +74,7 @@ import java.util.Collections;
case DemoUtil.TYPE_HLS_MASTER:
HlsMasterPlaylistParser parser = new HlsMasterPlaylistParser();
ManifestFetcher<HlsMasterPlaylist> mediaPlaylistFetcher =
new ManifestFetcher<HlsMasterPlaylist>(parser, contentId, url);
new ManifestFetcher<HlsMasterPlaylist>(parser, contentId, url, userAgent);
mediaPlaylistFetcher.singleLoad(playerActivity.getMainLooper(), this);
break;
case DemoUtil.TYPE_HLS_MEDIA: