Fix Chromecast on Android 12, use styled receiver (#6321)
This commit is contained in:
parent
22e6a0c40f
commit
5b6fe580e0
|
@ -15,5 +15,5 @@ dependencies {
|
|||
annotationProcessor "org.greenrobot:eventbus-annotation-processor:$eventbusVersion"
|
||||
|
||||
playApi 'androidx.mediarouter:mediarouter:1.2.5'
|
||||
playApi 'com.google.android.gms:play-services-cast-framework:20.0.0'
|
||||
playApi 'com.google.android.gms:play-services-cast-framework:21.2.0'
|
||||
}
|
||||
|
|
|
@ -2,7 +2,6 @@ package de.danoeh.antennapod.playback.cast;
|
|||
|
||||
import android.content.Context;
|
||||
import androidx.annotation.NonNull;
|
||||
import com.google.android.gms.cast.CastMediaControlIntent;
|
||||
import com.google.android.gms.cast.framework.CastOptions;
|
||||
import com.google.android.gms.cast.framework.OptionsProvider;
|
||||
import com.google.android.gms.cast.framework.SessionProvider;
|
||||
|
@ -15,7 +14,7 @@ public class CastOptionsProvider implements OptionsProvider {
|
|||
@NonNull
|
||||
public CastOptions getCastOptions(@NonNull Context context) {
|
||||
return new CastOptions.Builder()
|
||||
.setReceiverApplicationId(CastMediaControlIntent.DEFAULT_MEDIA_RECEIVER_APPLICATION_ID)
|
||||
.setReceiverApplicationId("BEBC1DB1")
|
||||
.build();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue