Commit b946ad92 by Andrey Udovenko

Specify UserAgent for ManifestFetcher in HlsRendererBuilder.

parent c781fcd1
......@@ -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:
......
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment