本文整理汇总了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);
}
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}