Skip to content

Instantly share code, notes, and snippets.

@icywind
Created March 23, 2020 22:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icywind/9dcdbb09b52b88d8afce63864d2b791e to your computer and use it in GitHub Desktop.
Save icywind/9dcdbb09b52b88d8afce63864d2b791e to your computer and use it in GitHub Desktop.
Method to send the data
IEnumerator CoProcessDrawing(DrawmarkModel dm)
{
string json = JsonUtility.ToJson(dm);
if (dataStreamId > 0)
{
rtcEngine.SendStreamMessage(dataStreamId, json);
}
yield return null;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment