VictorNouvellet / KubiServerApp

Other
0 stars 0 forks source link
accessor ios streaming-api swift

Kubi Server App

Kubi Server App

GitHub license platform

Control your Kubi on your local network with a iOS gateway.

This repository contains the source code for Kubi Server iOS app.

This app consists in:

Installation Requirements

Important note: Kubi framework has not been compiled for the iOS simulator so you will not be able to install KubiServer app on it.

Installation

  1. Clone or download project.
    • From root project directory in Terminal (the one where Podfile file is), run pod repo update to update source repos and then run pod install. It will install HaishinKit and GCDWebServer pods.
    • Run open KubiServer.xcworkspace to open the project workspace in Xcode.
    • Download last Kubi framework: from this page, download KubiDeviceSDK-iOS-X.X.zip file and unzip it. Only KubiDeviceSDK version 1.5 has been tested but next versions should work.
    • From the unzipped folder, drag and drop KubiDeviceSDK.framework file to Xcode under Frameworks folder. Make sure to check Copy items if needed, so that the files actually copy into the new project instead of just adding a reference. Frameworks need their own code, not references, to be independent.screen shot 2017-02-15 at 4 01 36 pm
    • Add the framework to the "Embedded binaries" section in the "General" tab of KubiServer app target.addtoembeddedbinaries
  2. Make sure your device is connected to your computer and Build & Run by using ⌘+R from Xcode.

User Steps after installation

The control server should be running even if the app is in background but the video stream server will pause. See why here.

Play live

Use your favorite HLS player. With Quicktime:

Control live

The API is accessible from http://IOS_IP_ADDRESS:8080 Absolute and incremental position API are accessed through /absolute and /incremental paths.

Absolute position example:

http://IOS_IP_ADDRESS:8080/absolute?pan=0&panSpeed=40&tilt=-10&tiltSpeed=50

Incremental position example:

http://IOS_IP_ADDRESS:8080/incremental?pan=0&panSpeed=40&tilt=-10&tiltSpeed=50

Contributing

Everything works around one branch (master) to follow the Github Flow. Feel free to submit pull requests. Test your (not yet tested) code if possible before pull requests.

Needed pods

Authors

License

See also