使用GoogleCast-SDK v3将JSON从iOS发送方发送到接收方应用 [英] Sending a JSON from ios sender to receiver-app with the GoogleCast-SDK v3

查看:79
本文介绍了使用GoogleCast-SDK v3将JSON从iOS发送方发送到接收方应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Google-Cast-SDK v3 开发ios发送器和自定义接收器应用.

I'm developing an ios sender and custom-receiver app with the Google-Cast-SDK v3.

我似乎找不到合适的方法将包含JSON的消息发送到Receiver-App.我必须使用sendTextMessage功能还是有更好的方法?

I can't seem to find the appropriate method to send a message containing a JSON to the Receiver-App. Do I have to use the sendTextMessage-function or is there a better way?

此新"功能是否可以发送base64编码图像? (后端还没有真正的文件管理功能,这就是我现在可以使用的全部功能.)

Would this "new" function be able to send a base64 coded image? (The Backend has no real file-management yet and this is all I can work with right now.)

感谢您的回答

推荐答案

是的,您需要创建一个 GCKCastChannel 实例(用于您的命名空间),并使用 sendTextMessage ,这是正确的方法.

Yes, you'll want to create a GCKCastChannel instance (for your namespace), and use sendTextMessage, that is the correct way.

您也可以通过相同的方法推送base64字符串.

You could also push a base64 string via the same method.

这篇关于使用GoogleCast-SDK v3将JSON从iOS发送方发送到接收方应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆