I already got Alarm ID however, I also need to show the stream/playback regard this Alarm too. I’m using Web/Mobile SDK to my solution and I couldn’t figure it out how to get it just looking at the documentation.
Can you help me or send some similar sample for doing so please?
You need to use GetAlarmList command providing the Alarm ID.
<?xml version="1.0" encoding="utf-8"?>
<Communication>
<ConnectionId>a53f43b3-f9fb-43e2-bfb8-7e29fe202ffd</ConnectionId>
<Command>
<Type>Request</Type>
<Name>GetAlarmList</Name>
<InputParams>
<Param Name="AlarmId" Value="cf2bb5e6-b621-423a-9b12-15c687d7c105" />
<Param Name="Count" Value="1" />
</InputParams>
</Command>
</Communication>
This will return the related cameras:
<?xml version="1.0" encoding="utf-8"?>
<Communication
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ConnectionId>a53f43b3-f9fb-43e2-bfb8-7e29fe202ffd</ConnectionId>
<Command SequenceId="197">
<Type>Response</Type>
<Name>GetAlarmList</Name>
<InputParams />
<OutputParams />
<Items>
<Item Id="cf2bb5e6-b621-423a-9b12-15c687d7c105"
Name="Output"
Type="Alarm">
<Properties
State="4"
Type="System Alarm"
Timestamp="1442216554503"
Source="Panasonic WV-ST162 (10.4.13.77) - Output 1"
Message="Output Activated" Priority="2"
CameraId="00000000-0000-0000-0000-000000000000"
AssignedTo=""
Description=""
StateName="In progress"
PriorityName="Medium"
SourceId="43eb059b-d198-46b5-876f-d90b5f6cecc1" />
<Items>
<Item Id="edabf52c-e01e-4415-8bc1-407ab912ed6b" Name="Camera name" Type="Camera">
<Properties/>
<Items/>
</Item>
</Items>
</Item>
</Items>
<Result>OK</Result>
</Command>
</Communication>
After that you can request a video stream by using the item ID and the timestamp that you already have from the GetAlarmList response.