Zencoder api works locally but not Live

I am using Zencoder API to convert video. I created two different API keys for my local and live server.

When I test the video conversion from my local video, its send request to Zencoder works fine. But, when the same process I do with my live server then it doesn't send any request to Zencoder API. Use, FTP to send request and response.

My input and output url like

define('INPUT_URL', "ftp://username:password@127.0.0.1/project/upload/");
define('OUTPUT_URL', "ftp://username:password@127.0.0.1/project/upload/");    
$inputUrl = INPUT_URL.$fileInfo['file_name'] . '.' . $fileInfo['file_type'];
$outputUrl = OUTPUT_URL.$new_file;

      

127.0.0.1 written according to the example. My code is using my IP address.

Any idea why it can't work live? Thank!

+3


source to share





All Articles