Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

See if that helps

Manav Rathi211b41680b0d
diff --git a/web/apps/cast/src/services/cast-receiver.tsx b/web/apps/cast/src/services/cast-receiver.tsx
index 3494534d7f..b7b4850ecd 100644
--- a/web/apps/cast/src/services/cast-receiver.tsx
+++ b/web/apps/cast/src/services/cast-receiver.tsx
@@ -116,6 +116,8 @@ const advertiseCode = (cast: Cast) => {
const namespace = "urn:x-cast:pair-request";
const options = new cast.framework.CastReceiverOptions();
+ // Do not automatically close the connection when the sender disconnects.
+ options.maxInactivity = 3600; /* 1 hour */
// We don't use the media features of the Cast SDK.
options.skipPlayersLoad = true;
// Do not stop the casting if the receiver is unreachable. A user should be