Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Nall-chan committed Aug 22, 2024
1 parent ddc0d49 commit 3346f74
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion ONVIF Events/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
class ONVIFEvents extends ONVIFModuleBase
{
public const wsdl = '';
public function Create()

public function Create(): void
{
parent::Create();
}
Expand Down
2 changes: 1 addition & 1 deletion ONVIF IO/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ protected function StartConnection()
}

$Url = parse_url($this->ReadPropertyString(\ONVIF\IO\Property::Address));
$Url['port'] = $Url['port'] ?? '';
$Url['port'] = isset($Url['port']) ? ':' . $Url['port'] : '';
if (!isset($Url['scheme']) && !isset($Url['host'])) {
$this->Host = '';
$this->SetStatus(IS_EBASE + 1);
Expand Down
3 changes: 2 additions & 1 deletion ONVIF Replay Stream/module.php
Original file line number Diff line number Diff line change
Expand Up @@ -207,13 +207,14 @@ protected function RefreshRecordingTokenForm(string $NewVideoSource): void
$this->UpdateFormField('RecordingToken', 'options', json_encode($ProfileOptions));
}

protected function GetRecordingSummary(): void
protected function GetRecordingSummary(): bool
{
$Capabilities = $this->Capabilities;
$Result = $this->SendData($Capabilities['XAddr'][\ONVIF\NS::SearchRecording], 'GetRecordingSummary', true, [], \ONVIF\WSDL::SearchRecording);
if ($Result == false) {
return false;
}
return true;
}
/*
protected function GetRecordingInformation()
Expand Down

0 comments on commit 3346f74

Please sign in to comment.