5.1.0 commit

This commit is contained in:
Xilin Jia 2024-05-13 21:18:06 +01:00
parent 6fc3eb58ca
commit 42fd268906
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ import kotlin.math.min
* Implementation of MediaPlayerBase suitable for remote playback on Cast Devices. * Implementation of MediaPlayerBase suitable for remote playback on Cast Devices.
*/ */
@SuppressLint("VisibleForTests") @SuppressLint("VisibleForTests")
class CastPsmp(context: Context, callback: PSMPCallback) : MediaPlayerBase(context, callback) { class CastPsmp(context: Context, callback: MediaPlayerCallback) : MediaPlayerBase(context, callback) {
@Volatile @Volatile
private var media: Playable? private var media: Playable?
@ -451,7 +451,7 @@ class CastPsmp(context: Context, callback: PSMPCallback) : MediaPlayerBase(conte
companion object { companion object {
const val TAG: String = "CastPSMP" const val TAG: String = "CastPSMP"
fun getInstanceIfConnected(context: Context, callback: PSMPCallback): MediaPlayerBase? { fun getInstanceIfConnected(context: Context, callback: MediaPlayerCallback): MediaPlayerBase? {
if (GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) != ConnectionResult.SUCCESS) return null if (GoogleApiAvailability.getInstance().isGooglePlayServicesAvailable(context) != ConnectionResult.SUCCESS) return null
try { try {