mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Merge pull request #3168 from Bnyro/master
Disable platform diagnostics
This commit is contained in:
commit
e921f38f6f
@ -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())
|
||||
|
@ -70,6 +70,7 @@ class OfflinePlayerActivity : BaseActivity() {
|
||||
trackSelector = DefaultTrackSelector(this)
|
||||
|
||||
player = ExoPlayer.Builder(this)
|
||||
.setUsePlatformDiagnostics(false)
|
||||
.setHandleAudioBecomingNoisy(true)
|
||||
.setTrackSelector(trackSelector)
|
||||
.setLoadControl(PlayerHelper.getLoadControl())
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user