Disable reconnection CastOptions

This includes setResumeSavedSession(false) and setEnableReconnectionService(false).

PiperOrigin-RevId: 376162880
This commit is contained in:
aquilescanta 2021-05-27 15:15:01 +01:00 committed by Oliver Woodman
parent 4033832cba
commit 4e749e7afe

View File

@ -37,6 +37,8 @@ public final class DefaultCastOptionsProvider implements OptionsProvider {
@Override @Override
public CastOptions getCastOptions(Context context) { public CastOptions getCastOptions(Context context) {
return new CastOptions.Builder() return new CastOptions.Builder()
.setResumeSavedSession(false)
.setEnableReconnectionService(false)
.setReceiverApplicationId(APP_ID_DEFAULT_RECEIVER_WITH_DRM) .setReceiverApplicationId(APP_ID_DEFAULT_RECEIVER_WITH_DRM)
.setStopReceiverApplicationWhenEndingSession(true) .setStopReceiverApplicationWhenEndingSession(true)
.build(); .build();