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?
I hate (null) and want to replace other word.
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?
I hate (null) and want to replace other word.
Use finishBroadcastWithError, NSError must be use 'NSLocalizedFailureReasonErrorKey' to describe.
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))