# Why can't I get stream.sendDirectAMF3() working (but sendDirect() does work)?

**URL:** <https://community.wowza.com/t/why-cant-i-get-stream-senddirectamf3-working-but-senddirect-does-work/94767>\
**Category:** Wowza Streaming Engine\
**Created:** [April 1, 2022, 12:01am UTC](https://community.wowza.com/t/why-cant-i-get-stream-senddirectamf3-working-but-senddirect-does-work/94767 "2022-04-01T00:01:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Farrow](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Dan\_Farrow](https://community.wowza.com/u/Dan_Farrow)\
**Post date:** [April 1, 2022, 12:01am UTC](https://community.wowza.com/t/why-cant-i-get-stream-senddirectamf3-working-but-senddirect-does-work/94767/1 "2022-04-01T00:01:11Z")

</div>

HI I am sending metadata using the HttpProvider example ([https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata](https://www.wowza.com/docs/how-to-inject-cue-points-or-metadata)). I want to send AMF3 objects so I am trying to use **stream.sendDirectAMF3()** but it is not working. I can call **stream.sendDirect()** but then the AMFData objects I pass are NOT the AMF3 data objects I need. I have had this working on other projects, by why doesn’t this work in some instances? It seems the function never gets called because in the module I never see **onFillChunkDataPacket** called if I call **stream.sendDirectAMF3()**.

---

<div class="post-metadata">

**Author:** ![Dan\_Farrow](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Dan\_Farrow](https://community.wowza.com/u/Dan_Farrow)\
**Post date:** [April 5, 2022, 11:24pm UTC](https://community.wowza.com/t/why-cant-i-get-stream-senddirectamf3-working-but-senddirect-does-work/94767/2 "2022-04-05T23:24:10Z")

</div>

After a lot of testing, it seems that stream.sendDirectAMF3() works and will allow you to save metadata in an MP4 (AMF metadata) but it does NOT fire off the IHTTPStreamerCupertinoLivePacketizerDataHandler2.onFillChunkDataPacket() method, like stream.sendDirect() does. I had to use both functions (sendDirect() AND sendDirectAMF3() ) to record metadata at the same time I was converting it to ID3 for an HLS live stream.

---

<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:** [April 6, 2022, 1:09pm UTC](https://community.wowza.com/t/why-cant-i-get-stream-senddirectamf3-working-but-senddirect-does-work/94767/3 "2022-04-06T13:09:54Z")

</div>

Thanks for posting a follow up.
