multipeer-connectivity

iOS Multipeer connectivity framework invitationHandler doesn't seem to accept?

狂风中的少年 提交于 2019-11-29 09:50:42
问题 I'm using the mutlipeer connectivity framework for the first time, and I want programmatic ( not with the assistant classes) control. Everything is working exactly as described when I run my code on two separate devices up until the point when the 'advertiser' receives the delegate callback: The browsing client's delegate callback is called when it discovers the advertiser: -(void)browser:(MCNearbyServiceBrowser *)browser foundPeer:(MCPeerID *)peerID withDiscoveryInfo:(NSDictionary *)info{ [[

Best option for streaming data between iPhones

折月煮酒 提交于 2019-11-28 21:40:59
问题 I would like to setup a client-server architecture for streaming data between multiple iPhones. For instance, the 'server' iPhone hosts a master list of animals. An arbitrary number of client iPhones can connect to the server iPhone then read and edit the list. Some methods I have tried: Multipeer connectivity - Only supports up to 8 clients. Would be exactly what Im looking for if there were a way around this GameKit - Ive read that bluetooth connection can be buggy when dealing with

Use iPhone as a game controller in a tvOS app?

为君一笑 提交于 2019-11-28 17:34:57
问题 During the Apple TV announcement, the developers of Crossy Road demonstrated using an iPhone as a 2nd controller for an Apple tv game: http://www.macrumors.com/2015/09/09/cooperative-play-for-crossy-road/ My first thought was to implement this using the Multipeer Connectivity Framework. However, it's not supported on tvOS. Is there a good way to connect an iPhone to an Apple TV without Multipeer Connectivity? Update: It doesn't appear that I can use GameKit because GKPeerPickerController has

Multipeer Connectivity Framework - Lost Peer stays in Session

家住魔仙堡 提交于 2019-11-28 16:52:44
问题 I wonder if this Multipeer Connectivity framework is ready for use in the real world, given all the bugs that have been encountered by the community. I think I'm setting it up right, but all the other sample projects I've tried encounter similar issues. The problem I'm having may be tied to some issue inherent to Bonjour or something, I can't figure it out, but basically the problem is as follows: I have an active MCSession with a number of peers. Now, if a device is in a session, and then

Convert any Data Type into NSData and back again

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 09:16:41
I'm working on an app where you can send either a text, image or a contact over Multipeer Connectivity to another device. It will then save in the second device's Core Data. What I do is send the data over as an NSDictionary and convert it back again. So I am left with an NSDictionary on the receiving device. How then, can I save the object for the key of @"objectData" to Core Data? I'd like it to work with NSString, UIImage & ABPerson. // Create a new object in the managed object context. Received *receivedData = [NSEntityDescription insertNewObjectForEntityForName:@"Received"

multipeer connectivity for video streaming between iphones [closed]

妖精的绣舞 提交于 2019-11-28 08:40:37
i've been searching on this for some days now. I've found how to connect devices with the multipeer connectivity protocol ( http://techmaster.vn/2013/09/multipeer-connectivity-quick-tutorial/ ) and i've manage to send text or images. What i want to do is to stream video and audio from the camera of the one device (master) to the other device(slave) in real time and show it on the slave's screen. I've found ways to save the video from the camera to the device in a file but there is nothing about streaming. Any ideas? I would really appreciate it. Thanks in advance 来源: https://stackoverflow.com

Reconnecting to disconnected peers

﹥>﹥吖頭↗ 提交于 2019-11-28 04:56:14
I'm using the iOS 7 Multipeer framework in my app but I'm experiencing a problem with devices disconnecting. If I open the app in two devices: device A and device B the two devices connect to each other automatically. However, after several seconds device A disconnects from device B. i.e. At first the connection is like this: A ---> B A <--- B After several seconds: A ---> B A B Device A maintains it's connection but device B get's a MCSessionStateNotConnected. This means that A can send data to B but B can't reply. I tried to get around this by checking if the device is connected and if it's

Is iOS 7 Multipeer Connectivity compatible with Android Wi-Fi Direct?

假如想象 提交于 2019-11-28 04:07:53
I've been looking at iOS 7's new P2P networking framework, MultipeerConnectivity , and from the description, it seems to me that it uses a combination of some kind of Wi-Fi Direct technology and Bluetooth PANs. Is the Wi-Fi Direct technology in this framework compatible with Android's Wi-Fi Direct? Can this framework actually be used for cross-platform P2P networking? The device is not found by either when advertising or browsing with MultipeerConnectivity. Tried on Galaxy Tab 2: barbazoo This is what we know: There's no BTLE/Bluetooth 4.0 advertisement visible on my Texas Instruments

Peer to peer android and iOS with Wifi direct (multipeer connectivity?)

社会主义新天地 提交于 2019-11-28 03:51:18
Well I'm working on this app to send data between android and iOS and I got it to work between iOS devices with Apple's Multipeer Connectivity framework, but I am currently wondering how do you achieve it between both platforms? even if you are willing to write it from scratch. How come Firechat is able to do it? As I remember, you can exchange data between both platforms with their app. Edit: https://www.opengarden.com/meshkit.html It seems the MeshKit SDK used in Firechat is now available (for large organisations). I am very interested in this subject as well and I came across these links

Is there a way of getting a Mac's icon given its model number?

别等时光非礼了梦想. 提交于 2019-11-27 16:08:56
I know you can get the current machine's icon from cocoa using the following code: NSImage *machineIcon = [NSImage imageNamed:NSImageNameComputer]; But is it possible to get the icon when given just a model number? Such as MacBookPro11,3 ? The reason I need this is because I'm using MultiPeer Connectivity to browse devices on the network that I'd like to connect to. But I want to display the icons from those devices in a customized browser view. I know that OS X has pretty much every icon for all the devices in the following folder: /System/Library/CoreServices/CoreTypes.bundle/Contents