Skip to content

Commit c389d3e

Browse files
AquilesCantacopybara-github
authored andcommitted
Enable remote to local transfers by default
This allows the user to continue playback locally, unlike the Stop Casting button which stops the cast session, but also pauses playback. PiperOrigin-RevId: 784159281
1 parent c4dd7e6 commit c389d3e

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

RELEASENOTES.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@
100100
`CastPlayer` constructors keep their old behavior, but are deprecated in
101101
favour of using the `CastPlayer` or `RemoteCastPlayer` builders instead.
102102
* Stop enforcing a non-null mime type in `DefaultMediaItemConverter`.
103+
* Enable remote to local transfers in `DefaultCastOptionsProvider`.
103104
* Test Utilities:
104105
* Remove deprecated symbols:
105106

libraries/cast/src/main/java/androidx/media3/cast/DefaultCastOptionsProvider.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public CastOptions getCastOptions(Context context) {
4343
.setEnableReconnectionService(false)
4444
.setReceiverApplicationId(APP_ID_DEFAULT_RECEIVER_WITH_DRM)
4545
.setStopReceiverApplicationWhenEndingSession(true)
46+
.setRemoteToLocalEnabled(true)
4647
.build();
4748
}
4849

0 commit comments

Comments
 (0)