kirankunigiri / peertalk-simple Goto Github PK
View Code? Open in Web Editor NEWCommunicate between iOS and Mac devices via USB
License: MIT License
Communicate between iOS and Mac devices via USB
License: MIT License
Tried to run with Java client but always received '?bplist?'string. Tried sending number and string from iOS app to java but received string is same.
I am trying to send some data using Peertalk Simple example project though the devices are not connecting. When I run the program "Connected: true" shows up in both of their logs when they should be connected and "Connected: false" shows up when they are not, but in both cases, none of the other connection code is executed and I am unable to send messages, I have checked and the value for peerChanel is both are nil, I have copied the connection code from the example project and do not know what is wrong, any help would be appreciated.
Hi, I tried to do as told in the guide and just copy the PTManager.swift from Source folder, but it was giving me a lot of errors, then I tried to copy the whole structure together with the peertalk folder and helper.swift and PeertalkSimple-Bridging-Header.h and it is still giving me a lot of errors, I am very new to swift and I presume that the guide is for a bit more advanced people than me and unfortunately I am stuck and I didn't find any other guides on the internet about peertalk-simple so I thought I'd ask at the source. I'd appreciate any help that you could give me. Thanks
also PS: I am trying to make an app for my own needs that would send the iPhone camera feed over to the mac as a second webcam. There is a bunch of such apps in the AppStore for around โฌ20 in my location which is a bit pricey if I do say so myself so I thought I might try and make one of my own while learning new skills... could I transfer a video stream over USB with peertalk/peertalk-simple? Is it technically possible to send video files?
I have been working on sending CMSampleBuffer data out of a broadcast extension and this has been causing me trouble, sending strings though peertalk in the extension is working, but when I send CMSampleBuffers is causes an error. Here is my code:
ptManager.sendObject(object: sampleBuffer, type 102)
That does not work but when I do this:
ptManager.sendObject(object: "test", type 102)
it does work, what is going on here?
What if you don't want to have to communicate with your MacBook pro? You shouldn't have to communicate with your MacBook pro to use this. How do you just get the port number of a usb device once it is attached?
I'm encountering a crash when sending a two-dimensional array wrapped up in a struct. So this works for me:
// sending
var Traj: [[Int]] = ....
ptManager.sendObject(object: Traj, type: PTType.number.rawValue)
// receiving
let Traj = data.convert() as! [[Int]]
but when I attempt to do
// sending
struct Trial{
let header: String
let payload: [[Int]]
}
let trial = Trial(header: "hello", payload: Traj)
ptManager.sendObject(object: trial, type: PTType.number.rawValue)
// receiving
struct Trial{
let header: String
let payload: [[Int]]
}
let trial = data.convert() as! Trial
I get a crash when sending. Am I doing something wrong, or is there a bug?
Curious if anyone has tried another iOS device as the server for this library, instead of a MacOS device. Thanks!
I developed a OSX application that listening the USB devices that connected from OSX and application runs fine before submit to app store. At the time of submission to app store I enabled the "App Sandbox" and enabled USB in App Sandbox. But after enable this application is not able to get the list of USB connected devices.
So now please suggest the solution for this. or suggest any option to get the devices list which is connected from osx using USB.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.