Copyright © 2011 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
Hi all
I'm trying to append a media entry to a mix i have stored,
I'm using
$kaltura_client->mixing->appendMediaEntry($mixEntryId, $entryId);
The call adds it as a pending entry in the dataContent section of the mix xml,
<Pending>[entryId]</Pending>
but it disappears and does not get added to the mix. I'm guessing that after the video finishes conversion the mix is not being properly updated
If I wait and append after the conversion process, the video goes in fine.
My question is
can i get notification of when the video upload/conversion has completed so that i can append it
or is there a way to make sure the pending entry turns into an entry proper
Hi
Thanks for the help,
First off I should mention that i'm running off a kalturaCE server I have installed locally
I've managed to get the notifications to work, but had to do it in a bit of a funny way
First I created the crossdomain.xml file
Then i enabled notifications in the drupal module
Then I tried to save the notification url in the KMC - this last step didn't work however, ping was failing, notifications weren't being sent.
In the end i had a look in the partner table in the Kaltura database and i save the notification url to the field url2, this worked and now i have an add_entry notification.
I'm firing my appendMediaEntry call when this notification is received but this is only working again when the concersion has completed
I don't know why ping is failing, but you can save the URL when clicking "Save Changes" without testing the ping.
The ping is a client side request, so its only checks if client side notifications are working (If you have some debugging proxy, you can see the request there)
Roman
ok , my problems were related to drupal and what happens when the notification gets passed back.
When the notification is sent
I was trying to create a KalturaClient object to update the mix on the server
Part of the creation process called was using the global $user variable in drupal,
However when the notification client gets called the $user variable is set to anonymous user and was causing the mix update to fail
I found a nice way around this, I needed to know when conversion was complete for a custom flex app i was building. Using notifications worked but it was messy, so instead i polled the kalturaCE server directly for the status of the entry.
Hi Cormac,
You can turn on server side notifications using the KMC and set a url to be notified of an entry finished conversion and is ready to be added to the mix.
Follow this guide to learn how you should process the notifications.