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"; } ?>