Disable reconnection CastOptions
This includes setResumeSavedSession(false) and setEnableReconnectionService(false). PiperOrigin-RevId: 376162880
This commit is contained in:
parent
4033832cba
commit
4e749e7afe
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user