# Is it possible to pass additional VTT information when using onTextData to WebVTT with live streams?

**URL:** <https://community.wowza.com/t/is-it-possible-to-pass-additional-vtt-information-when-using-ontextdata-to-webvtt-with-live-streams/49105>\
**Category:** Wowza Developer Dojo\
**Created:** [July 3, 2017, 3:34pm UTC](https://community.wowza.com/t/is-it-possible-to-pass-additional-vtt-information-when-using-ontextdata-to-webvtt-with-live-streams/49105 "2017-07-03T15:34:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dean\_Mitchell](https://avatars.discourse-cdn.com/v4/letter/d/57b2e6/32.png) [@Dean\_Mitchell](https://community.wowza.com/u/Dean_Mitchell)\
**Post date:** [July 3, 2017, 3:34pm UTC](https://community.wowza.com/t/is-it-possible-to-pass-additional-vtt-information-when-using-ontextdata-to-webvtt-with-live-streams/49105/1 "2017-07-03T15:34:44Z")

</div>

Hello,

I am writing a module to inject onTextData events into a live stream that is then converted to WebVTT compatible closed captions using the instructions located here:

[https://www.wowza.com/docs/how-to-configure-closed-captioning-for-live-streaming](https://www.wowza.com/docs/how-to-configure-closed-captioning-for-live-streaming)

However, the VTT file has some additional formatting information contain on the same line as the time range. Here is an example of a single entry:

**00:01:00.060 --\> 00:01:23.016 align:start line:85% position:12% size:16%**

**Hello World**

I am able to successfully pass the captions using the AMFDataObject and the onTextData event but cannot find a way to pass the additional formatting information. It appears Wowza writes the time range itself and I cannot modify or override it.

Here is the code being used to send the onTextData event:

```auto
public void sendTextDataMessage(String message) { 

	try {
		AMFDataObj amfData = new AMFDataObj();
		amfData.put("text", new AMFDataItem(message));
		amfData.put("language", new AMFDataItem(languageID));
		iStream.sendDirect("onTextData", amfData);
	} catch(Exception e) {
		e.printStackTrace();
	}
}

```

Is there any way to pass the formatting (or any other additional information defined in the VTT spec) to Wowza so it will display properly? Are there any other values used to configure the AMFDataObj for VTT captioning besides “text” and “language”?

---

<div class="post-metadata">

**Author:** ![Randall\_Ache](https://avatars.discourse-cdn.com/v4/letter/r/ea666f/32.png) [@Randall\_Ache](https://community.wowza.com/u/Randall_Ache)\
**Post date:** [October 24, 2017, 7:57pm UTC](https://community.wowza.com/t/is-it-possible-to-pass-additional-vtt-information-when-using-ontextdata-to-webvtt-with-live-streams/49105/2 "2017-10-24T19:57:20Z")

</div>

Can anyone answer this question? I’m having trouble finding any answers to this, and it can be pretty important to control caption positions.
