Java Code Examples for com.google.android.exoplayer2.upstream.ParsingLoadable#load()
The following examples show how to use
com.google.android.exoplayer2.upstream.ParsingLoadable#load() .
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: DashDownloader.java From Telegram with GNU General Public License v2.0 | 4 votes |
@Override protected DashManifest getManifest(DataSource dataSource, DataSpec dataSpec) throws IOException { return ParsingLoadable.load( dataSource, new DashManifestParser(), dataSpec, C.DATA_TYPE_MANIFEST); }
Example 2
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 3
Source File: SsDownloader.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
@Override protected SsManifest getManifest(DataSource dataSource, Uri uri) throws IOException { return ParsingLoadable.load(dataSource, new SsManifestParser(), uri, C.DATA_TYPE_MANIFEST); }
Example 4
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); }
Example 5
Source File: DashDownloadHelper.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
@Override protected void prepareInternal() throws IOException { DataSource dataSource = manifestDataSourceFactory.createDataSource(); manifest = ParsingLoadable.load(dataSource, new DashManifestParser(), uri, C.DATA_TYPE_MANIFEST); }
Example 6
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 7
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 8
Source File: SsDownloader.java From Telegram with GNU General Public License v2.0 | 4 votes |
@Override protected SsManifest getManifest(DataSource dataSource, DataSpec dataSpec) throws IOException { return ParsingLoadable.load(dataSource, new SsManifestParser(), dataSpec, C.DATA_TYPE_MANIFEST); }
Example 9
Source File: DashDownloadHelper.java From TelePlus-Android with GNU General Public License v2.0 | 4 votes |
@Override protected void prepareInternal() throws IOException { DataSource dataSource = manifestDataSourceFactory.createDataSource(); manifest = ParsingLoadable.load(dataSource, new DashManifestParser(), uri, C.DATA_TYPE_MANIFEST); }
Example 10
Source File: DashDownloader.java From Telegram-FOSS with GNU General Public License v2.0 | 4 votes |
@Override protected DashManifest getManifest(DataSource dataSource, DataSpec dataSpec) throws IOException { return ParsingLoadable.load( dataSource, new DashManifestParser(), dataSpec, C.DATA_TYPE_MANIFEST); }
Example 11
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 12
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 13
Source File: SsDownloader.java From MediaSDK with Apache License 2.0 | 4 votes |
@Override protected SsManifest getManifest(DataSource dataSource, DataSpec dataSpec) throws IOException { return ParsingLoadable.load(dataSource, new SsManifestParser(), dataSpec, C.DATA_TYPE_MANIFEST); }
Example 14
Source File: DashDownloader.java From MediaSDK with Apache License 2.0 | 4 votes |
@Override protected DashManifest getManifest(DataSource dataSource, DataSpec dataSpec) throws IOException { return ParsingLoadable.load( dataSource, new DashManifestParser(), dataSpec, C.DATA_TYPE_MANIFEST); }
Example 15
Source File: SsDownloader.java From Telegram-FOSS with GNU General Public License v2.0 | 4 votes |
@Override protected SsManifest getManifest(DataSource dataSource, DataSpec dataSpec) throws IOException { return ParsingLoadable.load(dataSource, new SsManifestParser(), dataSpec, C.DATA_TYPE_MANIFEST); }
Example 16
Source File: DashUtil.java From Telegram with GNU General Public License v2.0 | 2 votes |
/** * Loads a DASH manifest. * * @param dataSource The {@link HttpDataSource} from which the manifest should be read. * @param uri The {@link Uri} of the manifest to be read. * @return An instance of {@link DashManifest}. * @throws IOException Thrown when there is an error while loading. */ public static DashManifest loadManifest(DataSource dataSource, Uri uri) throws IOException { return ParsingLoadable.load(dataSource, new DashManifestParser(), uri, C.DATA_TYPE_MANIFEST); }
Example 17
Source File: DashUtil.java From Telegram-FOSS with GNU General Public License v2.0 | 2 votes |
/** * Loads a DASH manifest. * * @param dataSource The {@link HttpDataSource} from which the manifest should be read. * @param uri The {@link Uri} of the manifest to be read. * @return An instance of {@link DashManifest}. * @throws IOException Thrown when there is an error while loading. */ public static DashManifest loadManifest(DataSource dataSource, Uri uri) throws IOException { return ParsingLoadable.load(dataSource, new DashManifestParser(), uri, C.DATA_TYPE_MANIFEST); }
Example 18
Source File: DashUtil.java From TelePlus-Android with GNU General Public License v2.0 | 2 votes |
/** * Loads a DASH manifest. * * @param dataSource The {@link HttpDataSource} from which the manifest should be read. * @param uri The {@link Uri} of the manifest to be read. * @return An instance of {@link DashManifest}. * @throws IOException Thrown when there is an error while loading. */ public static DashManifest loadManifest(DataSource dataSource, Uri uri) throws IOException { return ParsingLoadable.load(dataSource, new DashManifestParser(), uri, C.DATA_TYPE_MANIFEST); }
Example 19
Source File: DashUtil.java From TelePlus-Android with GNU General Public License v2.0 | 2 votes |
/** * Loads a DASH manifest. * * @param dataSource The {@link HttpDataSource} from which the manifest should be read. * @param uri The {@link Uri} of the manifest to be read. * @return An instance of {@link DashManifest}. * @throws IOException Thrown when there is an error while loading. */ public static DashManifest loadManifest(DataSource dataSource, Uri uri) throws IOException { return ParsingLoadable.load(dataSource, new DashManifestParser(), uri, C.DATA_TYPE_MANIFEST); }
Example 20
Source File: DashUtil.java From MediaSDK with Apache License 2.0 | 2 votes |
/** * Loads a DASH manifest. * * @param dataSource The {@link HttpDataSource} from which the manifest should be read. * @param uri The {@link Uri} of the manifest to be read. * @return An instance of {@link DashManifest}. * @throws IOException Thrown when there is an error while loading. */ public static DashManifest loadManifest(DataSource dataSource, Uri uri) throws IOException { return ParsingLoadable.load(dataSource, new DashManifestParser(), uri, C.DATA_TYPE_MANIFEST); }