Commit 4e749e7a by aquilescanta Committed by Oliver Woodman

Disable reconnection CastOptions

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

PiperOrigin-RevId: 376162880
parent 4033832c
...@@ -37,6 +37,8 @@ public final class DefaultCastOptionsProvider implements OptionsProvider { ...@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment