Copyright © 2012 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
Does anyone have a working example of the onContributionWizardAfterAddEntry javascript function that enables getting the entry id?
This is my code and it doesn't work:
function onContributionWizardAfterAddEntry(entries) {
alert(entries.length + " media file/s was/were succsesfully uploaded");
for(var i = 0; i < entries.length; i++) {
alert("entries["+i+"]:EntryID = " + entries[i].entryId);
window.location.href = "http://www.videobio.biz/dolphin7/upload_video2.php?entryid=" + entries[i].entryId);
}
}
Then I can get the entryid from the url but this doesn't redirect...
Any help would be appreciated.
Luis
I never got that feature to work either...
I suspect it might only work if you have something else turned on, which causes a third page to be presented in the KCW sequence. I've forgotten what that is.
Fortunately, I was able to work around this for my needs, by using the UNDOCUMENTED partnerData field on a KalturaMediaEntry, to put "User: $user; Role: $role;" in, which is populated by the &partnerData you pass into KCW (under-documented).
I then copied that partnerData when I created an embed widget with the API, so both the Entry and its widget[s] have the same partnerData.
For reasons beyond my ken, the widget has a filter for the documented partnerData field on that particular class.
If this helps you great. If not, sorry, I got nothing.