Merge pull request #3168 from Bnyro/master

Disable platform diagnostics
This commit is contained in:
Bnyro 2023-02-23 18:14:04 +01:00 committed by GitHub
commit e921f38f6f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 0 deletions

View File

@ -234,6 +234,7 @@ class BackgroundMode : LifecycleService() {
if (player != null) return if (player != null) return
player = ExoPlayer.Builder(this) player = ExoPlayer.Builder(this)
.setUsePlatformDiagnostics(false)
.setHandleAudioBecomingNoisy(true) .setHandleAudioBecomingNoisy(true)
.setAudioAttributes(PlayerHelper.getAudioAttributes(), true) .setAudioAttributes(PlayerHelper.getAudioAttributes(), true)
.setLoadControl(PlayerHelper.getLoadControl()) .setLoadControl(PlayerHelper.getLoadControl())

View File

@ -70,6 +70,7 @@ class OfflinePlayerActivity : BaseActivity() {
trackSelector = DefaultTrackSelector(this) trackSelector = DefaultTrackSelector(this)
player = ExoPlayer.Builder(this) player = ExoPlayer.Builder(this)
.setUsePlatformDiagnostics(false)
.setHandleAudioBecomingNoisy(true) .setHandleAudioBecomingNoisy(true)
.setTrackSelector(trackSelector) .setTrackSelector(trackSelector)
.setLoadControl(PlayerHelper.getLoadControl()) .setLoadControl(PlayerHelper.getLoadControl())

View File

@ -1304,6 +1304,7 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
} }
exoPlayer = ExoPlayer.Builder(requireContext()) exoPlayer = ExoPlayer.Builder(requireContext())
.setUsePlatformDiagnostics(false)
.setMediaSourceFactory(DefaultMediaSourceFactory(dataSourceFactory)) .setMediaSourceFactory(DefaultMediaSourceFactory(dataSourceFactory))
.setLoadControl(PlayerHelper.getLoadControl()) .setLoadControl(PlayerHelper.getLoadControl())
.setTrackSelector(trackSelector) .setTrackSelector(trackSelector)