Turn off ExoPlayer metrics reporting when used by Transformer.

This avoids affecting ExoPlayer metrics with non-typical usage.

PiperOrigin-RevId: 506878231
This commit is contained in:
samrobinson 2023-02-03 13:32:01 +00:00 committed by microkatz
parent 8a8fd8dbe5
commit bfee268e3f

View File

@ -163,7 +163,8 @@ public final class ExoPlayerAssetLoader implements AssetLoader {
.setMediaSourceFactory(mediaSourceFactory)
.setTrackSelector(trackSelector)
.setLoadControl(loadControl)
.setLooper(looper);
.setLooper(looper)
.setUsePlatformDiagnostics(false);
if (clock != Clock.DEFAULT) {
// Transformer.Builder#setClock is also @VisibleForTesting, so if we're using a non-default
// clock we must be in a test context.