π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Once over
Manav Rathic92380eb10e3
diff --git a/web/apps/cast/src/pages/index.tsx b/web/apps/cast/src/pages/index.tsxindex dd0389949e..f84e1d64fd 100644--- a/web/apps/cast/src/pages/index.tsx+++ b/web/apps/cast/src/pages/index.tsx@@ -52,7 +52,7 @@ export default function Index() {storeCastData(data);await router.push("/slideshow");} catch (e) {- console.log("Failed to get cast data", e);+ log.error("Failed to get cast data", e);// Start again from the beginning.setPairingCode(undefined);init();diff --git a/web/apps/cast/src/services/pair.ts b/web/apps/cast/src/services/pair.tsindex 31419927d7..66f9feddd1 100644--- a/web/apps/cast/src/services/pair.ts+++ b/web/apps/cast/src/services/pair.ts@@ -116,11 +116,15 @@ export const advertiseCode = (const namespace = "urn:x-cast:pair-request";const options = new cast.framework.CastReceiverOptions();- // TODO(MR): Are any of these options required?- options.maxInactivity = 3600;+ // Do not automatically close the connection when the sender disconnects.+ options.maxInactivity = 3600; /* 1 hour */+ // TODO:Is this required? The docs say "(The default type of a message bus+ // is JSON; if not provided here)."options.customNamespaces = Object.assign({});options.customNamespaces[namespace] =cast.framework.system.MessageType.JSON;+ // TODO: This looks like the only one needed, but a comment with the reason+ // might be good.options.disableIdleTimeout = true;// Reply with the code that we have if anyone asks over Chromecast.@@ -144,7 +148,7 @@ export const advertiseCode = ();// Shutdown ourselves if the sender disconnects.- // TODO(MR): Does it?+ // TODO(MR): I assume the page reloads on shutdown. Is that correct?context.addEventListener(cast.framework.system.EventType.SENDER_DISCONNECTED,() => context.stop(),