This commit is contained in:
Manav Rathi 2024-05-06 11:38:30 +05:30
parent b917237db2
commit c9601c33c3
No known key found for this signature in database
2 changed files with 4 additions and 2 deletions

View file

@ -46,6 +46,8 @@ export default function Slideshow() {
};
}, []);
log.info("Rendering slideshow", { loading, imageURL, nextImageURL });
if (loading) return <PairedSuccessfullyOverlay />;
return <SlideView url={imageURL} nextURL={nextImageURL} />;

View file

@ -116,9 +116,9 @@ export const advertiseCode = (
const namespace = "urn:x-cast:pair-request";
const options = new cast.framework.CastReceiverOptions();
options.skipPlayersLoad = true;
// options.skipPlayersLoad = true;
// Do not automatically close the connection when the sender disconnects.
// options.maxInactivity = 3600; /* 1 hour */
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({});