Hello Kaltura expert,
I am reading tutorials here, I think we need a session to talk to server and need a file which we are going to upload. Wondering what is the logical meaning of mediaEntry here in upload operation (it seems redundant, given we have session and file to upload) and what it is used for?
thanks in advance,
In order to upload a file, you indeed need to create an entry.
You might find this example easier to understand:
This file has been truncated.
echo 'Usage:' .__FILE__ .' <service_url> <partnerid> <secret> </path/to/asset>'."\n";
$uploadToken = new KalturaUploadToken();
$result = $client->uploadToken->add($uploadToken);
$resume = null;
$finalChunk = null;
$resumeAt = null;
$result = $client->uploadToken->upload($tok, $fileData, $resume, $finalChunk, $resumeAt);
$entry = new KalturaBaseEntry();
$entry->name = $title;
$entry->conversionProfileId = $conv_profile;
Thanks Jess for the details, how upload physical file is bound to mediaEntry in your sample? Thanks.
BTW, I mean which line/lines combine them?