Sending a JSON from ios sender to receiver-app with the GoogleCast-SDK v3

孤街醉人 提交于 2019-12-12 05:18:47

问题


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

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?

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.)

Thanks for your answers


回答1:


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

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



来源:https://stackoverflow.com/questions/39766944/sending-a-json-from-ios-sender-to-receiver-app-with-the-googlecast-sdk-v3

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!