Skip to content

IpCam#

Example: Start the IpCam Overview

allCams_template.xml
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<templates>
<template name="ipcam"> 
    <keyConfiguration>
    <function>
      <invocations>
        <invocation>
          <intent>
            <action>android.intent.action.Main</action>
            <component>de.auerswald.ipcam/.IpCamActivity</component>
          </intent>
        </invocation>
      </invocations>
    </function>
    </keyConfiguration>
</template>
</templates>
</configuration>

Example: Start a single Camera (requires firmware version 1.8B and up)

singleCam_template.xml
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<templates>
    <template name="Camera" icon="@drawable/no_video">
        <keyConfiguration>
            <lua>
                <code>
function onKeyUp()
  system.intent{action="android.intent.action.MAIN", component="de.auerswald.ipcam/.IpCamDetailActivity", extras={IpCamName=cam_name}}
end
                </code>
                <params>
                    <param name="cam_name"/>
                </params>
            </lua>
        </keyConfiguration>
        <parameters>
            <parameter name="@string/name" type="text">
                <path>//param[@name="cam_name"]/value</path>
            </parameter>
        </parameters>
    </template>
</templates>
</configuration>