Provider connects iOS devices to ControlFloor. This sets up video streaming from iOS devices to the browser, and also enables the devices to be controlled remotely.
git clone https://github.com/nanoscopic/ios_remote_provider.gitgit clone https://github.com/nanoscopic/controlfloor.gitgit clone https://github.com/nanoscopic/ios_video_app.gitgit clone https://github.com/nanomsg/nng.git
Build nng - https://github.com/nanomsg/nng
cd nngcmakemakemake install
cd controlfloor- Copy example config:
cp config.json.example config.json - Edit
config.jsonas desired make./main run
Open https://yourip:8080 to see if controlfloor is running
cd ios_remote_provider- Copy example config:
cp config.json.example config.json - Edit
config.jsonto add your Apple developer details makesecurity unlock-keychain login.keychain# to make sure developer details are there for xcode buildmake wda
./main register- Press [enter] to register using the default password
cd ios_video_app- Open the xcode project and install CF Vidstream on the device
- Open the app
- Click "Broadcast Selector"
- Click "Start Recording"
cd ios_remote_provider./main run
- Figure out your device id
A../bin/iosif list - Figure out your device UI width/height
A../main winsizeB. -or-./main winsize -id [your device id]C. Observe "Width" and "Height" displayed - Add device specific config block to
config.json:{ ... devices:[ { udid:"[your device id]" uiWidth:[your device width] uiHeight:[your device height] } ] } - That's it. The video app will be started automatically when the provider is started.
You may wish to use tidevice instead of go-ios to start WDA. Do the following to get it setup:
-
Install tidevice.
pip3 install tidevice -
Add a WDA start method to your
config.json:{ ... wda:{ ... startMethod: "tidevice" } } -
Run
make usetideviceto auto-generate thecalculated.jsonfile containing the location of tidevice installed on your system. -
Start provider normally; tidevice will be used.