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
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
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
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
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
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
client.setKs(ks) |
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
from KalturaClient import * | |
config = KalturaConfiguration(<PARTNER ID>) | |
client = KalturaClient(config) | |
ks = client.session.start( | |
<ADMIN SECRET>, | |
<YOUR EMAIL ADDRESS>, | |
KalturaSessionType.ADMIN, | |
<PARTNER 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<style> | |
* { | |
box-sizing: border-box; | |
} |