mirror of
https://github.com/samsonjs/media.git
synced 2026-04-27 15:07:40 +00:00
Disable reconnection CastOptions
This includes setResumeSavedSession(false) and setEnableReconnectionService(false). PiperOrigin-RevId: 376162880
This commit is contained in:
parent
4033832cba
commit
4e749e7afe
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Reference in a new issue