Copyright © 2012 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
Im using the API for rails with name: ruby_15-06-2012 from kaltura. Im trying to list the flavor transcoding through the flavor asset service. I created a session with a global client and i used the next code to get the information that i want.
@@client.flavor_asset_service.get_by_entry_id('0_lb65nbn6')
I put the kaltura_client.rb and the kaltura_client_base.rb on the lib folder of rails application. I included the file in a initializer file where i created the client and the session.
The results is:
1.9.2p290 :001 > @@client.flavor_asset_service.get_by_entry_id('0_lb65nbn6')
NameError: uninitialized constant KalturaFlavorAsset
from /Users/seraphin/Desktop/tvuplus/lib/kaltura/kaltura_client_base.rb:273:in `const_get'
from /Users/seraphin/Desktop/tvuplus/lib/kaltura/kaltura_client_base.rb:273:in `object_from_xml'
from /Users/seraphin/Desktop/tvuplus/lib/kaltura/kaltura_client_base.rb:267:in `block in object_from_xml'
from /Users/seraphin/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rexml/element.rb:906:in `block in each'
from /Users/seraphin/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
from /Users/seraphin/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
from /Users/seraphin/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rexml/element.rb:906:in `each'
from /Users/seraphin/Desktop/tvuplus/lib/kaltura/kaltura_client_base.rb:266:in `object_from_xml'
from /Users/seraphin/Desktop/tvuplus/lib/kaltura/kaltura_client_base.rb:102:in `block in parse_xml_to_objects'
from /Users/seraphin/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rexml/element.rb:906:in `block in each'
from /Users/seraphin/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
from /Users/seraphin/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rexml/xpath.rb:64:in `each'
from /Users/seraphin/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/rexml/element.rb:906:in `each'
from /Users/seraphin/Desktop/tvuplus/lib/kaltura/kaltura_client_base.rb:101:in `parse_xml_to_objects'
from /Users/seraphin/Desktop/tvuplus/lib/kaltura/kaltura_client_base.rb:95:in `parse_to_objects'
from /Users/seraphin/Desktop/tvuplus/lib/kaltura/kaltura_client_base.rb:76:in `do_queue'
from /Users/seraphin/Desktop/tvuplus/lib/kaltura/kaltura_client.rb:10824:in `get_by_entry_id'
from (irb):1
from /Users/seraphin/.rvm/gems/ruby-1.9.2-p290@tvu/gems/railties-3.2.8/lib/rails/commands/console.rb:47:in `start'
from /Users/seraphin/.rvm/gems/ruby-1.9.2-p290@tvu/gems/railties-3.2.8/lib/rails/commands/console.rb:8:in `start'
from /Users/seraphin/.rvm/gems/ruby-1.9.2-p290@tvu/gems/railties-3.2.8/lib/rails/commands.rb:41:in `'
from script/rails:6:in `require'
If someone can help me with that :)
Thaks in advance,