Wowza Community

How to secure Apple-HLS external method via Nodejs server-side ?

Hello , I am newbie for wowza engine. I have config secure apple http aes-128 because I have channel for private that get via key

OK ,It’s working good for server-side of php

https://www.wowza.com/docs/how-to-secure-apple-http-live-streaming-aes-128-external-method

But i would like to working on nodejs server-side , I tried that’s duplicate from php script convert to nodejs script then I found it’s can working but can’t streaming video because get key from response server-side the wrong key. But It’s still download file.ts continue right.

I think key get from server-side correct , But key that get from server-side was change , I don’t know it to change from where ?

Example get key from server-side of nodejs

v¶Ö¬#D¬Ë_vOCƒ    after send to client side :: v¶Ö¬#D¬Ë_vOCƒ

nodejs package of code , I use http://locutus.io/php/strings/hex2bin/ for hex2bin function on my nodejs

Sorry for My English is terrible.