當前位置: 首頁>>代碼示例>>Java>>正文


Java MultiSegmentBase類代碼示例

本文整理匯總了Java中com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase的典型用法代碼示例。如果您正苦於以下問題:Java MultiSegmentBase類的具體用法?Java MultiSegmentBase怎麽用?Java MultiSegmentBase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


MultiSegmentBase類屬於com.google.android.exoplayer2.source.dash.manifest.SegmentBase包,在下文中一共展示了MultiSegmentBase類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: newInstance

import com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase; //導入依賴的package包/類
/**
 * Constructs a new instance.
 *
 * @param contentId Identifies the piece of content to which this representation belongs.
 * @param revisionId Identifies the revision of the content.
 * @param format The format of the representation.
 * @param baseUrl The base URL of the representation.
 * @param segmentBase A segment base element for the representation.
 * @param inbandEventStreams The in-band event streams in the representation. May be null.
 * @param customCacheKey A custom value to be returned from {@link #getCacheKey()}, or null. This
 *     parameter is ignored if {@code segmentBase} consists of multiple segments.
 * @return The constructed instance.
 */
public static Representation newInstance(String contentId, long revisionId, Format format,
    String baseUrl, SegmentBase segmentBase, List<SchemeValuePair> inbandEventStreams,
    String customCacheKey) {
  if (segmentBase instanceof SingleSegmentBase) {
    return new SingleSegmentRepresentation(contentId, revisionId, format, baseUrl,
        (SingleSegmentBase) segmentBase, inbandEventStreams, customCacheKey, C.LENGTH_UNSET);
  } else if (segmentBase instanceof MultiSegmentBase) {
    return new MultiSegmentRepresentation(contentId, revisionId, format, baseUrl,
        (MultiSegmentBase) segmentBase, inbandEventStreams);
  } else {
    throw new IllegalArgumentException("segmentBase must be of type SingleSegmentBase or "
        + "MultiSegmentBase");
  }
}
 
開發者ID:jcodeing,項目名稱:K-Sonic,代碼行數:28,代碼來源:Representation.java

示例2: newInstance

import com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase; //導入依賴的package包/類
/**
 * Constructs a new instance.
 *
 * @param contentId Identifies the piece of content to which this representation belongs.
 * @param revisionId Identifies the revision of the content.
 * @param format The format of the representation.
 * @param segmentBase A segment base element for the representation.
 * @param customCacheKey A custom value to be returned from {@link #getCacheKey()}, or null.
 * @return The constructed instance.
 */
public static Representation newInstance(String contentId, long revisionId, Format format,
    SegmentBase segmentBase, String customCacheKey) {
  if (segmentBase instanceof SingleSegmentBase) {
    return new SingleSegmentRepresentation(contentId, revisionId, format,
        (SingleSegmentBase) segmentBase, customCacheKey, C.LENGTH_UNSET);
  } else if (segmentBase instanceof MultiSegmentBase) {
    return new MultiSegmentRepresentation(contentId, revisionId, format,
        (MultiSegmentBase) segmentBase, customCacheKey);
  } else {
    throw new IllegalArgumentException("segmentBase must be of type SingleSegmentBase or "
        + "MultiSegmentBase");
  }
}
 
開發者ID:zhanglibin123488,項目名稱:videoPickPlayer,代碼行數:24,代碼來源:Representation.java

示例3: newInstance

import com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase; //導入依賴的package包/類
/**
 * Constructs a new instance.
 *
 * @param contentId Identifies the piece of content to which this representation belongs.
 * @param revisionId Identifies the revision of the content.
 * @param format The format of the representation.
 * @param baseUrl The base URL of the representation.
 * @param segmentBase A segment base element for the representation.
 * @param inbandEventStreams The in-band event streams in the representation. May be null.
 * @param customCacheKey A custom value to be returned from {@link #getCacheKey()}, or null. This
 *     parameter is ignored if {@code segmentBase} consists of multiple segments.
 * @return The constructed instance.
 */
public static Representation newInstance(String contentId, long revisionId, Format format,
    String baseUrl, SegmentBase segmentBase, List<Descriptor> inbandEventStreams,
    String customCacheKey) {
  if (segmentBase instanceof SingleSegmentBase) {
    return new SingleSegmentRepresentation(contentId, revisionId, format, baseUrl,
        (SingleSegmentBase) segmentBase, inbandEventStreams, customCacheKey, C.LENGTH_UNSET);
  } else if (segmentBase instanceof MultiSegmentBase) {
    return new MultiSegmentRepresentation(contentId, revisionId, format, baseUrl,
        (MultiSegmentBase) segmentBase, inbandEventStreams);
  } else {
    throw new IllegalArgumentException("segmentBase must be of type SingleSegmentBase or "
        + "MultiSegmentBase");
  }
}
 
開發者ID:y20k,項目名稱:transistor,代碼行數:28,代碼來源:Representation.java

示例4: MultiSegmentRepresentation

import com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase; //導入依賴的package包/類
/**
 * @param contentId Identifies the piece of content to which this representation belongs.
 * @param revisionId Identifies the revision of the content.
 * @param format The format of the representation.
 * @param baseUrl The base URL of the representation.
 * @param segmentBase The segment base underlying the representation.
 * @param inbandEventStreams The in-band event streams in the representation. May be null.
 */
public MultiSegmentRepresentation(String contentId, long revisionId, Format format,
    String baseUrl, MultiSegmentBase segmentBase, List<SchemeValuePair> inbandEventStreams) {
  super(contentId, revisionId, format, baseUrl, segmentBase, inbandEventStreams);
  this.segmentBase = segmentBase;
}
 
開發者ID:jcodeing,項目名稱:K-Sonic,代碼行數:14,代碼來源:Representation.java

示例5: MultiSegmentRepresentation

import com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase; //導入依賴的package包/類
/**
 * @param contentId Identifies the piece of content to which this representation belongs.
 * @param revisionId Identifies the revision of the content.
 * @param format The format of the representation.
 * @param segmentBase The segment base underlying the representation.
 * @param customCacheKey A custom value to be returned from {@link #getCacheKey()}, or null.
 */
public MultiSegmentRepresentation(String contentId, long revisionId, Format format,
    MultiSegmentBase segmentBase, String customCacheKey) {
  super(contentId, revisionId, format, segmentBase, customCacheKey);
  this.segmentBase = segmentBase;
}
 
開發者ID:zhanglibin123488,項目名稱:videoPickPlayer,代碼行數:13,代碼來源:Representation.java

示例6: MultiSegmentRepresentation

import com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase; //導入依賴的package包/類
/**
 * @param contentId Identifies the piece of content to which this representation belongs.
 * @param revisionId Identifies the revision of the content.
 * @param format The format of the representation.
 * @param baseUrl The base URL of the representation.
 * @param segmentBase The segment base underlying the representation.
 * @param inbandEventStreams The in-band event streams in the representation. May be null.
 */
public MultiSegmentRepresentation(String contentId, long revisionId, Format format,
    String baseUrl, MultiSegmentBase segmentBase, List<Descriptor> inbandEventStreams) {
  super(contentId, revisionId, format, baseUrl, segmentBase, inbandEventStreams);
  this.segmentBase = segmentBase;
}
 
開發者ID:y20k,項目名稱:transistor,代碼行數:14,代碼來源:Representation.java


注:本文中的com.google.android.exoplayer2.source.dash.manifest.SegmentBase.MultiSegmentBase類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。