com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParser Java Examples
The following examples show how to use
com.google.android.exoplayer2.source.hls.playlist.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: HlsMediaSource.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
/** * @param manifestUri The {@link Uri} of the HLS manifest. * @param dataSourceFactory An {@link HlsDataSourceFactory} for {@link DataSource}s for manifests, * segments and keys. * @param minLoadableRetryCount The minimum number of times loads must be retried before errors * are propagated. * @param eventHandler A handler for events. May be null if delivery of events is not required. * @param eventListener A {@link MediaSourceEventListener}. May be null if delivery of events is * not required. * @deprecated Use {@link Factory} instead. */ @Deprecated public HlsMediaSource( Uri manifestUri, DataSource.Factory dataSourceFactory, int minLoadableRetryCount, Handler eventHandler, MediaSourceEventListener eventListener) { this( manifestUri, new DefaultHlsDataSourceFactory(dataSourceFactory), HlsExtractorFactory.DEFAULT, minLoadableRetryCount, eventHandler, eventListener, new HlsPlaylistParser()); }
Example #2
Source File: HlsMediaSource.java From TelePlus-Android with GNU General Public License v2.0 | 6 votes |
/** * @param manifestUri The {@link Uri} of the HLS manifest. * @param dataSourceFactory An {@link HlsDataSourceFactory} for {@link DataSource}s for manifests, * segments and keys. * @param minLoadableRetryCount The minimum number of times loads must be retried before errors * are propagated. * @param eventHandler A handler for events. May be null if delivery of events is not required. * @param eventListener A {@link MediaSourceEventListener}. May be null if delivery of events is * not required. * @deprecated Use {@link Factory} instead. */ @Deprecated public HlsMediaSource( Uri manifestUri, DataSource.Factory dataSourceFactory, int minLoadableRetryCount, Handler eventHandler, MediaSourceEventListener eventListener) { this( manifestUri, new DefaultHlsDataSourceFactory(dataSourceFactory), HlsExtractorFactory.DEFAULT, minLoadableRetryCount, eventHandler, eventListener, new HlsPlaylistParser()); }
Example #3
Source File: HlsDownloader.java From MediaSDK with Apache License 2.0 | 4 votes |
private static HlsPlaylist loadManifest(DataSource dataSource, DataSpec dataSpec) throws IOException { return ParsingLoadable.load( dataSource, new HlsPlaylistParser(), dataSpec, C.DATA_TYPE_MANIFEST); }
Example #4
Source File: HlsDownloader.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
private static HlsPlaylist loadManifest(DataSource dataSource, Uri uri) throws IOException { return ParsingLoadable.load(dataSource, new HlsPlaylistParser(), uri, C.DATA_TYPE_MANIFEST); }
Example #5
Source File: HlsDownloadHelper.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
@Override protected void prepareInternal() throws IOException { DataSource dataSource = manifestDataSourceFactory.createDataSource(); playlist = ParsingLoadable.load(dataSource, new HlsPlaylistParser(), uri, C.DATA_TYPE_MANIFEST); }
Example #6
Source File: HlsDownloader.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
private static HlsPlaylist loadManifest(DataSource dataSource, Uri uri) throws IOException { return ParsingLoadable.load(dataSource, new HlsPlaylistParser(), uri, C.DATA_TYPE_MANIFEST); }
Example #7
Source File: HlsDownloadHelper.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
@Override protected void prepareInternal() throws IOException { DataSource dataSource = manifestDataSourceFactory.createDataSource(); playlist = ParsingLoadable.load(dataSource, new HlsPlaylistParser(), uri, C.DATA_TYPE_MANIFEST); }
Example #8
Source File: HlsDownloader.java From Telegram-FOSS with GNU General Public License v2.0 | 4 votes |
private static HlsPlaylist loadManifest(DataSource dataSource, DataSpec dataSpec) throws IOException { return ParsingLoadable.load( dataSource, new HlsPlaylistParser(), dataSpec, C.DATA_TYPE_MANIFEST); }
Example #9
Source File: HlsDownloader.java From Telegram with GNU General Public License v2.0 | 4 votes |
private static HlsPlaylist loadManifest(DataSource dataSource, DataSpec dataSpec) throws IOException { return ParsingLoadable.load( dataSource, new HlsPlaylistParser(), dataSpec, C.DATA_TYPE_MANIFEST); }