Try without the workaround

This commit is contained in:
Manav Rathi 2024-05-08 16:30:34 +05:30
parent 5e73257b71
commit f45902e290
No known key found for this signature in database

View file

@ -119,10 +119,10 @@ export const advertiseCode = (
// We don't use the media features of the Cast SDK.
options.skipPlayersLoad = true;
// 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;
// // is JSON; if not provided here)."
// options.customNamespaces = Object.assign({});
// options.customNamespaces[namespace] =
// cast.framework.system.MessageType.JSON;
// Do not stop the casting if the receiver is unreachable. A user should be
// able to start a cast on their phone and then put it away, leaving the
// cast running on their big screen.