0

I stuck in a little problem.

I exercised broadcast upload extension with replaykit,

I wanted display a error code when occured exceptions.

But I couldn't any way for that.

Would you teach me a way?

enter image description here

I hate (null) and want to replace other word.

pogibas
  • 27,303
  • 19
  • 84
  • 117

2 Answers2

1

Use finishBroadcastWithError, NSError must be use 'NSLocalizedFailureReasonErrorKey' to describe.

马盛华
  • 11
  • 1
0

you can handle this issue by this protocol

finishBroadcastWithError()

in RPBroadcast handler

for more refer apple Doc

example:

let userInfo = [NSLocalizedFailureReasonErrorKey: "You have Stopped Screen Sharing"]
        finishBroadcastWithError(NSError(domain: "ScreenShare", code: -1, userInfo: userInfo))