使用 GoogleCast-SDK v3 将 JSON 从 ios 发送方发送到接收方应用
Sending a JSON from ios sender to receiver-app with the GoogleCast-SDK v3
我正在使用 Google-Cast-SDK v3
.
开发 ios 发送者和自定义接收者应用程序
我似乎找不到合适的方法来将包含 JSON
的消息发送到 Receiver-App。我必须使用 sendTextMessage
函数还是有更好的方法?
这个 "new" 函数可以发送 base64
编码图像吗? (后端还没有真正的文件管理,这就是我现在可以使用的全部内容。)
感谢您的回答
是的,您需要创建一个 GCKCastChannel instance (for your namespace), and use sendTextMessage,这是正确的方法。
您也可以通过相同的方法推送 base64 字符串。
我正在使用 Google-Cast-SDK v3
.
我似乎找不到合适的方法来将包含 JSON
的消息发送到 Receiver-App。我必须使用 sendTextMessage
函数还是有更好的方法?
这个 "new" 函数可以发送 base64
编码图像吗? (后端还没有真正的文件管理,这就是我现在可以使用的全部内容。)
感谢您的回答
是的,您需要创建一个 GCKCastChannel instance (for your namespace), and use sendTextMessage,这是正确的方法。
您也可以通过相同的方法推送 base64 字符串。