Commit bfee268e by samrobinson Committed by microkatz

Turn off ExoPlayer metrics reporting when used by Transformer.

This avoids affecting ExoPlayer metrics with non-typical usage.

PiperOrigin-RevId: 506878231
parent 8a8fd8db
...@@ -163,7 +163,8 @@ public final class ExoPlayerAssetLoader implements AssetLoader { ...@@ -163,7 +163,8 @@ public final class ExoPlayerAssetLoader implements AssetLoader {
.setMediaSourceFactory(mediaSourceFactory) .setMediaSourceFactory(mediaSourceFactory)
.setTrackSelector(trackSelector) .setTrackSelector(trackSelector)
.setLoadControl(loadControl) .setLoadControl(loadControl)
.setLooper(looper); .setLooper(looper)
.setUsePlatformDiagnostics(false);
if (clock != Clock.DEFAULT) { if (clock != Clock.DEFAULT) {
// Transformer.Builder#setClock is also @VisibleForTesting, so if we're using a non-default // Transformer.Builder#setClock is also @VisibleForTesting, so if we're using a non-default
// clock we must be in a test context. // clock we must be in a test context.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment