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


Java ManifestFetcher类代码示例

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


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

示例1: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
        DemoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.url = url;
    this.player = player;
    HlsPlaylistParser parser = new HlsPlaylistParser();
    playlistFetcher = new ManifestFetcher<>(url,
            new DefaultUriDataSource(context, userAgent), parser);
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:11,代码来源:HlsRendererBuilder.java

示例2: DashChunkSource

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
DashChunkSource(ManifestFetcher<MediaPresentationDescription> manifestFetcher,
    MediaPresentationDescription initialManifest, DashTrackSelector trackSelector,
    DataSource dataSource, FormatEvaluator adaptiveFormatEvaluator,
    Clock systemClock, long liveEdgeLatencyUs, long elapsedRealtimeOffsetUs,
    boolean startAtLiveEdge, Handler eventHandler, EventListener eventListener,
    int eventSourceId) {
  this.manifestFetcher = manifestFetcher;
  this.currentManifest = initialManifest;
  this.trackSelector = trackSelector;
  this.dataSource = dataSource;
  this.adaptiveFormatEvaluator = adaptiveFormatEvaluator;
  this.systemClock = systemClock;
  this.liveEdgeLatencyUs = liveEdgeLatencyUs;
  this.elapsedRealtimeOffsetUs = elapsedRealtimeOffsetUs;
  this.startAtLiveEdge = startAtLiveEdge;
  this.eventHandler = eventHandler;
  this.eventListener = eventListener;
  this.eventSourceId = eventSourceId;
  this.evaluation = new Evaluation();
  this.availableRangeValues = new long[2];
  periodHolders = new SparseArray<>();
  tracks = new ArrayList<>();
  live = initialManifest.dynamic;
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:25,代码来源:DashChunkSource.java

示例3: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, DemoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.drmCallback = drmCallback;
    this.player = player;
    MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
    manifestDataSource = new DefaultUriDataSource(context, userAgent);
    manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:11,代码来源:DashRendererBuilder.java

示例4: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
        MediaDrmCallback drmCallback, DemoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.drmCallback = drmCallback;
    this.player = player;
    SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
    manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
            parser);
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:11,代码来源:SmoothStreamingRendererBuilder.java

示例5: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, VideoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.drmCallback = drmCallback;
    this.player = player;
    MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
    manifestDataSource = new DefaultUriDataSource(context, userAgent);
    manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:11,代码来源:DashRendererBuilder.java

示例6: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
        VideoPlayer player) {
    this.context = context;
    this.userAgent = userAgent;
    this.url = url;
    this.player = player;
    HlsPlaylistParser parser = new HlsPlaylistParser();
    playlistFetcher = new ManifestFetcher<>(url,
            new DefaultUriDataSource(context, userAgent), parser);
}
 
开发者ID:nejtv,项目名称:androidtv-sample,代码行数:11,代码来源:HlsRendererBuilder.java

示例7: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestDataSource = new DefaultUriDataSource(context, userAgent);
  manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
开发者ID:Dreamxiaoxuan,项目名称:AndroidTvDemo,代码行数:11,代码来源:DashRendererBuilder.java

示例8: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
开发者ID:Dreamxiaoxuan,项目名称:AndroidTvDemo,代码行数:10,代码来源:HlsRendererBuilder.java

示例9: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
 
开发者ID:Dreamxiaoxuan,项目名称:AndroidTvDemo,代码行数:11,代码来源:SmoothStreamingRendererBuilder.java

示例10: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
开发者ID:bigjelly,项目名称:ShaddockVideoPlayer,代码行数:9,代码来源:HlsRendererBuilder.java

示例11: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url, ExVidPlayerImp player) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
开发者ID:karanvs,项目名称:ExVidPlayer,代码行数:10,代码来源:HlsRendererBuilder.java

示例12: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestDataSource = new DefaultUriDataSource(context, userAgent);
  manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
开发者ID:LGDeveloper,项目名称:FriendsCameraSDK-android,代码行数:11,代码来源:DashRendererBuilder.java

示例13: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, DemoPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.player = player;
  SmoothStreamingManifestParser parser = new SmoothStreamingManifestParser();
  manifestFetcher = new ManifestFetcher<>(url, new DefaultHttpDataSource(userAgent, null),
      parser);
}
 
开发者ID:LGDeveloper,项目名称:FriendsCameraSDK-android,代码行数:11,代码来源:SmoothStreamingRendererBuilder.java

示例14: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, AudioCapabilities audioCapabilities, MediaPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.drmCallback = drmCallback;
  this.audioCapabilities = audioCapabilities;
  this.player = player;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestDataSource = new DefaultUriDataSource(context, userAgent);
  manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
开发者ID:XueyanLiu,项目名称:miku,代码行数:12,代码来源:DashRendererBuilder.java

示例15: AsyncRendererBuilder

import com.google.android.exoplayer.util.ManifestFetcher; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            AudioCapabilities audioCapabilities, MediaPlayer player) {
  this.context = context;
  this.userAgent = userAgent;
  this.url = url;
  this.audioCapabilities = audioCapabilities;
  this.player = player;
  HlsPlaylistParser parser = new HlsPlaylistParser();
  playlistFetcher = new ManifestFetcher<>(url, new DefaultUriDataSource(context, userAgent),
      parser);
}
 
开发者ID:XueyanLiu,项目名称:miku,代码行数:12,代码来源:HlsRendererBuilder.java


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