# Timestamp sent by IP Camera(AXIS M1125)

**URL:** https://community.wowza.com/t/timestamp-sent-by-ip-camera-axis-m1125/53351
**Category:** Wowza Developer Dojo
**Tags:** wowza-streaming-server-java-api
**Created:** [May 14, 2019, 12:56pm UTC](https://community.wowza.com/t/timestamp-sent-by-ip-camera-axis-m1125/53351 "2019-05-14T12:56:23Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Momo\_MoKA](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@Momo\_MoKA](https://community.wowza.com/u/Momo_MoKA)
#### Post date: [May 14, 2019, 12:56pm UTC](https://community.wowza.com/t/timestamp-sent-by-ip-camera-axis-m1125/53351/1 "2019-05-14T12:56:23Z")

</div>

I would like to get the Timestamp sent by IP Camera(AXIS M1125) inside Sending Report (RTCP).

my solution : I try to intercept RTP packet with IRTPDePacketizerWrapper but i can’t find method in this interface to extract timestamp in RTP packet.  
Do you have an other solution to get timestamp(camera IP timestamp) in RTP packet?

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [May 24, 2019, 8:04pm UTC](https://community.wowza.com/t/timestamp-sent-by-ip-camera-axis-m1125/53351/2 "2019-05-24T20:04:48Z")

</div>

Hi @Momo MoKA, I see you received assistance from a support ticket. I’m sorry you didn’t receive a an answer while I was out on vacation last week. I’m going to go ahead and share the solution from your ticket for the community. Please reach out if you need anything else.

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [May 24, 2019, 8:06pm UTC](https://community.wowza.com/t/timestamp-sent-by-ip-camera-axis-m1125/53351/3 "2019-05-24T20:06:33Z")

</div>

To access the AMFPacket timecodes, there are a few different methods that you can use, depending on what you want.

If you just want the latest timecode in the stream, you can call _**stream.getMaxTimecode();**_ or _**stream.getAudioTC();**_ or _**stream.getVideoTC();**_ for the audio & video respectively.

If you want to get the latest AMF Packets, you can call _**stream.getLastPacket();**_ or _**stream.getLastKeyFrame();**_. To get a list of the available AMF packets on the stream, you can call **stream.getPlayPackets();**. This list is constantly updating so you will need to keep track of the packet sequence numbers. With the AMF Packets, you can call _**packet.getAbsTimecode();**_ to get the packet timecode. There is also a \*getTimecode();\*method which is the delta offset to the previous packet of the same type.

These methods are available on all published streams. To gain access to the published stream, you can use:

```auto
IMediaStream stream = appInstance.getStreams().getStream(streamName);if(stream != null){ ...}

```

---

<div class="post-metadata">

### Author: ![Rose\_Power-Wowza\_Com](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/rose_power-wowza_com/32/431_2.png) [@Rose\_Power-Wowza\_Com](https://community.wowza.com/u/Rose_Power-Wowza_Com)
#### Post date: [March 30, 2020, 4:44pm UTC](https://community.wowza.com/t/timestamp-sent-by-ip-camera-axis-m1125/53351/4 "2020-03-30T16:44:30Z")

</div>

I’m not sure why it’s not working with this camera, but I see there is a support ticket on this and the engineers will take a look at this with you for the AXIS M125. Thank you for submitting a ticket to get it resolved.

---

<div class="post-metadata">

### Author: ![Mohamed\_KARAGA](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@Mohamed\_KARAGA](https://community.wowza.com/u/Mohamed_KARAGA)
#### Post date: [March 30, 2020, 3:59pm UTC](https://community.wowza.com/t/timestamp-sent-by-ip-camera-axis-m1125/53351/5 "2020-03-30T15:59:14Z")

</div>

Hello @Rose Power-Wowza Community Manager,

I make this test but i realize that _**stream.getVideoTC()**_ doesn’t provide absolute timestamp coming from my camera Axis M1125.

So, how can’t i find camera timestamp through wowza?  
Thanks!
