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


Java MediaPresentationDescriptionParser类代码示例

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


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

示例1: testDashPlayback

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的package包/类
private void testDashPlayback(HostActivity activity, String streamName,
    ActionSchedule actionSchedule, boolean fullPlaybackNoSeeking, String manifestFileName,
    String audioFormat, boolean canIncludeAdditionalVideoFormats, String... videoFormats)
    throws IOException {
  MediaPresentationDescription mpd = TestUtil.loadManifest(activity, TAG,
      MANIFEST_URL_PREFIX + manifestFileName, new MediaPresentationDescriptionParser());
  MetricsLogger metricsLogger = MetricsLogger.Factory.createDefault(getInstrumentation(), TAG,
      REPORT_NAME, streamName);
  DashHostedTest test = new DashHostedTest(streamName, mpd, metricsLogger, fullPlaybackNoSeeking,
      audioFormat, canIncludeAdditionalVideoFormats, false, actionSchedule, videoFormats);
  activity.runTest(test, mpd.duration + MAX_ADDITIONAL_TIME_MS);
  // Retry test exactly once if adaptive test fails due to excessive dropped buffers when playing
  // non-CDD required formats (b/28220076).
  if (test.needsCddLimitedRetry) {
    metricsLogger = MetricsLogger.Factory.createDefault(getInstrumentation(), TAG, REPORT_NAME,
        streamName + "_cdd_limited_retry");
    test = new DashHostedTest(streamName, mpd, metricsLogger, fullPlaybackNoSeeking, audioFormat,
        false, true, actionSchedule, videoFormats);
    activity.runTest(test, mpd.duration + MAX_ADDITIONAL_TIME_MS);
  }
}
 
开发者ID:asifkhan11,项目名称:ExoPlayer-Demo,代码行数:22,代码来源:DashTest.java

示例2: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的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

示例3: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的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

示例4: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的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

示例5: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的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

示例6: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的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

示例7: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, Player 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:PJakcson,项目名称:Mediathek,代码行数:11,代码来源:DashRendererBuilder.java

示例8: AsyncRendererBuilder

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

示例9: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, OkHttpClient okHttpClient, String userAgent, String url, EMExoPlayer player, int streamType) {
    this.context = context;
    this.userAgent = userAgent;
    this.streamType = streamType;
    this.player = player;
    this.okHttpClient = okHttpClient;

    MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
    manifestDataSource = createManifestDataSource(context, userAgent);
    manifestFetcher = new ManifestFetcher<>(url, manifestDataSource, parser);
}
 
开发者ID:ayaseruri,项目名称:luxunPro,代码行数:12,代码来源:DashRenderBuilder.java

示例10: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, ExoPlayerWrapper 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:cklar,项目名称:ExoPlayerWrapper,代码行数:11,代码来源:DashRendererBuilder.java

示例11: buildRenderers

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的package包/类
@Override
public void buildRenderers(DemoPlayer player, RendererBuilderCallback callback) {
  this.player = player;
  this.callback = callback;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestFetcher = new ManifestFetcher<MediaPresentationDescription>(parser, contentId, url,
      userAgent);
  manifestFetcher.singleLoad(player.getMainHandler().getLooper(), this);
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:10,代码来源:DashRendererBuilder.java

示例12: buildRenderers

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的package包/类
@Override
public void buildRenderers(RendererBuilderCallback callback) {
  this.callback = callback;
  MediaPresentationDescriptionParser parser = new MediaPresentationDescriptionParser();
  manifestFetcher = new ManifestFetcher<MediaPresentationDescription>(parser, contentId, url,
      userAgent);
  manifestFetcher.singleLoad(playerActivity.getMainLooper(), this);
}
 
开发者ID:Weco,项目名称:android-exoplayer,代码行数:9,代码来源:DashRendererBuilder.java

示例13: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, FlyingPlayer 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:birdcopy,项目名称:Android-Birdcopy-Application,代码行数:11,代码来源:DashRendererBuilder.java

示例14: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
    MediaDrmCallback drmCallback, AudioCapabilities audioCapabilities, DemoPlayer 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:raphanda,项目名称:ExoPlayer,代码行数:12,代码来源:DashRendererBuilder.java

示例15: AsyncRendererBuilder

import com.google.android.exoplayer.dash.mpd.MediaPresentationDescriptionParser; //导入依赖的package包/类
public AsyncRendererBuilder(Context context, String userAgent, String url,
                            MediaDrmCallback drmCallback, ExoplayerWrapper 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:googleads,项目名称:google-media-framework-android,代码行数:11,代码来源:DashRendererBuilder.java


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