com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParserFactory Java Examples

The following examples show how to use com.google.android.exoplayer2.source.hls.playlist.HlsPlaylistParserFactory. 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 MediaSDK with Apache License 2.0 2 votes vote down vote up
/**
 * Sets the factory from which playlist parsers will be obtained. The default value is a {@link
 * DefaultHlsPlaylistParserFactory}.
 *
 * @param playlistParserFactory An {@link HlsPlaylistParserFactory}.
 * @return This factory, for convenience.
 * @throws IllegalStateException If one of the {@code create} methods has already been called.
 */
public Factory setPlaylistParserFactory(HlsPlaylistParserFactory playlistParserFactory) {
  Assertions.checkState(!isCreateCalled);
  this.playlistParserFactory = Assertions.checkNotNull(playlistParserFactory);
  return this;
}
 
Example #2
Source File: HlsMediaSource.java    From Telegram-FOSS with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the factory from which playlist parsers will be obtained. The default value is a {@link
 * DefaultHlsPlaylistParserFactory}.
 *
 * @param playlistParserFactory An {@link HlsPlaylistParserFactory}.
 * @return This factory, for convenience.
 * @throws IllegalStateException If one of the {@code create} methods has already been called.
 */
public Factory setPlaylistParserFactory(HlsPlaylistParserFactory playlistParserFactory) {
  Assertions.checkState(!isCreateCalled);
  this.playlistParserFactory = Assertions.checkNotNull(playlistParserFactory);
  return this;
}
 
Example #3
Source File: HlsMediaSource.java    From Telegram with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Sets the factory from which playlist parsers will be obtained. The default value is a {@link
 * DefaultHlsPlaylistParserFactory}.
 *
 * @param playlistParserFactory An {@link HlsPlaylistParserFactory}.
 * @return This factory, for convenience.
 * @throws IllegalStateException If one of the {@code create} methods has already been called.
 */
public Factory setPlaylistParserFactory(HlsPlaylistParserFactory playlistParserFactory) {
  Assertions.checkState(!isCreateCalled);
  this.playlistParserFactory = Assertions.checkNotNull(playlistParserFactory);
  return this;
}