Xamarin or Apache Cordova

Xamarin (http://xamarin.com)

Xamarin apps share code across all platforms.

Target iOS, Android, Windows and Mac with a single, shared C# codebase. Use the same language, APIs and data structures on every platform.
C# is the best language for mobile app development.

With Xamarin, you write your apps entirely in C#, sharing the same code on iOS, Android, Windows, Mac and more. Anything you can do in Objective-C, Swift or Java, you can do in C#.
Native UI, native API access & native performance.

Xamarin apps are built with standard, native user interface controls. Apps not only look the way the end user expects, they behave that way too. This can’t be achieved with other solutions.

Apache Cordova (https://cordova.apache.org)

Apache Cordova is a set of device APIs that allow a mobile app developer to access native device function such as the camera or accelerometer from JavaScript. Combined with a UI framework such as jQuery Mobile or Dojo Mobile or Sencha Touch, this allows a smartphone app to be developed with just HTML, CSS, and JavaScript.

When using the Cordova APIs, an app can be built without any native code (Java, Objective-C, etc) from the app developer. Instead, web technologies are used, and they are hosted in the app itself locally (generally not on a remote http server).

And because these JavaScript APIs are consistent across multiple device platforms and built on web standards, the app should be portable to other device platforms with minimal to no changes.

Apps using Cordova are still packaged as apps using the platform SDKs, and can be made available for installation from each device’s app store.

Cordova provides a set of uniform JavaScript libraries that can be invoked, with device-specific native backing code for those JavaScript libraries. Cordova is available for the following platforms: iOS, Android, Blackberry, Windows Phone, Palm WebOS, Bada, and Symbian.

Further Readings

http://www.codemag.com/Article/1503071
https://app-o-mat.com/video/jquery-mobile-cordova-intro-1
http://demos.jquerymobile.com/1.4.5/pages/
http://code.tutsplus.com/tutorials/build-an-audioplayer-with-phonegap-application-setup–mobile-16347
http://blog.monnet-usa.com/?p=420
https://msdn.microsoft.com/en-us/library/Dn771545.aspx

 

 

 

IP Camera CGI Application Guide

CGI Command List (HD)

For all developers that want to integrate our cameras in their software or for everyone that wants to experiment a little, we now offer a full list of all CGI commands that can be used with our IP cameras. Please understand that this list is only for advanced users who know what they are doing. We can not give any technical support regarding our CGI commands.

List of the most needed CGI commands

VIDEO

rtsp://admin:instar@IP-Address:RTSP-Port/11 :: VLC Stream

http://admin:instar@IP-Address:Port/iphone/11 :: Quicktime Stream

http://IP-Address:Port/tmpfs/snap.jpg?usr=admin&pwd=instar :: Snapshot (720p / 1280×720 Pixel)

http://IP-Address:Port/tmpfs/auto.jpg?usr=admin&pwd=instar :: Snapshot (352p or 176p)

http://IP-Address:Port/cgi-bin/hi3510/mjpegstream.cgi?-chn=11&-usr=admin&-pwd=instar :: MJPEG Stream
also note the additional SDK documentation for accessing video / audio

PTZ

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=right :: Moves continuously right

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=left :: Moves continuously left

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=up :: Moves continuously up

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=down :: Moves continuously down

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=stop :: Stops moving camera-head

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=1&-act=right :: Moves one step right

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=1&-act=left :: Moves one step left

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=1&-act=up :: Moves one step up

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=1&-act=down :: Moves one step down

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=home :: Go to Center Position

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=hscan :: Scan horizontal

http://IP-Address:Port/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=vscan :: Scan vertical

http://IP-Address:Port/cgi-bin/hi3510/preset.cgi?-act=set&-status=1&-number=[0-7] :: set a position

http://IP-Address:Port/cgi-bin/hi3510/preset.cgi?-act=set&-status=0&-number=[0-7] :: unset a position

http://IP-Address:Port/cgi-bin/hi3510/preset.cgi?-act=goto&-status=1&-number=[0-7] :: goto to a set position

IMAGE

http://IP-Address:Port/cgi-bin/hi3510/param.cgi?cmd=setimageattr :: Sets the Image Parameter
You can set the following parameters:

brightness :: [0 – 255] the bigger the value the brighter the image

saturation :: [0 – 255] the bigger the value the more saturation the image has

contrast :: [0 – 255] the bigger the value the more contrast the image has

hue :: [0 – 127] the bigger the value the more hue the image has

flip :: (on , off) flips the image

mirror :: (on , off) flips the image

scene :: (auto , indoor , outdoor) sets the white balance mode
http://IP-Address:Port/cgi-bin/hi3510/param.cgi?cmd=setimageattr&-brightness=0&-saturation=0&-contrast=0&-hue=0&-flip=off&-mirror=off&-scene=auto

WLAN

reset the parameter values

http://192.168.xxx.xxx./cgi-bin/hi3510/param.cgi?cmd=setwirelessattr&-wf_ssid=SSID&-wf_enable=0&-wf_auth=2&-wf_key=1234&-wf_enc=1&-wf_mode=0

IR-LED

http://192.168.178.87/cgi-bin/hi3510/param.cgi?cmd=setinfrared&-infraredstat=auto :: Sets IR LED’s to auto mode

http://192.168.178.87/cgi-bin/hi3510/param.cgi?cmd=setinfrared&-infraredstat=open :: Sets IR LED’s always active :: only IN-6011

http://192.168.178.87/cgi-bin/hi3510/param.cgi?cmd=setinfrared&-infraredstat=close :: Sets IR LED’s always inactive

ALARM

http://admin:instar@192.168.xxx.xxx/cgi-bin/hi3510/param.cgi?cmd=setmdattr&-enable=1&-name=1 :: enables the md area 1

http://admin:instar@192.168.xxx.xxx/cgi-bin/hi3510/param.cgi?cmd=setmdattr&-enable=0&-name=1 :: disables the md area 1

http://192.168.x.x/cgi-bin/hi3510/param.cgi?cmd=setioattr&-io_enable=1&-io_flag=1 :: enable / disable external alarm in to trigger recording
http://admin:instar@192.168.xxx.xxx/cgi-bin/hi3510/param.cgi?cmd=setmdattr&-enable=0&-name=1&cmd=setmdattr&-enable=0&-name=2&cmd=setmdattr&-enable=0&-name=3&cmd=setmdattr&-enable=0&-name=4

Download INSTAR_CGI_H264_Chipset_English Guide

Download FI9821W-CGI-Commands

http://community.ispyconnect.com/ispybb2/viewtopic.php?t=1442

/cgi-bin/hi3510/ptzgotopoint.cgi?&-chn=0&-point=0

      /cgi-bin/hi3510/ptzctrl.cgi?&-chn=0&-act=left&-speed=10
      /cgi-bin/hi3510/ptzctrl.cgi?&-chn=0&-act=upleft&-speed=10
      /cgi-bin/hi3510/ptzctrl.cgi?&-chn=0&-act=right&-speed=10
      /cgi-bin/hi3510/ptzctrl.cgi?&-chn=0&-act=upright&-speed=10
      /cgi-bin/hi3510/ptzctrl.cgi?&-chn=0?&-act=up&-speed=10
      /cgi-bin/hi3510/ptzctrl.cgi?&-chn=0&-act=down&-speed=10
      /cgi-bin/hi3510/ptzctrl.cgi?&-chn=0&-act=downleft&-speed=10
      /cgi-bin/hi3510/ptzctrl.cgi?&-chn=0&-act=downright&-speed=10
      /cgi-bin/hi3510/ptzstop.cgi?&-chn=0&-speed=0
 
 
 
 
      <command />/cgi-bin/hi3510/ptzgotopoint.cgi?&amp;-chn=0&amp;-point=0
      <command />/cgi-bin/hi3510/ptzgotopoint.cgi?&amp;-chn=0&amp;-point=1
      <command />/cgi-bin/hi3510/ptzgotopoint.cgi?&amp;-chn=0&amp;-point=2
      <command />/cgi-bin/hi3510/ptzgotopoint.cgi?&amp;-chn=0&amp;-point=3
      <command />/cgi-bin/hi3510/ptzgotopoint.cgi?&amp;-chn=0&amp;-point=4
      <command />/cgi-bin/hi3510/ptzgotopoint.cgi?&amp;-chn=0&amp;-point=5
      <command />/cgi-bin/hi3510/ptzgotopoint.cgi?&amp;-chn=0&amp;-point=6
      <command />/cgi-bin/hi3510/ptzgotopoint.cgi?&amp;-chn=0&amp;-point=7
      <command />/cgi-bin/hi3510/ptzgotopoint.cgi?&amp;-chn=0&amp;-point=8
      <command />/cgi-bin/hi3510/ptzsetpoint.cgi?&amp;-chn=0&amp;-point=1
      <command />/cgi-bin/hi3510/ptzsetpoint.cgi?&amp;-chn=0&amp;-point=2
      <command />/cgi-bin/hi3510/ptzsetpoint.cgi?&amp;-chn=0&amp;-point=3
      <command />/cgi-bin/hi3510/ptzsetpoint.cgi?&amp;-chn=0&amp;-point=4
      <command />/cgi-bin/hi3510/ptzsetpoint.cgi?&amp;-chn=0&amp;-point=5
      <command />/cgi-bin/hi3510/ptzsetpoint.cgi?&amp;-chn=0&amp;-point=6
      <command />/cgi-bin/hi3510/ptzsetpoint.cgi?&amp;-chn=0&amp;-point=7
      <command />/cgi-bin/hi3510/ptzsetpoint.cgi?&amp;-chn=0&amp;-point=8
      <command />/cgi-bin/hi3510/ptzstarttour.cgi?&amp;-tour=0
      <command />/cgi-bin/hi3510/ptzstarttour.cgi?&amp;-tour=1
      <command />/cgi-bin/hi3510/ptzstarttour.cgi?&amp;-tour=2
      <command />/cgi-bin/hi3510/ptzstarttour.cgi?&amp;-tour=3
      <command />/cgi-bin/hi3510/ptzctrl.cgi?&amp;-step=0&amp;-speed=10&amp;-act=hscan
      <command />/cgi-bin/hi3510/ptzctrl.cgi?&amp;-step=0&amp;-speed=10&amp;-act=vscan

via: http://www.instar.com/faq_cgi_hd

rEFInd Boot Manager

$ ./install.sh
Not running as root; attempting to elevate privileges via sudo....
Password:
Installing rEFInd on OS X....
Installing rEFInd to the partition mounted at /Volumes/ESP
Found suspected Linux partition(s); installing ext4fs driver.
Installing driver for ext4 (ext4_ia32.efi)
Copied rEFInd binary files

Copying sample configuration file as refind.conf; edit this file to configure
rEFInd.


WARNING: If you have an Advanced Format disk, *DO NOT* attempt to check the
bless status with 'bless --info', since this is known to cause disk corruption
on some systems!!


Installation has completed successfully.

Unmounting install dir