You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: