Merge branch 'media3-beta01' of github.com:Maxmystere/ultrasonic into media3-beta01

This commit is contained in:
Maxence G 2022-06-20 19:50:15 +02:00
commit 5ae56d26c5
No known key found for this signature in database
GPG Key ID: DC1FD9409E3FE284
2 changed files with 6 additions and 6 deletions

View File

@ -177,7 +177,12 @@ class AutoMediaBrowserCallback(var player: Player) :
return onLoadChildren(parentId) return onLoadChildren(parentId)
} }
// https://stackoverflow.com/questions/70096715/adding-mediaitem-when-using-the-media3-library-caused-an-error
/*
* For some reason the LocalConfiguration of MediaItem are stripped somewhere in ExoPlayer,
* and thereby customarily it is required to rebuild it..
* See also: https://stackoverflow.com/questions/70096715/adding-mediaitem-when-using-the-media3-library-caused-an-error
*/
override fun onAddMediaItems( override fun onAddMediaItems(
mediaSession: MediaSession, mediaSession: MediaSession,
controller: MediaSession.ControllerInfo, controller: MediaSession.ControllerInfo,

View File

@ -42,11 +42,6 @@ class PlaybackService : MediaLibraryService(), KoinComponent {
private var isStarted = false private var isStarted = false
/*
* For some reason the LocalConfiguration of MediaItem are stripped somewhere in ExoPlayer,
* and thereby customarily it is required to rebuild it..
*/
override fun onCreate() { override fun onCreate() {
Timber.i("onCreate called") Timber.i("onCreate called")
super.onCreate() super.onCreate()