mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00: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
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Reference in a new issue