Fix Chromecast on Android 12, use styled receiver (#6321)

This commit is contained in:
ByteHamster 2023-02-17 20:13:30 +01:00 committed by GitHub
parent 22e6a0c40f
commit 5b6fe580e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 3 deletions

View File

@ -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'
}

View File

@ -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();
}