# How to inject cue points or metadata using SDK

**URL:** <https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280>\
**Category:** Wowza GoCoder SDK\
**Created:** [July 14, 2016, 11:04pm UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280 "2016-07-14T23:04:35Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Scott\_Jungwirth](https://avatars.discourse-cdn.com/v4/letter/s/5e9695/32.png) [@Scott\_Jungwirth](https://community.wowza.com/u/Scott_Jungwirth)\
**Post date:** [July 14, 2016, 11:04pm UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/1 "2016-07-14T23:04:35Z")

</div>

Is it possible and is there example code about injecting cue points / metadata using the GoCoder SDK? All I can find is old articles ([https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata](https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata)) that describe adding cue points later, but I want to be able to add the cue points through the SDK while recording.

---

<div class="post-metadata">

**Author:** ![Vijay\_Parvatikar](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/vijay_parvatikar/32/393_2.png) [@Vijay\_Parvatikar](https://community.wowza.com/u/Vijay_Parvatikar)\
**Post date:** [August 8, 2016, 11:17am UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/2 "2016-08-08T11:17:20Z")

</div>

Metadata API is a prioritized feature for GoCoder SDK. This is work in progress. We are planning to deliver this feature in the coming weeks or months.

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [July 28, 2016, 9:06am UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/3 "2016-07-28T09:06:27Z")

</div>

Hi,

This is currently not supported for the GoCoder SDK, although it is in our product roadmap. Do keep an eye on our [release notes for GoCoder SDK](https://www.wowza.com/resources/gocodersdk/docs/1.0/) and see when this feature is added.

Michelle

---

<div class="post-metadata">

**Author:** ![SiggDev](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SiggDev](https://community.wowza.com/u/SiggDev)\
**Post date:** [November 30, 2016, 3:29pm UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/4 "2016-11-30T15:29:43Z")

</div>

Any news about when this feature may become available?

---

<div class="post-metadata">

**Author:** ![Alex\_C](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@Alex\_C](https://community.wowza.com/u/Alex_C)\
**Post date:** [December 30, 2016, 8:51pm UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/5 "2016-12-30T20:51:38Z")

</div>

Hello SiggDev,

Not at this time, this has been submitted to our enhancement request list, and it is something we may add in the future, though there is no definitive timeframe as to when we will support it. Please do check back in periodically to our Software Updates page to see if your feature request has been deployed.

[https://www.wowza.com/docs/software-updates](https://www.wowza.com/docs/software-updates)

Regards,

Alex

---

<div class="post-metadata">

**Author:** ![Mathias\_Stjernstrom](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@Mathias\_Stjernstrom](https://community.wowza.com/u/Mathias_Stjernstrom)\
**Post date:** [November 11, 2017, 10:36am UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/6 "2017-11-11T10:36:56Z")

</div>

Any news on this feature?

---

<div class="post-metadata">

**Author:** ![SiggDev](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SiggDev](https://community.wowza.com/u/SiggDev)\
**Post date:** [November 13, 2017, 12:09pm UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/7 "2017-11-13T12:09:43Z")

</div>

I’ve been using metadata insertion in GoCoder SDK for a long time now. Became available for testing sometime in the beginning of this year, not sure when it became official.

---

<div class="post-metadata">

**Author:** ![Mathias\_Stjernstrom](https://avatars.discourse-cdn.com/v4/letter/m/ccd318/32.png) [@Mathias\_Stjernstrom](https://community.wowza.com/u/Mathias_Stjernstrom)\
**Post date:** [December 14, 2017, 1:51pm UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/8 "2017-12-14T13:51:19Z")

</div>

Interesting! Mind sharing some code how you do this?

---

<div class="post-metadata">

**Author:** ![SiggDev](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SiggDev](https://community.wowza.com/u/SiggDev)\
**Post date:** [December 19, 2017, 3:22pm UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/9 "2017-12-19T15:22:01Z")

</div>

As I’m not an IOS/android developer, here’s some code sample from my colleague doing the actual development - I’ll put it in a separate post, as reply here has limited number of characters.

---

<div class="post-metadata">

**Author:** ![SiggDev](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@SiggDev](https://community.wowza.com/u/SiggDev)\
**Post date:** [December 19, 2017, 3:24pm UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/10 "2017-12-19T15:24:14Z")

</div>

```auto
WowzaGoCoder *goCoder;
NSDate *currentDate;
CGFloat *currentFrame;
NSString *streamName;
		
- (void) videoFrameWasEncoded:(nonnull CMSampleBufferRef)data {

	// the following code is used to send metadata to the stream
	// metadata can be sent at any time, I usually send them every 60 frames 
	// I like to place the code inside videoFrameWasEncoded callback function, so I can “count” the 60 frames

    WZDataMap *dataMap = [WZDataMap new];
    [dataMap setDate:currentDate forKey:@"date"];
    [dataMap setFloat:currentFrame forKey:@"current_frame"];
    [dataMap setString:streamName forKey:@"stream_name"];

	//metadata can be sent to Stream scope or Module scope
    [goCoder sendDataEvent:WZDataScopeStream eventName:@"streamEvent" params:dataMap];
    [goCoder sendDataEvent:WZDataScopeModule eventName:@"onCustomMetaData" params:dataMap];
}

```

@Mathias Stjernström

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [January 2, 2018, 7:41am UTC](https://community.wowza.com/t/how-to-inject-cue-points-or-metadata-using-sdk/47280/11 "2018-01-02T07:41:22Z")

</div>

Metadata is now an included feature in the SDK. Please refer to the sample app included in the SDK zip file for examples on how to use this.

Michelle
