mirror of
https://github.com/androidx/media.git
synced 2025-05-06 23:20:42 +08:00
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:
parent
8a8fd8dbe5
commit
bfee268e3f
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user