mirror of
https://github.com/antebudimir/tempus.git
synced 2026-01-01 09:53:33 +00:00
Revert - Cast context - removed deprecated methods
This commit is contained in:
parent
7aef9af9b4
commit
af0ca7c218
2 changed files with 2 additions and 2 deletions
|
|
@ -207,7 +207,7 @@ class MediaService : MediaLibraryService(), SessionAvailabilityListener {
|
|||
|
||||
private fun initializeCastPlayer() {
|
||||
if (UIUtil.isCastApiAvailable(this)) {
|
||||
castPlayer = CastContext.getSharedInstance()?.let { CastPlayer(it) }!!
|
||||
castPlayer = CastPlayer(CastContext.getSharedInstance(this))
|
||||
castPlayer.setSessionAvailabilityListener(this)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue