patricksrobertson / kaltura Goto Github PK
View Code? Open in Web Editor NEWRuby client for the Kaltura API
Ruby client for the Kaltura API
When using ::Kaltura::MediaEntry.list(@options) and the list only has 1 item in it, then this returns an array. If there is more than one item returned, it is returned as a Hashie:Mash.
I am going to different structure formats, depending on if I have 1 item or more than 1 item.
I had an application in which all users could have their own Kaltura Credentials. The gem is aimed at one credential set per application, but you can reconfigure it in runtime. Importantly, you need to restart the kalutra session when doing so. It took me a couple of hours to figure this out, I hope this note helps someone.
def kaltura_api
Kaltura.configure do |config|
config.partner_id = current_user.kaltura_partner_id
config.administrator_secret = current_user.kaltura_administrator_secret
# config.service_url = current_user.kaltura_service_url
end
# now restart Kaltura, or you'll keep the last known credentials
Kaltura::Session.start
# get an entry with the credentials of the current_user
entry = Kaltura::MediaEntry.get( params[:id] )
end
Hi there,
I'm adding some functionality to this gem to support more data types from Kaltura. I'd like to write some tests as well so that you can pull my changes, but I was just wondering if you had a particular methodology for recording the VCR cassettes for the tests?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.