Welcome Guest, Not a member yet? Register   Sign In
Need help integrating zencoder libraries with codeigniter

I am looking for some quick help. I am trying to integrateZencoder php library
i copied everything to libraries folder.
then in my controller
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Video extends CI_Controller {

function __construct()

  * function index
  * @param
  * desc desc

function index() {
  $encoding_job = $this->Services_Zencoder->createData('
    "input": "s3://bucket-name/file-name.avi",
    "outputs": [
      "label": "web"
i get an error
Fatal error: Call to a member function createData() on a non-object in /var/www/mweb/application/controllers/video.php on line 19

i am working on a project where we require video uploads. Any help will be appreciated.

Have you loaded the library via the autoload file or $this-library-load() function?

oh well, instead i used the API via Curl library, that served better.

Sorry, I am not familiar with CURL so I can't help you there.. Maybe someone else can.

Theme © iAndrew 2016 - Forum software by © MyBB