ios_remote_provider
ios_remote_provider copied to clipboard
Provider
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.
Basic Install Instructions
Clone repos
git clone https://github.com/nanoscopic/ios_remote_provider.gitgit clone https://github.com/nanoscopic/controlfloor.git
Build ControlFloor
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
Build iOS Remote Provider and CFAgent
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 cfa
Register Provider
./main register- Press [enter] to register using the default password
Build and setup CF Vidstream App
cd repos/vidapp- Open the xcode project and install CF Vidstream on the device
Start CF Vidstream App Manually
- Open the app
- Click "Broadcast Selector"
- Click "Start Recording"
Start Provider
cd ios_remote_provider./main run
Automatically starting CF Vidstream App
- 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 D. Ctrl-C to stop - 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.
Using tidevice instead of go-ios
You may wish to use tidevice instead of go-ios to start CFA. Do the following to get it setup:
-
Reconsider using tidevice and don't follow these steps
-
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.