This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
entry = KalturaMediaEntry() | |
entry.mediaType = KalturaMediaType.VIDEO | |
entry.name = "Sample Video" | |
entry.description = "yet another sample video in my arsenal" | |
mediaEntry = client.media.add(entry) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uploadToken = KalturaUploadToken() | |
result = client.uploadToken.add(uploadToken) | |
tokenId = result.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uploadToken = KalturaUploadToken() | |
result = client.uploadToken.add(uploadToken) | |
tokenId = result.id |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fileData = open('IMG_9227.m4v', 'r') | |
result = client.uploadToken.upload(tokenId, fileData) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource = KalturaUploadedFileTokenResource() | |
resource.token = tokenId | |
mediaEntry = client.media.addContent(mediaEntry.id, resource) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource = KalturaUrlResource() | |
resource.url = "https://www.youtube.com/watch?v=cPAbx5kgCJo" | |
result = client.media.addContent(entryId, resource) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> | |
</head> | |
<body> | |
<input type="file" id="uploadfiles" accept="*.*" multiple /> | |
<progress id="uploadprogress" style="display: none;" value="0" max="100"></progress> | |
<script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/ruby | |
require 'kaltura' | |
include Kaltura | |
config = KalturaConfiguration.new() | |
config.service_url = 'https://www.kaltura.com' | |
client = KalturaClient.new(config); | |
parent_partner_id = # Your Kaltura Parent MultiAccount Partner ID (Kaltura Account ID) | |
login_id = #Your Kaltura Parent MultiAccount Admin Login Email |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basePath": "/api_v3", | |
"definitions": { | |
"KalturaABCScreenersWatermarkCondition": { | |
"allOf": [ | |
{ | |
"$ref": "#/definitions/KalturaCondition" | |
} | |
], | |
"properties": {}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// IMPORTANT: This action will EMAIL the CSV file to the email defined in the user's email field. Be sure to set userId in the KS that belongs to a user object that has email field properly set to a valid email address | |
//initialize kaltura | |
$kConfig = new KalturaConfiguration($pid); | |
$kConfig->setServiceUrl('https://www.kaltura.com'); | |
$kConfig->setLogger($this); | |
$this->client = new KalturaClient($kConfig); | |
$this->ks = $this->client->session->start($secret, 'userIdToSendEmailWithCSV', SessionType::ADMIN, $pid, 86400, 'list:*,disableentitlement,*'); | |
$this->client->setKs($this->ks); |