Skip to content

Instantly share code, notes, and snippets.

@digitallysavvy
Created November 26, 2019 23:08
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 digitallysavvy/0560cb7d6310a54965d6653e4e774b4b to your computer and use it in GitHub Desktop.
Save digitallysavvy/0560cb7d6310a54965d6653e4e774b4b to your computer and use it in GitHub Desktop.
A function that will send the string "undo" as a StreamMessage using Agora's Video RTC SDK
@IBAction func sendUndoMsg() {
// if data stream is enabled, send undo message
if self.streamIsEnabled == 0 {
self.agoraKit.sendStreamMessage(self.dataStreamId, data: "undo".data(using: String.Encoding.ascii)!)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment