I would like to know how to connect 2 iOS devices using my local home network, I know OSC can do the job but I need to transfer video from one device to the other, so I wonder if there is a better way of doing that.
void testApp::downloadDirectory(string ip, string path){
string url = "[http://"](http://") + ip + ":8080/Documents/" + path + "/";
ofDirectory::createDirectory(path, true, true);
cout << "attempting to save url " << url << "file.wav to " << path << endl;
cout << "attempting to save url " << url << "data.txt to " << path << endl;
ofSaveURLTo(url + "file.wav", path + "/file.wav");
ofSaveURLTo(url + "data.txt", path + "/data.txt");
}
This should work for iOS too though the downloads path will need to be the app’s document folder.
On the receiving end you’ll need to know the ip of the server. I’ve used osc to do this.
Maybe actually - if you can get video over http: working in OF on IOS.
Looking at the iPhone video code in OF - I think it could work with a url as well as a file path.
You just need to make sure the video is in a supported format ( usually m4v / h264 mp4 )