com.google.android.exoplayer2.source.smoothstreaming.manifest.SsUtil Java Examples

The following examples show how to use com.google.android.exoplayer2.source.smoothstreaming.manifest.SsUtil. 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: SsMediaSource.java    From MediaSDK with Apache License 2.0 6 votes vote down vote up
private SsMediaSource(
    @Nullable SsManifest manifest,
    @Nullable Uri manifestUri,
    @Nullable DataSource.Factory manifestDataSourceFactory,
    @Nullable ParsingLoadable.Parser<? extends SsManifest> manifestParser,
    SsChunkSource.Factory chunkSourceFactory,
    CompositeSequenceableLoaderFactory compositeSequenceableLoaderFactory,
    DrmSessionManager<?> drmSessionManager,
    LoadErrorHandlingPolicy loadErrorHandlingPolicy,
    long livePresentationDelayMs,
    @Nullable Object tag) {
  Assertions.checkState(manifest == null || !manifest.isLive);
  this.manifest = manifest;
  this.manifestUri = manifestUri == null ? null : SsUtil.fixManifestUri(manifestUri);
  this.manifestDataSourceFactory = manifestDataSourceFactory;
  this.manifestParser = manifestParser;
  this.chunkSourceFactory = chunkSourceFactory;
  this.compositeSequenceableLoaderFactory = compositeSequenceableLoaderFactory;
  this.drmSessionManager = drmSessionManager;
  this.loadErrorHandlingPolicy = loadErrorHandlingPolicy;
  this.livePresentationDelayMs = livePresentationDelayMs;
  this.manifestEventDispatcher = createEventDispatcher(/* mediaPeriodId= */ null);
  this.tag = tag;
  sideloadedManifest = manifest != null;
  mediaPeriods = new ArrayList<>();
}
 
Example #2
Source File: SsMediaSource.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
private SsMediaSource(
    SsManifest manifest,
    Uri manifestUri,
    DataSource.Factory manifestDataSourceFactory,
    ParsingLoadable.Parser<? extends SsManifest> manifestParser,
    SsChunkSource.Factory chunkSourceFactory,
    CompositeSequenceableLoaderFactory compositeSequenceableLoaderFactory,
    int minLoadableRetryCount,
    long livePresentationDelayMs,
    @Nullable Object tag) {
  Assertions.checkState(manifest == null || !manifest.isLive);
  this.manifest = manifest;
  this.manifestUri = manifestUri == null ? null : SsUtil.fixManifestUri(manifestUri);
  this.manifestDataSourceFactory = manifestDataSourceFactory;
  this.manifestParser = manifestParser;
  this.chunkSourceFactory = chunkSourceFactory;
  this.compositeSequenceableLoaderFactory = compositeSequenceableLoaderFactory;
  this.minLoadableRetryCount = minLoadableRetryCount;
  this.livePresentationDelayMs = livePresentationDelayMs;
  this.manifestEventDispatcher = createEventDispatcher(/* mediaPeriodId= */ null);
  this.tag = tag;
  sideloadedManifest = manifest != null;
  mediaPeriods = new ArrayList<>();
}
 
Example #3
Source File: SsMediaSource.java    From TelePlus-Android with GNU General Public License v2.0 6 votes vote down vote up
private SsMediaSource(
    SsManifest manifest,
    Uri manifestUri,
    DataSource.Factory manifestDataSourceFactory,
    ParsingLoadable.Parser<? extends SsManifest> manifestParser,
    SsChunkSource.Factory chunkSourceFactory,
    CompositeSequenceableLoaderFactory compositeSequenceableLoaderFactory,
    int minLoadableRetryCount,
    long livePresentationDelayMs,
    @Nullable Object tag) {
  Assertions.checkState(manifest == null || !manifest.isLive);
  this.manifest = manifest;
  this.manifestUri = manifestUri == null ? null : SsUtil.fixManifestUri(manifestUri);
  this.manifestDataSourceFactory = manifestDataSourceFactory;
  this.manifestParser = manifestParser;
  this.chunkSourceFactory = chunkSourceFactory;
  this.compositeSequenceableLoaderFactory = compositeSequenceableLoaderFactory;
  this.minLoadableRetryCount = minLoadableRetryCount;
  this.livePresentationDelayMs = livePresentationDelayMs;
  this.manifestEventDispatcher = createEventDispatcher(/* mediaPeriodId= */ null);
  this.tag = tag;
  sideloadedManifest = manifest != null;
  mediaPeriods = new ArrayList<>();
}
 
Example #4
Source File: SsMediaSource.java    From Telegram-FOSS with GNU General Public License v2.0 6 votes vote down vote up
private SsMediaSource(
    SsManifest manifest,
    Uri manifestUri,
    DataSource.Factory manifestDataSourceFactory,
    ParsingLoadable.Parser<? extends SsManifest> manifestParser,
    SsChunkSource.Factory chunkSourceFactory,
    CompositeSequenceableLoaderFactory compositeSequenceableLoaderFactory,
    LoadErrorHandlingPolicy loadErrorHandlingPolicy,
    long livePresentationDelayMs,
    @Nullable Object tag) {
  Assertions.checkState(manifest == null || !manifest.isLive);
  this.manifest = manifest;
  this.manifestUri = manifestUri == null ? null : SsUtil.fixManifestUri(manifestUri);
  this.manifestDataSourceFactory = manifestDataSourceFactory;
  this.manifestParser = manifestParser;
  this.chunkSourceFactory = chunkSourceFactory;
  this.compositeSequenceableLoaderFactory = compositeSequenceableLoaderFactory;
  this.loadErrorHandlingPolicy = loadErrorHandlingPolicy;
  this.livePresentationDelayMs = livePresentationDelayMs;
  this.manifestEventDispatcher = createEventDispatcher(/* mediaPeriodId= */ null);
  this.tag = tag;
  sideloadedManifest = manifest != null;
  mediaPeriods = new ArrayList<>();
}
 
Example #5
Source File: SsMediaSource.java    From Telegram with GNU General Public License v2.0 6 votes vote down vote up
private SsMediaSource(
    SsManifest manifest,
    Uri manifestUri,
    DataSource.Factory manifestDataSourceFactory,
    ParsingLoadable.Parser<? extends SsManifest> manifestParser,
    SsChunkSource.Factory chunkSourceFactory,
    CompositeSequenceableLoaderFactory compositeSequenceableLoaderFactory,
    LoadErrorHandlingPolicy loadErrorHandlingPolicy,
    long livePresentationDelayMs,
    @Nullable Object tag) {
  Assertions.checkState(manifest == null || !manifest.isLive);
  this.manifest = manifest;
  this.manifestUri = manifestUri == null ? null : SsUtil.fixManifestUri(manifestUri);
  this.manifestDataSourceFactory = manifestDataSourceFactory;
  this.manifestParser = manifestParser;
  this.chunkSourceFactory = chunkSourceFactory;
  this.compositeSequenceableLoaderFactory = compositeSequenceableLoaderFactory;
  this.loadErrorHandlingPolicy = loadErrorHandlingPolicy;
  this.livePresentationDelayMs = livePresentationDelayMs;
  this.manifestEventDispatcher = createEventDispatcher(/* mediaPeriodId= */ null);
  this.tag = tag;
  sideloadedManifest = manifest != null;
  mediaPeriods = new ArrayList<>();
}
 
Example #6
Source File: SsDownloader.java    From MediaSDK with Apache License 2.0 2 votes vote down vote up
/**
 * @param manifestUri The {@link Uri} of the manifest to be downloaded.
 * @param streamKeys Keys defining which streams in the manifest should be selected for download.
 *     If empty, all streams are downloaded.
 * @param constructorHelper A {@link DownloaderConstructorHelper} instance.
 */
public SsDownloader(
    Uri manifestUri, List<StreamKey> streamKeys, DownloaderConstructorHelper constructorHelper) {
  super(SsUtil.fixManifestUri(manifestUri), streamKeys, constructorHelper);
}
 
Example #7
Source File: SsDownloader.java    From TelePlus-Android with GNU General Public License v2.0 2 votes vote down vote up
/**
 * @param manifestUri The {@link Uri} of the manifest to be downloaded.
 * @param streamKeys Keys defining which streams in the manifest should be selected for download.
 *     If empty, all streams are downloaded.
 * @param constructorHelper A {@link DownloaderConstructorHelper} instance.
 */
public SsDownloader(
    Uri manifestUri, List<StreamKey> streamKeys, DownloaderConstructorHelper constructorHelper) {
  super(SsUtil.fixManifestUri(manifestUri), streamKeys, constructorHelper);
}
 
Example #8
Source File: SsDownloader.java    From TelePlus-Android with GNU General Public License v2.0 2 votes vote down vote up
/**
 * @param manifestUri The {@link Uri} of the manifest to be downloaded.
 * @param streamKeys Keys defining which streams in the manifest should be selected for download.
 *     If empty, all streams are downloaded.
 * @param constructorHelper A {@link DownloaderConstructorHelper} instance.
 */
public SsDownloader(
    Uri manifestUri, List<StreamKey> streamKeys, DownloaderConstructorHelper constructorHelper) {
  super(SsUtil.fixManifestUri(manifestUri), streamKeys, constructorHelper);
}
 
Example #9
Source File: SsDownloader.java    From Telegram-FOSS with GNU General Public License v2.0 2 votes vote down vote up
/**
 * @param manifestUri The {@link Uri} of the manifest to be downloaded.
 * @param streamKeys Keys defining which streams in the manifest should be selected for download.
 *     If empty, all streams are downloaded.
 * @param constructorHelper A {@link DownloaderConstructorHelper} instance.
 */
public SsDownloader(
    Uri manifestUri, List<StreamKey> streamKeys, DownloaderConstructorHelper constructorHelper) {
  super(SsUtil.fixManifestUri(manifestUri), streamKeys, constructorHelper);
}
 
Example #10
Source File: SsDownloader.java    From Telegram with GNU General Public License v2.0 2 votes vote down vote up
/**
 * @param manifestUri The {@link Uri} of the manifest to be downloaded.
 * @param streamKeys Keys defining which streams in the manifest should be selected for download.
 *     If empty, all streams are downloaded.
 * @param constructorHelper A {@link DownloaderConstructorHelper} instance.
 */
public SsDownloader(
    Uri manifestUri, List<StreamKey> streamKeys, DownloaderConstructorHelper constructorHelper) {
  super(SsUtil.fixManifestUri(manifestUri), streamKeys, constructorHelper);
}