Skip to content

Commit

Permalink
Merge pull request #3168 from Bnyro/master
Browse files Browse the repository at this point in the history
Disable platform diagnostics
  • Loading branch information
Bnyro authored Feb 23, 2023
2 parents 210066e + fa18d26 commit e921f38
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,7 @@ class BackgroundMode : LifecycleService() {
if (player != null) return

player = ExoPlayer.Builder(this)
.setUsePlatformDiagnostics(false)
.setHandleAudioBecomingNoisy(true)
.setAudioAttributes(PlayerHelper.getAudioAttributes(), true)
.setLoadControl(PlayerHelper.getLoadControl())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ class OfflinePlayerActivity : BaseActivity() {
trackSelector = DefaultTrackSelector(this)

player = ExoPlayer.Builder(this)
.setUsePlatformDiagnostics(false)
.setHandleAudioBecomingNoisy(true)
.setTrackSelector(trackSelector)
.setLoadControl(PlayerHelper.getLoadControl())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1304,6 +1304,7 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
}

exoPlayer = ExoPlayer.Builder(requireContext())
.setUsePlatformDiagnostics(false)
.setMediaSourceFactory(DefaultMediaSourceFactory(dataSourceFactory))
.setLoadControl(PlayerHelper.getLoadControl())
.setTrackSelector(trackSelector)
Expand Down

0 comments on commit e921f38

Please sign in to comment.