Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

31 lines
919 B

<?php
//require 'class.ponvif.php';
require 'toto.php';
//$onvif = new Ponvif();
//$result = $onvif->discover();
//var_dump($result);
//exit();
$test=new ponvif();
$test->setUsername('gagua');
$test->setPassword('4GetMyID');
$test->setIPAddress('192.168.0.109');
try {
$test->initialize();
if ( $test->isFault($sources=$test->getSources())) die("Error getting sources");
//print_r( $sources );
$profileToken=$sources[0][0]['profiletoken'];
$ptzNodeToken=$sources[0][0]['ptz']['nodetoken'];
//echo "Media: " . $test->media_GetStreamUri($profileToken) . "\n\n";
//echo "Snapshot: " . $test->media_GetSnapshotUri('Profile_2') . "\n\n";
//$PAPA = $test->media_GetVideoSources();
$test->ptz_AbsoluteMove( "Profile_1", 1, -1, 0);
$test->ptz_GetStatus("Profile_1");
//var_dump( $PAPA );
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>