mirror of
https://github.com/samsonjs/media.git
synced 2026-03-28 09:55:48 +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
|
||||
public CastOptions getCastOptions(Context context) {
|
||||
return new CastOptions.Builder()
|
||||
.setResumeSavedSession(false)
|
||||
.setEnableReconnectionService(false)
|
||||
.setReceiverApplicationId(APP_ID_DEFAULT_RECEIVER_WITH_DRM)
|
||||
.setStopReceiverApplicationWhenEndingSession(true)
|
||||
.build();
|
||||
|
|
|
|||
Loading…
Reference in a new issue