class Uiza::Live
Constants
- OBJECT_API_DESCRIPTION_LINK
- OBJECT_API_PATH
Public Class Methods
convert_to_vod(id)
click to toggle source
# File lib/uiza/live.rb, line 75 def convert_to_vod id url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{OBJECT_API_PATH}/dvr/convert-to-vod" method = :post headers = {"Authorization" => Uiza.authorization} params = {id: id} uiza_client = UizaClient.new url, method, headers, params, OBJECT_API_DESCRIPTION_LINK[:convert_to_vod] uiza_client.execute_request end
delete(id)
click to toggle source
# File lib/uiza/live.rb, line 65 def delete id url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{OBJECT_API_PATH}/dvr" method = :delete headers = {"Authorization" => Uiza.authorization} params = {id: id} uiza_client = UizaClient.new url, method, headers, params, OBJECT_API_DESCRIPTION_LINK[:delete] uiza_client.execute_request end
get_view(id)
click to toggle source
# File lib/uiza/live.rb, line 33 def get_view id url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{OBJECT_API_PATH}/tracking/current-view" method = :get headers = {"Authorization" => Uiza.authorization} params = {id: id} description_link = OBJECT_API_DESCRIPTION_LINK[:get_view] uiza_client = UizaClient.new url, method, headers, params, description_link uiza_client.execute_request end
list_recorded(params = {})
click to toggle source
# File lib/uiza/live.rb, line 56 def list_recorded params = {} url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{OBJECT_API_PATH}/dvr" method = :get headers = {"Authorization" => Uiza.authorization} uiza_client = UizaClient.new url, method, headers, params, OBJECT_API_DESCRIPTION_LINK[:list_recorded] uiza_client.execute_request end
start_feed(id)
click to toggle source
# File lib/uiza/live.rb, line 21 def start_feed id url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{OBJECT_API_PATH}/feed" method = :post headers = {"Authorization" => Uiza.authorization} params = {id: id} uiza_client = UizaClient.new url, method, headers, params, OBJECT_API_DESCRIPTION_LINK[:start_feed] response = uiza_client.execute_request retrieve response.entityId end
stop_feed(id)
click to toggle source
# File lib/uiza/live.rb, line 44 def stop_feed id url = "https://#{Uiza.workspace_api_domain}/api/public/v3/#{OBJECT_API_PATH}/feed" method = :put headers = {"Authorization" => Uiza.authorization} params = {id: id} uiza_client = UizaClient.new url, method, headers, params, OBJECT_API_DESCRIPTION_LINK[:stop_feed] response = uiza_client.execute_request retrieve response.entityId end