Create a New Kaltura Entry and Upload Video File using the Kaltura API
This article takes the user through the basic flow of uploading media using Kaltura’s upload API.
To upload a video file using the C# API Client Library, follow the steps below.
Handshake to create a Kaltura Session:
Create a new Media Entry to which we’ll attach the uploaded file:
Upload the media file:
Attach the Media Entry to the file:
Chunked Video Upload or Upload Pause and Resume Flow
The Kaltura API supports an upload pause and resume via chunked upload workflow. Additionally, Kaltura also provide a jQuery plugin that simplifies the process.
An example showing how to use the jquery plugin can be seen in this recipe.
However, if you are unable to use the jQuery plugin above, you can implement it yourself by chunking the file and calling the uploadToken service.
To use the uploadToken service for chunked upload, set the following parameters in the upload action:
- Resume - should be set to true.
- resumeAt – the byte offset to add current chunk to.</span>
- finalChunk - should be set to 0 for all chunks, and set to 1 for the last chunk.
As a reference, see this implementation of a chunked upload operation with the Kaltura Java client.