5.1.0 commit
This commit is contained in:
parent
6fc3eb58ca
commit
42fd268906
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue