$onvif=new POnvif(); $onvif->setIPAddress('x.x.x.x'); $onvif->setUsername('admin'); $onvif->setPassword('admin'); $onvif->initialize(); debarr($onvif->getSources()); debarr($onvif->media_GetStreamUri('secondStream_Profile_Token'));