mcsession

Swift -Does the Bonjour NSNetServiceBrowser have a peer limit larger then MCSession's 8?

旧街凉风 提交于 2020-03-04 15:37:22
问题 Using a MCSession , the session can only have 8 devices connected to it: Sessions currently support up to 8 peers, including the local peer I need way more than 8 peers. I came across this apple forums dev thread where someone asked a similar question and an Apple engineer named eskimo said that it can be achieved using NSNetService and its includesPeerToPeer flag or the Bonjour browser . I've seen a bunch of people ask questions on how to get around the MCSession 8 peer limit but I haven't

Swift -Does the Bonjour NSNetServiceBrowser have a peer limit larger then MCSession's 8?

耗尽温柔 提交于 2020-03-04 15:35:14
问题 Using a MCSession , the session can only have 8 devices connected to it: Sessions currently support up to 8 peers, including the local peer I need way more than 8 peers. I came across this apple forums dev thread where someone asked a similar question and an Apple engineer named eskimo said that it can be achieved using NSNetService and its includesPeerToPeer flag or the Bonjour browser . I've seen a bunch of people ask questions on how to get around the MCSession 8 peer limit but I haven't

MCSession is connecting, but never connected

烂漫一生 提交于 2019-12-13 01:29:05
问题 I have my simulator and phone seeing each other and the one acting as a browser inviting the advertiser into a session. However, the only 2 state changes I see on either side is .Connecting and .NotConnected. I never see .Connected. Am I supposed to do something to go from .Connecting to .Connected on the advertiser or browser side? I don't see anything in the examples. I do not have any disconnect statements in my code. Not sure why the connection is being broken. 回答1: Ok I tested your

Convert incoming NSStream to View

為{幸葍}努か 提交于 2019-12-10 12:31:46
问题 I'm successfully sending a stream of NSData. The delegate method below is getting that stream and appending to NSMutableData self.data. How do I take this data and make it into a UIView/AVCaptureVideoPreviewLayer (which should show video)? I feel like I'm missing another conversion, AVCaptureSession > NSStream > MCSession > NSStream > ? - (void)stream:(NSStream *)stream handleEvent:(NSStreamEvent)eventCode { switch(eventCode) { case NSStreamEventHasBytesAvailable: { if(!self.data) { self.data