当前位置: 首页>>代码示例>>Java>>正文


Java ManifestFetcher.getManifest方法代码示例

本文整理汇总了Java中com.google.android.exoplayer.util.ManifestFetcher.getManifest方法的典型用法代码示例。如果您正苦于以下问题:Java ManifestFetcher.getManifest方法的具体用法?Java ManifestFetcher.getManifest怎么用?Java ManifestFetcher.getManifest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.google.android.exoplayer.util.ManifestFetcher的用法示例。


在下文中一共展示了ManifestFetcher.getManifest方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DashChunkSource

import com.google.android.exoplayer.util.ManifestFetcher; //导入方法依赖的package包/类
/**
 * Constructor to use for live streaming.
 * <p>
 * May also be used for fixed duration content, in which case the call is equivalent to calling
 * the other constructor, passing {@code manifestFetcher.getManifest()} is the first argument.
 *
 * @param manifestFetcher A fetcher for the manifest, which must have already successfully
 *     completed an initial load.
 * @param adaptationSetIndex The index of the adaptation set that should be used.
 * @param representationIndices The indices of the representations within the adaptations set
 *     that should be used. May be null if all representations within the adaptation set should
 *     be considered.
 * @param dataSource A {@link DataSource} suitable for loading the media data.
 * @param formatEvaluator Selects from the available formats.
 * @param liveEdgeLatencyMs For live streams, the number of milliseconds that the playback should
 *     lag behind the "live edge" (i.e. the end of the most recently defined media in the
 *     manifest). Choosing a small value will minimize latency introduced by the player, however
 *     note that the value sets an upper bound on the length of media that the player can buffer.
 *     Hence a small value may increase the probability of rebuffering and playback failures.
 * @param elapsedRealtimeOffsetMs If known, an estimate of the instantaneous difference between
 *     server-side unix time and {@link SystemClock#elapsedRealtime()} in milliseconds, specified
 *     as the server's unix time minus the local elapsed time. It unknown, set to 0.
 * @param eventHandler A handler to use when delivering events to {@code EventListener}. May be
 *     null if delivery of events is not required.
 * @param eventListener A listener of events. May be null if delivery of events is not required.
 */
public DashChunkSource(ManifestFetcher<MediaPresentationDescription> manifestFetcher,
    int adaptationSetIndex, int[] representationIndices, DataSource dataSource,
    FormatEvaluator formatEvaluator, long liveEdgeLatencyMs, long elapsedRealtimeOffsetMs,
    Handler eventHandler, EventListener eventListener) {
  this(manifestFetcher, manifestFetcher.getManifest(), adaptationSetIndex, representationIndices,
      dataSource, formatEvaluator, new SystemClock(), liveEdgeLatencyMs * 1000,
      elapsedRealtimeOffsetMs * 1000, true, eventHandler, eventListener);
}
 
开发者ID:XueyanLiu,项目名称:miku,代码行数:35,代码来源:DashChunkSource.java

示例2: SmoothStreamingChunkSource

import com.google.android.exoplayer.util.ManifestFetcher; //导入方法依赖的package包/类
/**
 * Constructor to use for live streaming.
 * <p>
 * May also be used for fixed duration content, in which case the call is equivalent to calling
 * the other constructor, passing {@code manifestFetcher.getManifest()} is the first argument.
 *
 * @param manifestFetcher A fetcher for the manifest, which must have already successfully
 *     completed an initial load.
 * @param streamElementIndex The index of the stream element in the manifest to be provided by
 *     the source.
 * @param trackIndices The indices of the tracks within the stream element to be considered by
 *     the source. May be null if all tracks within the element should be considered.
 * @param dataSource A {@link DataSource} suitable for loading the media data.
 * @param formatEvaluator Selects from the available formats.
 * @param liveEdgeLatencyMs For live streams, the number of milliseconds that the playback should
 *     lag behind the "live edge" (i.e. the end of the most recently defined media in the
 *     manifest). Choosing a small value will minimize latency introduced by the player, however
 *     note that the value sets an upper bound on the length of media that the player can buffer.
 *     Hence a small value may increase the probability of rebuffering and playback failures.
 */
public SmoothStreamingChunkSource(ManifestFetcher<SmoothStreamingManifest> manifestFetcher,
    int streamElementIndex, int[] trackIndices, DataSource dataSource,
    FormatEvaluator formatEvaluator, long liveEdgeLatencyMs) {
  this(manifestFetcher, manifestFetcher.getManifest(), streamElementIndex, trackIndices,
      dataSource, formatEvaluator, liveEdgeLatencyMs);
}
 
开发者ID:XueyanLiu,项目名称:miku,代码行数:27,代码来源:SmoothStreamingChunkSource.java

示例3: DashChunkSource

import com.google.android.exoplayer.util.ManifestFetcher; //导入方法依赖的package包/类
/**
 * Constructor to use for live streaming.
 * <p>
 * May also be used for fixed duration content, in which case the call is equivalent to calling
 * the other constructor, passing {@code manifestFetcher.getManifest()} is the first argument.
 *
 * @param manifestFetcher A fetcher for the manifest, which must have already successfully
 *     completed an initial load.
 * @param trackSelector Selects tracks from manifest periods to be exposed by this source.
 * @param dataSource A {@link DataSource} suitable for loading the media data.
 * @param adaptiveFormatEvaluator For adaptive tracks, selects from the available formats.
 * @param liveEdgeLatencyMs For live streams, the number of milliseconds that the playback should
 *     lag behind the "live edge" (i.e. the end of the most recently defined media in the
 *     manifest). Choosing a small value will minimize latency introduced by the player, however
 *     note that the value sets an upper bound on the length of media that the player can buffer.
 *     Hence a small value may increase the probability of rebuffering and playback failures.
 * @param elapsedRealtimeOffsetMs If known, an estimate of the instantaneous difference between
 *     server-side unix time and {@link SystemClock#elapsedRealtime()} in milliseconds, specified
 *     as the server's unix time minus the local elapsed time. It unknown, set to 0.
 * @param eventHandler A handler to use when delivering events to {@code EventListener}. May be
 *     null if delivery of events is not required.
 * @param eventListener A listener of events. May be null if delivery of events is not required.
 * @param eventSourceId An identifier that gets passed to {@code eventListener} methods.
 */
public DashChunkSource(ManifestFetcher<MediaPresentationDescription> manifestFetcher,
    DashTrackSelector trackSelector, DataSource dataSource,
    FormatEvaluator adaptiveFormatEvaluator, long liveEdgeLatencyMs, long elapsedRealtimeOffsetMs,
    Handler eventHandler, EventListener eventListener, int eventSourceId) {
  this(manifestFetcher, manifestFetcher.getManifest(), trackSelector,
      dataSource, adaptiveFormatEvaluator, new SystemClock(), liveEdgeLatencyMs * 1000,
      elapsedRealtimeOffsetMs * 1000, true, eventHandler, eventListener, eventSourceId);
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:33,代码来源:DashChunkSource.java

示例4: SmoothStreamingChunkSource

import com.google.android.exoplayer.util.ManifestFetcher; //导入方法依赖的package包/类
/**
 * Constructor to use for live streaming.
 * <p>
 * May also be used for fixed duration content, in which case the call is equivalent to calling
 * the other constructor, passing {@code manifestFetcher.getManifest()} is the first argument.
 *
 * @param manifestFetcher A fetcher for the manifest, which must have already successfully
 *     completed an initial load.
 * @param trackSelector Selects tracks from the manifest to be exposed by this source.
 * @param dataSource A {@link DataSource} suitable for loading the media data.
 * @param adaptiveFormatEvaluator For adaptive tracks, selects from the available formats.
 * @param liveEdgeLatencyMs For live streams, the number of milliseconds that the playback should
 *     lag behind the "live edge" (i.e. the end of the most recently defined media in the
 *     manifest). Choosing a small value will minimize latency introduced by the player, however
 *     note that the value sets an upper bound on the length of media that the player can buffer.
 *     Hence a small value may increase the probability of rebuffering and playback failures.
 */
public SmoothStreamingChunkSource(ManifestFetcher<SmoothStreamingManifest> manifestFetcher,
    SmoothStreamingTrackSelector trackSelector, DataSource dataSource,
    FormatEvaluator adaptiveFormatEvaluator, long liveEdgeLatencyMs) {
  this(manifestFetcher, manifestFetcher.getManifest(), trackSelector, dataSource,
      adaptiveFormatEvaluator, liveEdgeLatencyMs);
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:24,代码来源:SmoothStreamingChunkSource.java

示例5: DashChunkSource

import com.google.android.exoplayer.util.ManifestFetcher; //导入方法依赖的package包/类
/**
 * Constructor to use for live streaming.
 * <p>
 * May also be used for fixed duration content, in which case the call is equivalent to calling
 * the other constructor, passing {@code manifestFetcher.getManifest()} is the first argument.
 *
 * @param manifestFetcher A fetcher for the manifest, which must have already successfully
 *     completed an initial load.
 * @param adaptationSetIndex The index of the adaptation set that should be used.
 * @param representationIndices The indices of the representations within the adaptations set
 *     that should be used. May be null if all representations within the adaptation set should
 *     be considered.
 * @param dataSource A {@link DataSource} suitable for loading the media data.
 * @param formatEvaluator Selects from the available formats.
 * @param liveEdgeLatencyMs For live streams, the number of milliseconds that the playback should
 *     lag behind the "live edge" (i.e. the end of the most recently defined media in the
 *     manifest). Choosing a small value will minimize latency introduced by the player, however
 *     note that the value sets an upper bound on the length of media that the player can buffer.
 *     Hence a small value may increase the probability of rebuffering and playback failures.
 */
public DashChunkSource(ManifestFetcher<MediaPresentationDescription> manifestFetcher,
    int adaptationSetIndex, int[] representationIndices, DataSource dataSource,
    FormatEvaluator formatEvaluator, long liveEdgeLatencyMs) {
  this(manifestFetcher, manifestFetcher.getManifest(), adaptationSetIndex, representationIndices,
      dataSource, formatEvaluator, liveEdgeLatencyMs * 1000);
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:27,代码来源:DashChunkSource.java


注:本文中的com.google.android.exoplayer.util.ManifestFetcher.getManifest方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。