mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-28 07:50:31 +05:30
fix: crash when two media sessions coexist
This commit is contained in:
parent
2c463da52a
commit
c40ab20c20
@ -218,7 +218,9 @@ abstract class AbstractPlayerService : MediaLibraryService(), MediaLibrarySessio
|
||||
|
||||
PlayerHelper.setPreferredCodecs(trackSelector)
|
||||
|
||||
mediaLibrarySession = MediaLibrarySession.Builder(this, player, this).build()
|
||||
mediaLibrarySession = MediaLibrarySession.Builder(this, player, this)
|
||||
.setId(this.javaClass.name)
|
||||
.build()
|
||||
}
|
||||
|
||||
abstract suspend fun startPlayback()
|
||||
|
Loading…
x
Reference in New Issue
Block a user