// **************************************************** showAxisCamera ****************************************************
// * *
// * showAxisCamera will display the video feed from an IP-based Axis brand camera. It accepts the following parameters: *
// * url – this is the full url of the camera (http://dockcam.jkshay.com, for example) *
// * protocol – this is the protocol of the video stream („http“, for example) *
// * subdomain – the subdomain of the particular camera to display („dockcam“, for example) *
// * domain – the domain of the particular camera to display („jkshay.com“, for example) *

// * port – this is the port on which the camera is listening *
// * sc_user – this is the username used to access the camera *
// * I suggest creating a camera user with the username ‚guest‘ *
// * sc_password – this is the password for the user specified above *
// * I suggest creating a password ‚guest‘ for the user specified above *
// * width – this is the width of the videostream *
// * refresh – the number of milliseconds between image refreshes for IE *
// * class – a CSS class attribute applied to the videostream to facilitate styling via CSS *
// * *
// * NOTE: The credentials necessary to view your camera WILL be available to anyone who views the page source *
// * DO NOT USE ADMINISTRATOR CREDENTIALS UNLESS YOU WANT PEOPLE TO MESS WITH YOUR CAMERA *
// * *
// ********************************************************************************************************************
function showAxisCamera($parameters)
{
extract(shortcode_atts(array(‚protocol‘ => ‚http‘, ’subdomain‘ => ‚dockcam‘, ‚domain‘ => ‚jkshay.com‘, ‚port‘ => ’84‘, ‚url‘ => “, ’sc_user‘ => ‚guest‘, ’sc_password‘ => ‚guest‘, ‚width‘ => ‚320‘, ‚height‘ => ‚240‘, ‚refresh‘ => ‚1000‘, ‚class‘ => ‚alignleft‘,), $parameters));

$sc_results = „“;
// IE is unable to accept the videostream.cgi viewing method, so we need to deliver an alternate viewing method
// We do this by introducing a javascript that will reload static images at a predefined rate

$sc_results = $sc_results.“

„;

return $sc_results;
}

add_shortcode(’showAxisCamera‘, ’showAxisCamera‘);
// *******************************************************