# HLS Live stream Timecode issue

**URL:** <https://community.wowza.com/t/hls-live-stream-timecode-issue/41392>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [October 10, 2013, 1:05am UTC](https://community.wowza.com/t/hls-live-stream-timecode-issue/41392 "2013-10-10T01:05:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Felice\_Marra](https://avatars.discourse-cdn.com/v4/letter/f/f19dbf/32.png) [@Felice\_Marra](https://community.wowza.com/u/Felice_Marra)\
**Post date:** [October 10, 2013, 1:05am UTC](https://community.wowza.com/t/hls-live-stream-timecode-issue/41392/1 "2013-10-10T01:05:47Z")

</div>

Hi, we are trying Wowza platform to develop a Second Screen system.

We have to capture in the ios player the time code from a live stream

produced with an encodere like Wirecast having “Apply timecode every”

checkbox enabled.

I found this useful thread

[https://www.wowza.com/docs/how-to-debug-timed-data-events-id3-tags-from-apple-hls-streams-in-ios-devices](https://www.wowza.com/docs/how-to-debug-timed-data-events-id3-tags-from-apple-hls-streams-in-ios-devices)

[https://www.wowza.com/docs/how-to-debug-timed-data-events-id3-tags-from-apple-hls-streams-in-ios-devices(ID3-tags)](https://www.wowza.com/docs/how-to-debug-timed-data-events-id3-tags-from-apple-hls-streams-in-ios-devices%28ID3-tags%29)

and this

[https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream](https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream)

I compiled successfully the javacode addons into the wowza server. All

is ok.

So… in the debug example there is the url of a recorded file streamed

with iosdebugid3tags.html at the end but

I didn’t understan the correct url format for live stream

for example… http://[servername]/live/liveStream/ ??? and than?

adding iosdebugid3tags.html at the end doesn’t work

If I try to view the stream

http://[servername]/live/liveStream/playlist.m3u8 on my ipad tracing the

timecode with popocorn.js I can retrieve the seconds after the stream’s

start… but not the smtpe timecode…

[http://popcornjs.org/popcorn-docs/media-methods/#currentTime](http://popcornjs.org/popcorn-docs/media-methods/#currentTime)

"_time_[String | Number] - number of seconds orSMPTE

[http://en.wikipedia.org/wiki/SMPTE\_timecode](http://en.wikipedia.org/wiki/SMPTE_timecode)format string. If

a_time_parameter is passed, set the media’s current time to this value.

If no_time_parameter, return the value of the|currentTime()|property in

seconds."

So… can you help me to resolve this problem?

How can I get timecode of an hls live stream (not recorded) with wowza

server?

Regards,

Felice Marra

---

<div class="post-metadata">

**Author:** ![Mikael\_LA\_nnroth](https://avatars.discourse-cdn.com/v4/letter/m/f07891/32.png) [@Mikael\_LA\_nnroth](https://community.wowza.com/u/Mikael_LA_nnroth)\
**Post date:** [November 15, 2013, 10:11pm UTC](https://community.wowza.com/t/hls-live-stream-timecode-issue/41392/2 "2013-11-15T22:11:33Z")

</div>

I sort of have the same question.

Actually it seems a bit weird that not a bunch of other people have this same problem but:

How can I (client side) get information about what time in the live stream I am currently watching?

For a working slide sync I need this information in some way, but don’t quite know how to get it.

BR, Mikael

> Hi, we are trying Wowza platform to develop a Second Screen system.
> 
> We have to capture in the ios player the time code from a live stream
> 
> produced with an encodere like Wirecast having “Apply timecode every”
> 
> checkbox enabled.
> 
> I found this useful thread
> 
> [Inject timed metadata using a Wowza Streaming Engine H](https://www.wowza.com/docs/how-to-debug-timed-data-events-id3-tags-from-apple-hls-streams-in-ios-devices)
> 
> [https://www.wowza.com/docs/how-to-debug-timed-data-events-id3-tags-from-apple-hls-streams-in-ios-devices(ID3-tags)](https://www.wowza.com/docs/how-to-debug-timed-data-events-id3-tags-from-apple-hls-streams-in-ios-devices%28ID3-tags%29)
> 
> and this
> 
> [Convert AMF timed metadata to ID3 tags](https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream)
> 
> I compiled successfully the javacode addons into the wowza server. All
> 
> is ok.
> 
> So… in the debug example there is the url of a recorded file streamed
> 
> with iosdebugid3tags.html at the end but
> 
> I didn’t understan the correct url format for live stream
> 
> for example… http://[servername]/live/liveStream/ ??? and than?
> 
> adding iosdebugid3tags.html at the end doesn’t work
> 
> If I try to view the stream
> 
> http://[servername]/live/liveStream/playlist.m3u8 on my ipad tracing the
> 
> timecode with popocorn.js I can retrieve the seconds after the stream’s
> 
> start… but not the smtpe timecode…
> 
> [http://popcornjs.org/popcorn-docs/media-methods/#currentTime](http://popcornjs.org/popcorn-docs/media-methods/#currentTime)
> 
> "_time_[String | Number] - number of seconds orSMPTE
> 
> [http://en.wikipedia.org/wiki/SMPTE\_timecode](http://en.wikipedia.org/wiki/SMPTE_timecode)format string. If
> 
> a_time_parameter is passed, set the media’s current time to this value.
> 
> If no_time_parameter, return the value of the|currentTime()|property in
> 
> seconds."
> 
> So… can you help me to resolve this problem?
> 
> How can I get timecode of an hls live stream (not recorded) with wowza
> 
> server?
> 
> Regards,
> 
> Felice Marra

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [December 6, 2013, 8:30pm UTC](https://community.wowza.com/t/hls-live-stream-timecode-issue/41392/3 "2013-12-06T20:30:59Z")

</div>

If you have cuepoints (timed text) in a source, you can convert them to ID3 tags. [This example is made for onTextData](https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream%28ID3-tags%29-in-an-Apple-HLS-stream), but you can modify for custom cuepoints

Then, as mentioned above, you can debug these client-side [following this guide](https://www.wowza.com/docs/how-to-debug-timed-data-events-id3-tags-from-apple-hls-streams-in-ios-devices%28ID3-tags%29-from-Apple-HLS-streams-in-iOS-devices).

Richard

---

<div class="post-metadata">

**Author:** ![Robin\_Morris](https://avatars.discourse-cdn.com/v4/letter/r/ea5d25/32.png) [@Robin\_Morris](https://community.wowza.com/u/Robin_Morris)\
**Post date:** [December 6, 2013, 12:06pm UTC](https://community.wowza.com/t/hls-live-stream-timecode-issue/41392/4 "2013-12-06T12:06:01Z")

</div>

Hi,

I also have the same question…

Could somebody at Wowza please answer this thread? It has been unanswered for two months now.

Thanks,

Robin

---

<div class="post-metadata">

**Author:** ![Michael\_Williams](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michael_williams/32/676_2.png) [@Michael\_Williams](https://community.wowza.com/u/Michael_Williams)\
**Post date:** [August 3, 2016, 9:50am UTC](https://community.wowza.com/t/hls-live-stream-timecode-issue/41392/5 "2016-08-03T09:50:15Z")

</div>

> Hello,
> 
> Can you explain the current need to use the cetCurrentTime() in your worklfow?
> 
> Are you also trying to synch slides or other media with a presentation?
> 
> Richard’ suggestion can help you achieve ID3 tags that would allow to achieve proper placement using this method, and the article:
> 
> [Convert AMF timed metadata to ID3 tags](https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream)
> 
> has bee updated recently.
> 
> If you can give more detail on the need for this in your workflow there may be other suggestions that can be made to assist you.
> 
> Regards,
> 
> Jason Hatchett

We want to have all the players show the same video. Our app switches live streams frequently. Given variations in routes, bandwidth and protocol (players that support RTMP/RTSP vs HLS) the new stream may start in a widely varied time from player to player. In order to tell the player where to play, we need to know where it is in the stream. Is there something client side for both protocols that will let us get the stream’s time ?

---

<div class="post-metadata">

**Author:** ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)\
**Post date:** [July 1, 2016, 1:33am UTC](https://community.wowza.com/t/hls-live-stream-timecode-issue/41392/6 "2016-07-01T01:33:21Z")

</div>

Hello,

Can you explain the current need to use the cetCurrentTime() in your worklfow?

Are you also trying to synch slides or other media with a presentation?

Richard’ suggestion can help you achieve ID3 tags that would allow to achieve proper placement using this method, and the article:

[https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream](https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream)

has bee updated recently.

If you can give more detail on the need for this in your workflow there may be other suggestions that can be made to assist you.

Regards,

Jason Hatchett

---

<div class="post-metadata">

**Author:** ![Jason\_Hatchett](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hatchett/32/391_2.png) [@Jason\_Hatchett](https://community.wowza.com/u/Jason_Hatchett)\
**Post date:** [August 8, 2016, 1:20am UTC](https://community.wowza.com/t/hls-live-stream-timecode-issue/41392/7 "2016-08-08T01:20:38Z")

</div>

You could take a look at the following article:

[How to get detailed server info with an HTTPProvider](https://www.wowza.com/docs/how-to-get-detailed-server-info-with-an-http-provider)

Then you could look into extending this functionality to obtain any/all information needed at the stream level.

Regards,

Jason Hatchett

---

<div class="post-metadata">

**Author:** ![Ramiro\_ricoy](https://avatars.discourse-cdn.com/v4/letter/r/9de053/32.png) [@Ramiro\_ricoy](https://community.wowza.com/u/Ramiro_ricoy)\
**Post date:** [June 3, 2016, 6:27am UTC](https://community.wowza.com/t/hls-live-stream-timecode-issue/41392/8 "2016-06-03T06:27:54Z")

</div>

> If you have cuepoints (timed text) in a source, you can convert them to ID3 tags. [This example is made for onTextData](https://www.wowza.com/docs/how-to-convert-ontextdata-events-in-a-live-or-vod-stream-to-timed-events-id3-tags-in-an-apple-hls-stream%28ID3-tags%29-in-an-Apple-HLS-stream), but you can modify for custom cuepoints
> 
> Then, as mentioned above, you can debug these client-side [following this guide](https://www.wowza.com/docs/how-to-debug-timed-data-events-id3-tags-from-apple-hls-streams-in-ios-devices%28ID3-tags%29-from-Apple-HLS-streams-in-iOS-devices).
> 
> Richard

Now, 2 and a half years later. i need to compile some complex things to getCurrentTime() html5 video tag property functional?
