Streaming to CDN
I am trying to use rtmplib via ffmpeg to stream my video to my CDN.
My CDN requires me to perform a handshake to retrieve a nonce. I am able to successfully request the nonce which is returned via AMF. However, because my CDN responds with a 403 response code, librtmp returns and error code of -1 and doesn't allow me to read the AMF response.
Is there a way for me to read the AMF response that was returned by my CDN via ffmpeg or librtmp?
The only solution I can think of would involve sending a rtmpt request outside of librtmp and scrape the response.
Thanks,
Nick
|