KalturaBox
Customized Ruby wrapper for Kaltura API on Active Record
THIS GEM IS NOT BEING MAINTAINED ANYMORE
Heavily influenced and continuation of Kaltura_Fu
Installation
Add this line to your application's Gemfile:
gem 'kaltura_box'
And then execute:
$ bundle
Or install it yourself as:
$ gem install kaltura_box
Usage
# For the Entry class
class Video < ActiveRecord::Base
include KalturaBox::Entry
end
# Category class
class Category < ActiveRecord::Base
include KalturaBox::Category
end
# Entry listing from Kaltura
Video.video_list
# Search
Video.video_list("search string here")
# Create videos based on Kaltura entries
Video.update_all_videos!
# Retrieve a kaltura entry
video = Video.new(entry_id: "0_7ivwzhbh")
video.get
# Tagging
video. = "noodles, food, yummy" # Create a new set of tags
video. = "rice, fruits" # Add more tags to the existing tag list
video.add_tag("bacon") # Add a single tag
video. # Retrieve tags
# Kaltura Metadata
video.set(name: "bla", description: "blablabla")
video.set_name = "bla"
video.set_description = "blablabla"
Contributing
- Fork it ( https://github.com/shinnyx/kaltura_box/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request